Skip to content

Instantly share code, notes, and snippets.

@tryproxy
Last active June 26, 2025 04:39
Show Gist options
  • Select an option

  • Save tryproxy/f4ffa4646cbf9d66dde03c5e5f2d3afd to your computer and use it in GitHub Desktop.

Select an option

Save tryproxy/f4ffa4646cbf9d66dde03c5e5f2d3afd to your computer and use it in GitHub Desktop.
// ==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