News for hackers. Stuff that matters.
Re:Show HN: Dark Reader extension – Dark mode for every website by anewguy9900 on Tuesday December 04, 2018 @09:44AM (#18599778)
i made a similar extension some years ago -- it tries to be fast and injects very little code. i'm curious to know how the performance compares:

https://github.com/conceptualspace/nightlight

Re:Show HN: Dark Reader extension – Dark mode for every website by alexanderby on Tuesday December 04, 2018 @10:23AM (#18600180)
Your code is based on CSS filters. Dark Reader provides this mode too, but also allows users to fix and share wrongly inverted parts https://github.com/darkreader/darkreader/blob/master/src/con...

Dynamic mode is slower at start, but has no impact on performance after all the stylesheets were analyzed.

Re:Show HN: Dark Reader extension – Dark mode for every website by anewguy9900 on Tuesday December 04, 2018 @11:05AM (#18600627)
nightlight is "dynamic" by using a simple heuristic after pageload to deinvert if necessary. but the crowdsourced filter is a great idea! might borrow it :)

does your extension run on android? there are two motivations for nightlight aside from its obvious purpose:

1) be fast on android 2) keep source code simple as possible so everything the extension does is obvious. when i wrote nightlight it was difficult to evaluate the safety of the other extensions at the time, something important to me for a plugin which has full access to all browsing

Re:Show HN: Dark Reader extension – Dark mode for every website by alexanderby on Tuesday December 04, 2018 @12:40PM (#18601655)
Yes, it works in Firefox for Android and in Yandex browser. The only issue with Firefox is white user interface and white default color.