Scoped dark theme for Webtoons (desktop + mobile) — comic panels render untouched. Elevated viewer card, accent-green active nav, WCAG-tuned contrast, optional reader dim. OS preference on first install; persistent toggle (Alt+Shift+T).
A targeted dark theme for webtoons.com and m.webtoons.com. No global filter: invert() — comic
panels render exactly as the artist intended. The theme is built from a small CSS-variable
palette and applies only to the site's own chrome: header, sub-nav, cards, episode lists, the
viewer, the carousel, comments, footer, popups, and inputs.
box-shadow, so there are no per-image seams./canvas, /genre, and /rankings:
page → section card → comic card, plus per-card depth shadows and a :hover darken so title
overlays stay readable.GNB + sub-nav day-of-week / genre tabs) rendered in accent green at the base
font size — no shrink-on-active.Alt+Shift+N) lowers comic-panel brightness for late-night reading without
touching the rest of the page.prefers-color-scheme: dark. Once you toggle
manually, your choice persists via GM_setValue and OS changes are ignored.Alt+Shift+T (theme) / Alt+Shift+N (reader dim). Backup combos Ctrl+Alt+D
and Ctrl+Alt+Shift+D for keyboard-layout setups where Alt+Shift is taken.:focus-visible ring on every interactive control (the base site ships none).<head> MutationObserver re-injects the style if Webtoons swaps stylesheets,
and a generation-token retry loop runs page-specific tweaks after pushState / popstate
navigations. No requestAnimationFrame loops, no scroll handlers.GM_getValue, GM_setValue, GM_registerMenuCommand — used for persistence and the menu only.
No network requests, no external scripts.
GitHub: https://github.com/hervad/webtoons-dark-mode Bug reports welcome — include the page URL and the offending element's class/ID.
MIT.