Live data from Hacker News

Hacker News needs a Dark Mode

news.ycombinator.com

61–70 of 94 posts

Re: Hacker News needs a Dark Mode

#63
post #55
post #15

Earlier quoted context omitted.

Maybe not old enough? ;-) I use to prefer light mode exclusively, but my eyes feel more comfortable with dark mode as I get older.

I'm a graybeard, but I find dark modes to be much more difficult to read than light ones. I've never really understood the appeal of dark modes (outside of just aesthetics), but I do understand that they have an appeal to some.

Fair enough. For sure it's subjective factors (personal taste, etc) + objective ones (surrounding lighting, time of day, how long you've already been looking at a screen, and so on ...).

Re: Hacker News needs a Dark Mode

#64

I know you mentioned you don't like extensions, but for those that don't mind Dark Reader is really useful: https://darkreader.org/ I have it setup to enable according to the system. Also, I use the whitelist mode, so I enable on specific websites instead of having it enabled for every one automatically. It's available on mobile via Firefox for Android!

Thank you for your suggestion! I am currently using it now & it's fantastic!

Re: Hacker News needs a Dark Mode

#65
post #4

Never understood the point of dark modes. Am I too old?

No. The primary benefit of "dark mode" is that it reduces eye strain for folks using their monitor at a brightness set too high for their environment. It can also just look cool, which is fine too. Dark mode myths are summarized here: https://www.wired.co.uk/article/dark-mode-chrome-android-ios...

Or... you could just switch lights on in your room and brightness of your monitor compared to the rest of your environment won't be that dramatical.

Re: Hacker News needs a Dark Mode

#66
post #29

Earlier quoted context omitted.

I’m an embedded dev, so websites and web tech are a black box to me… I’ve never asked, does the ## mean “overwrite” as uBlock DSL?

> I’m an embedded dev, so websites and web tech are a black box to me You should start tinkering with embedded webservers then (civetweb, etc)! Even embedded devs should learn web tech because often browsers are the easiest way to interface with router/modem settings, IoT settings, etc. In this case "##" is uBlock filter syntax. Basically "news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg))" mean…

> means "if the host matches news.ycombinator.com inject the following CSS"

Well I wouldn't word it like that.

    youtube.com##.ytp-cards-teaser
Hides elements with the selector ".ytp-cards-teaser", so ## doesn't represent "inject the followong CSS".

This is a helpful link: https://github.com/gorhill/uBlock/wiki/Introduction-to-basic...

## represents a cosmetic filter. Though I can't seem to figure out what #$# is still but I know that's also possible to use

Re: Hacker News needs a Dark Mode

#68

Earlier quoted context omitted.

No. The primary benefit of "dark mode" is that it reduces eye strain for folks using their monitor at a brightness set too high for their environment. It can also just look cool, which is fine too. Dark mode myths are summarized here: https://www.wired.co.uk/article/dark-mode-chrome-android-ios...

>using their monitor at a brightness set too high for their environment That's rather dismissive and ablest. I need high contrast. Dark background and bright text allow me to view the content. Screen brightness plays a role here too, but it's used to enhance the contrast, not compete against it.

> I need high contrast.

Me too! That's an independent issue, though.

Normal HN text has a contrast ratio of 19.34:1, which is great.

In contrast (ha ha), greyed-out text has a contrast ratio of 3.54:1, which is terrible.

So, HN should definitely fix text/background contrast ratios ASAP, whether or not they add a dark mode.

Re: Hacker News needs a Dark Mode

#69
Thank you all for your enthusiastic responses!

I was sorry to learn that this feature request hasn't seen much traction. However @ksec gave me an idea by linking me to an earlier thread on this very same topic in which somebody suggested that we just create a patch for the existing news.css file.

Not sure why this thread got flagged, but I took it upon myself to create a patch for the existing news.css file as well as producing a new news.css file with dark mode support:

Patch: https://pastebin.com/Gwq5WSwX

Full File Pre-Patched: https://pastebin.com/Nd7JDLLT

Again, all thoughts and criticisms of this work will be welcomed.

Please help those of us with a dark mode preference enjoy this website more by implementing these changes (after a proper code review of course, as I would expect nothing less from fellow hackers)

Re: Hacker News needs a Dark Mode

#70
post #2

https://news.ycombinator.com/item?id=23197966 And probably a dozens more with 100+ comments and hundreds more with a few comments. At this point I have simply given up.

Okay I'm a glutton for punishment so I added support to news.css and created a patch for it.

https://news.ycombinator.com/item?id=36344178

Post reply on HN