Skip to content

A browser extension that sets a white background on pages where background-color is not explicitly set

License

Notifications You must be signed in to change notification settings

nickesc/white-background-enforcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version: GitHub Version: addons.mozilla.org

White Background Enforcer

a browser extension that sets a white background on
pages where background-color is not explicitly set

Overview

White Background Enforcer (WBGE) is a small, open-source browser extension – made especially for Zen browser – that enforces (by default) a white background on transparent pages and pages that do not have a background-color set.

Without WBGE With WBGE
Transparent background example White background example

Options

The extension can be disabled and the color of the background can be changed using the extension's Toolbar Button or the extension's Preferences tab in Add-on Manager (about:addons) > Extensions > White Background Enforcer

WBGE preferences tab in the Addon Manager

Custom Rules

Some websites may need cutom rules for WBGE to function how you would like. Custom rules can be defined in the following JSON format:

{
  "domain.com":{
    "wbgeColor": "white",
    "wbgeEnabled": true
  }
}

Some things to keep in mind:

  • Custom rules can only be applied to top-level domains (i.e. reddit.com, aliexpress.us).
  • You do not need to define both keys.
  • If the extension is not enabled, custom rules will not be applied.

For example, to add custom rules for Reddit and AliExpress:

{
  "reddit.com":{
    "wbgeEnabled": false
  },
  "aliexpress.us":{
    "wbgeColor": "#C0C0C0"
  }
}

Privacy

WBGE does not collect or track any data.

License

WBGE is licensed under The MIT License. For more information, view the repository's LICENSE file.