// ==UserScript== // @name Astral Codex Ten Background Colour Fix // @namespace astralcodexten.substack.com // @version 1.0.0 // @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 { --background_pop: #67bdfc; --cover_bg_color: initial; --background_pop_darken: #4eb2fc; --print_on_pop: #ffffff; --border_subtle: rgba(181, 190, 202, 0.5); --background_subtle: rgba(232, 245, 255, 0.4); --print_pop: #67bdfc; --cover_print_primary: #1a1a1a; --cover_print_secondary: #757575; --cover_border_color: #67bdfc; --font_family_body_preset: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; --font_weight_body_preset: 400; --font_preset_body: sans; --web_bg_color: initial; --background_contrast_1: #dbe6f4; --background_contrast_2: #d0dae8; --background_contrast_3: #bec7d3; --background_contrast_4: #a3abb6; --background_contrast_5: #899099; --background_contrast_pop: rgba(103, 189, 252, 0.4); --input_background: #e3eefc; --cover_input_background: #e3eefc; --tooltip_background: #171819; --web_bg_color_h: 214.6153846153846; --web_bg_color_s: 81.25000000000007%; --web_bg_color_l: 93.72549019607843%; --print_on_web_bg_color: hsl(214.6153846153846, 20.31250000000002%, 18.549019607843135%); --print_secondary_on_web_bg_color: #6a6e74; --selected_comment_background_color: #e2e8f1; --background_pop_rgb: 103, 189, 252; } } `; 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); } })();