darkreader: Don't invert dark pages
I couldn’t find an existing issue for this.
Currently the extension seems to blindly invert all pages, even ones that are already dark. Example: https://www.cs.ru.nl/~freek/fta/xindex.html
Perhaps it could check whether colours are already sufficiently dark before inverting them?
I know about dark_sites.json
, but I’m talking about automatic detection of dark pages.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 16 (6 by maintainers)
I am working on a detection algorithm for dark pages, but it is not that easy, since it should be reliable and efficient for all/most pages. I got two approaches so far:
captureVisibleTab
, will probably already betoo slow.Currently, I am going for option 1, but the base is the same (color => brightness => dark/light), which I already got. If anybody has better ideas, I am thankful for suggestions or discussing the approach.