Pancake Mode

Makes the internet warmer, calmer, and significantly more pancake.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

// ==UserScript==
// @name         Pancake Mode
// @namespace    jellyfangthunderbucket
// @version      1.0
// @description  Makes the internet warmer, calmer, and significantly more pancake.
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function () {

    const button = document.createElement("button");

    button.textContent = "🥞 PANCAKES";

    Object.assign(button.style, {
        position: "fixed",
        bottom: "20px",
        right: "20px",
        zIndex: "999999",
        padding: "12px 18px",
        borderRadius: "999px",
        border: "none",
        cursor: "pointer",
        fontSize: "16px",
        fontWeight: "bold",
        background: "#f0b34f",
        color: "#2b1a0a",
        boxShadow: "0 4px 12px rgba(0,0,0,.25)"
    });

    let pancakes = false;

    button.onclick = function () {

        pancakes = !pancakes;

        document.body.style.background =
            pancakes ? "#f8f1e4" : "";

        document.body.style.color =
            pancakes ? "#2d241a" : "";

        document.body.style.lineHeight =
            pancakes ? "1.8" : "";

        document.querySelectorAll(
            "p, li, span, div, article"
        ).forEach(el => {

            el.style.lineHeight =
                pancakes ? "1.8" : "";

            el.style.color =
                pancakes ? "#2d241a" : "";
        });

        document.querySelectorAll("a").forEach(link => {
            link.style.color =
                pancakes ? "#b36b00" : "";
        });

        button.textContent =
            pancakes
                ? "🥞 PANCAKES: ON"
                : "🥞 PANCAKES";
    };

    document.body.appendChild(button);

})();