White background replacer

Replaces the background white color with a darker one in order to decrease eye strain

すべてのバージョンを表示しています。 コードが変更されたバージョンのみを表示

  • v2.24 2024/03/16

    - feat: better handling of global backgrounds

  • v2.23 2024/03/15

    - Fix sending Boolean to isWhite()

  • v2.22 2024/03/14
  • v2.21 2024/03/11

    - Better error handling
    - Fix modification of computed style

  • v2.20 2024/03/07

    - Fix bad handling of style properties.

  • v2.19 2024/03/06

    - Fixed detection of transparent background as white

  • v2.18 2024/02/26

    - Fix wrong background color detection

  • v2.17 2024/02/25

    - Fix bug causing color change always

  • v2.16 2024/02/23

    - Refactor of known background variables. You may add new ones to the knownVarNames array.

  • v2.15 2024/02/06

    - Better error handling

  • v2.14 2024/02/06

    - Fix not changing global background color

  • v2.13 2024/02/04

    - Support for HSLA color format added
    - Changed colors are now a bit transparent

  • v2.12 2024/01/09

    Better detection; Darker and less chromatic colors;

  • v2.11 2023/09/27

    - Commented debug logs, uncomment for debugging purposes.

  • v2.10 2023/09/03

    - Reversing zero-alpha-channel-background detection as it had unwanted effects on some web sites.

  • v2.9 2023/08/30

    - Re-implemented alpha detection to detect invisible black backgrounds.

  • v2.8 2023/08/30

    - Removed low alpha detection as it had unexpected results.

  • v2.7 2023/08/30

    - Changing #content css selector to body.
    - Detect low alpha values for background.

  • v2.6 2023/08/25

    Handle no rules access: Inserting new style element.

  • v2.5 2023/08/24

    Trying to use getComputedStyle for the document first.

  • v2.4 2023/01/31

    Detecting HSL color values.
    Detecting CSS variables.

  • v2.3 2022/11/11
    • Detection of any bright color not just absolute white.
    • Using appropriate log levels.
  • v2.1 2022/11/09
  • v2.0 2022/11/09
  • v2.0 2022/11/09

    In this major release:

    • Compacted code and made it more general.
    • Automatically changes color periodically to prevent eye fatigue.
  • v1.3 2022/11/02

    Deprecated CSSRule.type was removed.
    @include directive was replaced by @match.
    One of colors was changed to be a bit darker.

  • v1.2 2019/09/06
  • v1.2 2019/04/26 Added log source note; Check if style property exists in rules before accessing it;
  • v1.1 2019/04/26 Don't place a color when BG is undefined; Change text color if it is the same as BG;
  • v1.0 2019/04/25
  • v1.0 2019/04/25 Refactored the code and removed BG image checks.
  • v0.9 2019/01/04 Added image check for all CSSRule types;
  • v0.8 2019/01/04 Removed parent iteration; Makes sure no BG images;
  • v0.7 2018/12/24 Delaying the execution to make sure other scripts are run; Looking for images when checking if a style is having or is inheriting a background
  • v0.6 2018/12/22 Looks into parent CSSRules to see if a color is set
  • v0.6 2018/12/22 Looks into parent CSSRules to see if a color is set
  • v0.5 2018/10/12 Aded support for importRule
  • v0.4 2018/10/10 Can see if cssRule is style
  • v0.2.1 2018/10/10 One of "document.body"s was a rule
  • v0.2 2018/10/07
  • v0.1 2018/05/18