Better HN
topnewbestaskshowjobs
Log inSign up

o9000

2 karma · joined Dec 4, 2018 (7y ago) · 3 submissions

Submissions

comment 7y ago · link · parent

Thanks. I use it myself so I tried hard to make it work well.

comment 7y ago · link · parent

Here are the filters: https://gitlab.com/o9000/darken/blob/master/chrome/style.css

comment 7y ago · link · parent

I’ve also written a similar addon, although much simpler, using static css filters:

https://chrome.google.com/webstore/detail/dark-mode-night-re...

https://addons.mozilla.org/en-US/firefox/addon/dark-mode-nig...

https://gitlab.com/o9000/darken

It has 4 presets that can be configured per domain.

I’ve added by hand rules to fix inverted images on some popular websites. YouTube is a pain to maintain, they keep changing their css every couple of months.

The code is simple enough to review even for someone not familiar with JS. And you can download it and load it as a local extension if you’re worried about the permission.

I’ve only tested it under Linux, I don’t use anything else. But some users tell me it works under Windows too.