Pancake Mode

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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);

})();