Did you try "Dark Reader"? It solved these issues for me on Linux/Chrome and iOS. Apart from having a rather smart automatic dark mode you can also do a "black" mode which is great for Oled displays as it replaces tinted or dark gray backgrounds with true black.<p><a href="https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh?hl=en" rel="nofollow">https://chrome.google.com/webstore/detail/dark-reader/eimadp...</a>
Please add a dark mode under user settings. We read HN on different devices, with different browsers and under different OSes, having a central/official way to do this would be highly appreciated.
There is a user setting for topcolor in our profile, why not another one for bgcolor?
I think this is a solved problem with user styles.<p>HN design has stayed mostly the same for years, I've been running this userstyle on it [1] for years without issue.<p>[1] <a href="https://github.com/Poorchop/userstyles/tree/master/HackerNews-Dark" rel="nofollow">https://github.com/Poorchop/userstyles/tree/master/HackerNew...</a>
I see others are offering reasonable user style solutions and I raise you my irresponsible, over-the-top solution:<p>@media (prefers-color-scheme: dark) {
html {
filter: invert(1) hue-rotate(180deg);
}
}
HN has terrifically simply markup, your user agent should be able to display it however you would like with relatively little configuration. What user agent are you using? All the popular ones that I'm familiar with (Firefox, Chrome derivatives) have addons or plugins for changing the appearance of websites. In Firefox you can even add rules to userContent.css without an addon.<p>Just for an example, here is my userContent.css for highlighting the five languages that I use most frequently in Google Translate.<p><pre><code> @-moz-document domain(translate.google.com) {
[data-language-code="ar"],[data-language-code="en"],[data-language-code="el"],[data-language-code="iw"],[data-language-code="ru"] {
background-color:#ddffdd !important;
}
}</code></pre>
I just use forced Night Mode offered by browsers like Brave and Bromite on Android and Dark Reader on Firefox.<p>Very good experience.<p>All the pages I open are in Night Mode, too, as opposed to Night Mode only on HN.
On windows 10 I turned on the invert colors shortcut key (in the 'color filters' setting page) which is ctrl+Win+c, for a quick fix for anything blowing out the my eyes. That it's instantaneously, one-handedly on or off makes the short term inversion of the tab bar etc feel ok. Most fonts surprisingly look just as good flipped but... the hn one is not a good example
i use a bookmarklet for darkmode<p><pre><code> javascript:document.querySelectorAll('*').forEach(e=%3Ee.setAttribute('style','background-color:%23222;background-image:none;color:%23'+(/%5EA%7CBU/.test(e.tagName)?'36c;text-decoration:underline;':'eee;')+e.getAttribute('style')))</code></pre>
It used to be possible to invert OSX colors with a keyboard shortcut like cmd-ctrl-8 but it's not on by default anymore (still possible to enable it from the keyboard shortcut settings).
Every major browser supports the prefers-color-scheme media query and has done so for a number of years. It really isn’t acceptable anymore to present a style that disrespects this setting.
There are already many ways to get that: <a href="https://news.ycombinator.com/item?id=27329809" rel="nofollow">https://news.ycombinator.com/item?id=27329809</a>