Jump to content

MediaWiki:Common.js: Difference between revisions

From OkayXairen Wiki
imported>Redk1tty
No edit summary
No edit summary
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
// we should make this into a wiki forpeople doing recreational birth control pills
if (window.location.href.includes("The_Bold_Plague")) {
// What. Who are you Ballswoman? Stop reverying my changers.
    const style = document.createElement("style");
alert("This Is War, Ballswoman");
    style.textContent = `
setInterval(() => {
        * {
     const randomNumber = Math.floor(Math.random() * 20) + 1;
            font-weight: bold !important;
   
        }
     if (randomNumber === 10) {
     `;
         location.reload();
    document.head.appendChild(style);
} else if (window.location.href.includes("The_Red_Plague")) {
     if (document.documentElement.classList.toString().includes("skin-theme-clientpref-night")) {
         document.documentElement.classList.remove("skin-theme-clientpref-night");
        document.documentElement.classList.add("skin-theme-clientpref-day");
     }
     }
}, 1000);
    const style = document.createElement("style");
    style.textContent = `
        :root {
            filter: saturate(10) sepia(1) hue-rotate(140deg) invert(1);
        }
        .mw-content-ltr img {
            filter: invert(1);
        }
    `;
    document.head.appendChild(style);
}

Revision as of 20:36, 11 March 2026

if (window.location.href.includes("The_Bold_Plague")) {
    const style = document.createElement("style");
    style.textContent = `
        * {
            font-weight: bold !important;
        }
    `;
    document.head.appendChild(style);
} else if (window.location.href.includes("The_Red_Plague")) {
    if (document.documentElement.classList.toString().includes("skin-theme-clientpref-night")) {
        document.documentElement.classList.remove("skin-theme-clientpref-night");
        document.documentElement.classList.add("skin-theme-clientpref-day");
    }
    const style = document.createElement("style");
    style.textContent = `
        :root {
            filter: saturate(10) sepia(1) hue-rotate(140deg) invert(1);
        }
        .mw-content-ltr img {
            filter: invert(1);
        }
    `;
    document.head.appendChild(style);
}