17 ms·
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
by anewguy9900 8y ago
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 https://github.com/conceptualspace/nightlight
- alexanderby 8y agoYour 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/config/inversion-fixes.config 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.
- anewguy9900 8y agonightlight 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
- alexanderby 8y agoYes, it works in Firefox for Android and in Yandex browser. The only issue with Firefox is white user interface and white default color.