Greasy Fork is available in English.
replaces the word "united" with "lol" on webpages
// ==UserScript==
// @name Replace "united" with "lol"
// @namespace http://tampermonkey.net/
// @version 1.1
// @description replaces the word "united" with "lol" on webpages
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function replaceText(node) {
if (node.nodeType === Node.TEXT_NODE) {
node.nodeValue = node.nodeValue.replace(/\bunited\b/gi, "lol");
} else {
node.childNodes.forEach(replaceText);
}
}
function run() {
replaceText(document.body);
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
mutation.addedNodes.forEach(replaceText);
});
});
observer.observe(document.body, {
childList: true,
subtree: true
});
}
// Wait until page is loaded (important for iPhone Safari)
if (document.body) {
run();
} else {
window.addEventListener('DOMContentLoaded', run);
}
})();