Replaces the background white color with a darker one in order to decrease eye strain
Aquí están todas las versiones de este script. Mostrar únicamente las versiones en las que hubo cambios de código.
- feat: better handling of global backgrounds
- Fix sending Boolean to isWhite()
- Better error handling- Fix modification of computed style
- Fix bad handling of style properties.
- Fixed detection of transparent background as white
- Fix wrong background color detection
- Fix bug causing color change always
- Refactor of known background variables. You may add new ones to the knownVarNames array.
- Better error handling
- Fix not changing global background color
- Support for HSLA color format added- Changed colors are now a bit transparent
Better detection; Darker and less chromatic colors;
- Commented debug logs, uncomment for debugging purposes.
- Reversing zero-alpha-channel-background detection as it had unwanted effects on some web sites.
- Re-implemented alpha detection to detect invisible black backgrounds.
- Removed low alpha detection as it had unexpected results.
- Changing #content css selector to body.- Detect low alpha values for background.
Handle no rules access: Inserting new style element.
Trying to use getComputedStyle for the document first.
Detecting HSL color values.Detecting CSS variables.
Deprecated CSSRule.type was removed.@include directive was replaced by @match.One of colors was changed to be a bit darker.