This extension eases your eyes by inverting the brightness of every webpage you browse.
The majority of websites mainly use very light colors, but some already have a refreshing dark theme. For these the user can disable the domain, essentially setting it on a blacklist of the application.
Its goal is, in contrast to the approach of creating new webpage–specific templates, to be as general as possible. This is best achieved by applying the CSS filter
invert to the document root, because it inverts the whole area in one swoop after it got rendered normally instead of iterating over every element. This is even more efficient because CSS filters rely on browser implementation, meaning all the good stuff like hardware acceleration or other system specific optimizations.
Images should still show normally, but single elements cannot be excluded from the filter. This is no problem, since they can just get inverted on their own before the whole document gets inverted, reverting the images to their original color.
To preserve the visual appearance of websites which may be iconic like the blue theme of Facebook, another filter is applied that rotates the hue back by 180 degrees. However, due to certain limitations of the RGB color model, very saturated colors get clipped in their value component that would have to exceed the maximum, resulting in occasional weird–looking images after they got reverted. Where an exact representation is needed, the hue–rotation can be disabled.
more ideas to be implemented in future releases are:
[+]to add a rule, specify the case e.g. as regex, input CSS to be applied into text field)
fix for changed Twitter CSS
improvements and tweaks for YouTube, Twitch, Twitch Beta, Wikipedia, TED and Bandcamp
made popup visually respond like websites (bg + css filter)
adjustment for new YT theme (and other domains)
updated preset blacklist
Updated predefined custom rules for twitch.tv (not inverting the dark theme)
added predefined custom rules for bandcamp.com
Fixed/improved some of the predefined custom rules
added message encouraging feedback
Bugfix: extension won't install because options page (WIP) was referenced but not found because it got excluded when packing extension
First public release of Night Reader