Lurker News
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?

Comments (445) 93 threads

Earlier comments
gitgud1 reply#
You can enable dark mode in Chrome on Android

1. Go to chrome://flags
2. Enable "Force Dark Mode for Web Contents"
This works pretty well on all sites, not just hacker news...

tehlike1 reply#
I have been using this for a while. Works great except on some pages. I wish there was a quick 'disable for this site' button.
xlayer#
Alternatively, you can try enable #darken-websites-checkbox-in-themes-setting
andrewflnr1 reply#
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...
_bxg11 reply#
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.
dang2 replies#
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.
andrewxdiamond1 reply#
Reddit had issues because user defined CSS was download and ran to other user's devices.

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

andrewflnr#
I was thinking literally a handful of text fields validated against /[a-f0-9]{6}/. But yeah, maybe not quite as trivial as we would like.
SeaSeaRider1 reply#
Why are websites having to individually implement dark mode? It should be done heuristicly by the browser.

It would take me weeks to redo my website to support dark mode. Better to wait and let browser technology catch up.

noisem4ker#
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.
trashburger#
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.

Load more comments