Of all places, HN should be dark mode by default, without any of us using a plugin or specific browser. I don't want my eyes to burn when I'm browsing HN at night on my phone. Anyone?
For context (and also protip if you weren't aware), there's already precedent for user-defined CSS in HN. I don't remember if everyone has access to it, but there's a topcolor setting in your profile that sets the color of the top bar. Maybe that could be extended to include other CSS properties? I wouldn't mind having to write hex color codes...
An open entry field for custom CSS would be a clunky but still welcome solution to this problem. It would also be extremely low-risk and low-effort on the maintainers' parts.
I wanted to do that but was told that Reddit encountered security issues with this, and so moved away from it in favor of a complex widget UI, which would not be a good fit for HN.
Web designers are horrified at the thought that the shade of black you see your browser render the background in isn't the same as what's in the sketch document. They must control that. The browser is not an user agent anymore.
Why not an alternate stylesheet (link rel="alternate stylesheet")? I don't know whether Chrome/ium supports it anymore, but Firefox definitely does. It would work with zero JS.
Comments (445) 93 threads
Earlier comments1. Go to chrome://flags
2. Enable "Force Dark Mode for Web Contents"
This works pretty well on all sites, not just hacker news...
In this case, you would only be able to affect your own version of the site, so any attack vector is mitigated
Continue this thread — 1 reply
It would take me weeks to redo my website to support dark mode. Better to wait and let browser technology catch up.
All comments shown.
Couldn't load more comments. Check your connection and try again.