Last active
June 26, 2025 04:39
-
-
Save tryproxy/f4ffa4646cbf9d66dde03c5e5f2d3afd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name slop replacer | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description replace every instance of AI with Slop | |
| // @match *://*/* | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== | |
| (function() { | |
| const replaceText = (node) => { | |
| if (node.nodeType === Node.TEXT_NODE) { | |
| node.nodeValue = node.nodeValue | |
| .replace(/\bAI's\b/g, "Slop's") | |
| .replace(/\bxAI\b/g, 'xSlop') | |
| .replace(/\bAI\b/g, 'Slop') | |
| .replace(/\bopenai\b/gi, 'openSlop') | |
| } else if (node.nodeType === Node.ELEMENT_NODE) { | |
| for (const child of node.childNodes) { | |
| replaceText(child) | |
| } | |
| } | |
| } | |
| const slopify = () => replaceText(document.body) | |
| const observer = new MutationObserver((mutations) => { | |
| for (const mutation of mutations) { | |
| for (const node of mutation.addedNodes) { | |
| replaceText(node) | |
| } | |
| } | |
| }) | |
| observer.observe(document.body, { childList: true, subtree: true }) | |
| slopify() | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment