Greasy Fork is available in English.

Remove [] Wikipedia Text Citations

Remove Wikipedia Citations

// ==UserScript==
// @name         Remove [] Wikipedia Text Citations
// @namespace    mailto:[email protected]
// @version      1
// @description  Remove Wikipedia Citations
// @author       JZersche
// @match        https://en.wikipedia.org/wiki/*
// @icon         https://www.google.com/s2/favicons?domain=wikipedia.org
// @grant        none
// ==/UserScript==

(function() {
    'use strict';


for(var i = 0;i<document.getElementsByTagName('p').length;i++){
document.getElementsByTagName('p')[i].outerHTML = document.getElementsByTagName('p')[i].outerHTML.replaceAll(/(\[\d+\])|(\[page\sneeded\])/g,'')
}
})();