User:Soap/hide.js

for (const parserOutput of document.getElementsByClassName("mw-parser-output")) { const offensive = Array.from(parserOutput.getElementsByTagName("li")).filter(item => {       for (const bracketed of item.getElementsByClassName("ib-content")) {            for (const link of bracketed.getElementsByTagName("a")) {                const linkText = link.textContent;                if (linkText === "vulgar" || linkText === "offensive") {                    return true;                }            }        }        return false;    }); for (const element of offensive) { // element.style = "color: #7ddcff"; element.className = "dummyclass1"; } }