If you're using ublock origin, I have these filters which I copied from another HN comment once upon a time. news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg)) news.ycombinator.com##body:style(background: white) news.ycombinator.com##div.toptext:style(color: black) news.ycombinator.com###hnmain td[bgcolor="#000000"] edit: "rules" -> "filters"
Hacker News needs a Dark Mode
21–30 of 94 posts
Re: Hacker News needs a Dark Mode
#22I 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!
Re: Hacker News needs a Dark Mode
#23Never understood the point of dark modes. Am I too old?
Re: Hacker News needs a Dark Mode
#24Never understood the point of dark modes. Am I too old?
Dark mode myths are summarized here: https://www.wired.co.uk/article/dark-mode-chrome-android-ios...
Re: Hacker News needs a Dark Mode
#25Re: Hacker News needs a Dark Mode
#26Re: Hacker News needs a Dark Mode
#27https://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.
Same. It's been 3 years since they said they would do something and it only needs a couple of lines to the CSS.
Re: Hacker News needs a Dark Mode
#28Re: Hacker News needs a Dark Mode
#29If you're using ublock origin, I have these filters which I copied from another HN comment once upon a time. news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg)) news.ycombinator.com##body:style(background: white) news.ycombinator.com##div.toptext:style(color: black) news.ycombinator.com###hnmain td[bgcolor="#000000"] edit: "rules" -> "filters"
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?
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))" means "if the host matches news.ycombinator.com inject the following CSS"
Here's the docs if you want to rtfm: https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filters
In this case I believe we are dealing with "cosmetic filters": https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-f...