// ==UserScript== // @name Astral Codex Ten Background Colour Fix // @namespace astralcodexten.substack.com // @version 0.1.4 // @description Removes light blue background colour from Astral Codex Ten. // @author Korakys // @license CC0 // @grant GM_addStyle // @run-at document-start // @match *://*.astralcodexten.substack.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` body { :root { --cover_bg_color: initial !important; --web_bg_color: initial !important; } } html { :root { --cover_bg_color: initial !important; --web_bg_color: initial !important; } } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();