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?
I agree with many of the other similar comments, having dark-mode supported by default would be good BUT we don't need it. It's already well supported by several styling extensions.
I use 'Stylish' on Firefox and it works well not just on HN but quite a few sites.
I do need it, on an iPhone there is no way to apply userstyles :/.
However, if we want to keep HN clean, but help users with closed mobile browsers, how about we add an option to add own css url in HN profile? This way I could even create my own dark theme and have it available on all of my devices.
On my phone I find the regular site difficult to use anyways, so I go with hn.premii.com, which has a dark theme.
For those who don't mind using a bookmarklet or using something like TamperMonkey, this bit of js does a pretty good job darkening most sites: !function(d){d.head.appendChild(d.createElement('style')).innerText='html,img,video{-webkit-filter:invert(1)hue-rotate(180deg);filter:invert(.9)hue-rotate(180deg)}body{background:#000}'}(document);
Comments (445) 93 threads
Earlier comments:root { color-scheme: light dark; }
This allows the browser to change the default rendering of controls like inputs and textareas. It also sets up many defaults nicely. Please use this in conjunction with @media (prefers-color-scheme: dark).
Reference: https://webkit.org/blog/8840/dark-mode-support-in-webkit/ https://drafts.csswg.org/css-color-adjust-1/#color-scheme-pr...
https://userstyles.org/styles/22794/a-dark-hacker-news
Here's what my HN looks like - https://imgur.com/a/UM5qXtD
However, if we want to keep HN clean, but help users with closed mobile browsers, how about we add an option to add own css url in HN profile?
This way I could even create my own dark theme and have it available on all of my devices.
td { background-color: inherit; }
.c00 { color: #D2D2D2 !important; }
a { color: #4C709B !important; }
textarea { color: #D2D2D2 !important; background-color: #181818; }
input { color: #D2D2D2 !important; background-color: #181818; }
table { background-color: #1C1C1C; }
For those who don't mind using a bookmarklet or using something like TamperMonkey, this bit of js does a pretty good job darkening most sites:
!function(d){d.head.appendChild(d.createElement('style')).innerText='html,img,video{-webkit-filter:invert(1)hue-rotate(180deg);filter:invert(.9)hue-rotate(180deg)}body{background:#000}'}(document);
All comments shown.
Couldn't load more comments. Check your connection and try again.