This call to action is too direct and it's too difficult to argue against it or retract the vote. In my opinion a better submission would be something that encourages discussion, like: "Do you think HN should add support for dark mode?"
"Upvote for official ycombintaor up/down vote bot"
There is no technical reason why not everybody should be able to set the color for any website any way they want.
I would expect it to be trivial to make a bookmarklet that changes the color of HN. Here is a quick hack that makes HN display green text on black:
Just edit any of your existing bookmarks and put that line into the url field. Now whenever you click that bookmark, the current page turns into green text on black background.
Websites, are intended to be an expression of their authors, and part of that intent is creative, including layout, color scheme and typography. Why shouldn't an author have control over the colors of their site?
>There is no technical reason why not everybody should be able to set the color for any website any way they want.
No technical reason, and plenty of plugins exist to enable that, and browsers have supported it to some degree for a while.
But modern websites are incredibly complex, and css can be dynamic. It would be an incredible burden to have everyone design a custom stylesheet for every site they visit from the ground up. The vast majority haven't got the time, talent or desire to do so, which is why it exists as an option, not the default.
User style sheets are still supported by Safari, and I think there are extensions for Chrome and Firefox that add support.
Honestly, the mania for dark mode baffles me.
Dark mode isn't for everyone, but it does seem to suit a lot of people - enough that 3rd party themes pop up for popular websites and desktop apps.
Like at a bus stop in the evening, long distance buses, during flights, while one has difficulties to sleep next to a partner.
I struggle to see how stopping to read in dark environments altogether is a serious proposal to the problem.
One way to reduce the amount of blue light coming into the eye, it seems to me, is to add red light, which causes the pupils to contract, which makes it so that less of the blue light outside the eye will enter the eye.
I get the impression that the light coming from a black pixel has a lot of blue in it, and that turning on the red sub-pixel would decrease the amount of blue light entering the eye because the pupil-contracting effect I just described (even though it would not decrease the amount of blue light outside the eye).
My point is that using f.lux to dial down the color temperature as low as it will go (1200 K on my Mac after bedtime, giving the screen a pronounced reddish-orange hue) will result in less blue light entering the eye than making most of the pixels black would result in.
(Turning on a red light bulb would have the same effect, but f.lux is easier.)
A better way to avoid blue light would be to switch to an OLED display or to have a backlight that can be switched to producing only red light, but among the no-purchase-cost options, if the only displays available are LCDs with standard white backlight, making the screen mostly red seems to work better than making the screen mostly black.
(Neither is particularly good however if the goal is to avoid the effects of blue light on the brain.)
I don't know which colors are most effective at causing the pupils to contract. I don't have any hard data. But I'm sensitive enough to the effects of blue light on my brain at night that I believe it worthwhile to post here my subjective impressions of the relative effectiveness of f.lux adjusted (via its preferences pane) as red as it will go and a mostly black screen, which I achieved by making most things white, including a solid-white desktop, then "inverting the colors" using the keyboard shortcut control-option-command-8.
(It is possible to have both of the "interventions" or "settings" described above in effect at the same time, so I will add that once f.lux is as red as it will go, "inverting the colors" does not produce any additional benefit as far as I can tell.)
- lightweight, not perfect, never crashes: https://userstyles.org/styles/112107/global-black-for-amoled... (but don't install "stylish" use something maleware free like "stylus"
- heavy, as good as it gets, sometimes hangs on certain sites: https://github.com/darkreader/darkreader
The orange + dark looks pretty good overall
Edit: I was going to edit the post to include a link to the Android app I use (that mostly seems to embed the site), but it seems to have been removed from Play store. No idea why, works fine on my phone.
I'd support a dark mode, but don't really need one...
Thanks, installed :)
Also starting from Chrome 70 you don't have to allow access to all websites: https://developer.chrome.com/extensions/runtime_host_permiss...
As a Midnight Lizard developer I'm doing my best to make sure it is as secure as it can be, but it is harder to prove that you are not doing anything bad...
Suppose I am using dark text editor and the websites I often visit are dark. Still every few minutes I will have to visit a site with white background. My eyes will have to constantly adjust between dark and light backgrounds. It can't be escaped.
I don't understand why developers use dark text editors when the sites they are building are white. They visit that every few seconds.
I added it as a toggle-able script for TamperMonkey so I don't have to click on the bookmarklet on every page, and changed the 'invert(1)' bit to invert(.9) so it's not full black.
It is as necessary as cars with different colours. People's preference.
So let stop making a big deal about it, and just have it in all software. Its just a colour scheme! Stop being lazy software devs!
You are welcome.
If there was dark mode support, I think it should be based on `prefers-color-scheme: dark`.
That would assume everyone only reads HN outside though.
Context: On macOS, the equivalent of Alt + Tab is ⌘Tab. However, unlike on Windows, ⌘Tab only switches between apps--it won't iterate over multiple windows within an app. That has a separate combination: ⌘`. So if you want to switch to a particular window within an app, first you have to ⌘Tab to the app, then ⌘` to the correct window.
document.querySelector('html').style.filter = "invert(0.8)"
iOS > settings > general > Display Accommodations
Turn on smart invert and color filter: grayscale