DEV Community

Code Wanderer
Code Wanderer

Posted on

How do you deal with overly bright websites at night? I made a small Chrome extension for it: per-site brightness plus an auto day/night mode. Curious what you'd add.

Sign in to view linked content

Top comments (1)

Collapse
 
nehznah profile image
zhen •

Great question β€” I usually rely on OS-level Night Shift plus whatever dark mode the site offers, but that combo misses sites with no theme toggle, which is exactly where per-site brightness control would help. One thing I'd consider: respecting prefers-color-scheme so the extension defers to sites that already ship a proper dark theme, and only kicks in where the page ignores the media query. Also curious how you handle the white flash before the content script injects β€” that was the thing that drove me away from overlay-based dimmers.