Skip to content

Dim Overly Bright Webpages (CSS Variables) by adventuretc

Details

Authoradventuretc

LicenseNo License

Categoryall

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Complementary CSS for the userscript.
https://greasyfork.org/en/scripts/445216/

Removes #FFFFFF background color and optionally generates a userstyle that does the same.

Alternate names: Dim bright webpages, Fix bright webpages, Remove Blinding White Backgruond, Eye Saver, Remove CSS Colors, Disable CSS.
Search terms: remove white background, remove CSS, kill CSS, disable CSS, grey theme, dark theme.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Dim Overly Bright Webpages CSS Variables.
@description  Complementary CSS for the userscript.
@namespace    me.adventuretc
@author       adventuretc
@version      0.3.0
@preprocessor stylus
@var color    bgColor  "Background color"   #D9D8CA
@var color    fontColor  "Font color (only if modified)"   #121212
@var color    hyperlinkColor  "Hyperlink color (only if modified)"   #000882
@var select   colorSelectionMethod   "Color selection method"    ["Firefox", "Custom"]
@var checkbox isDarkMode "Joke" 0


==/UserStyle== */

@-moz-document url-prefix("http"),
url-prefix("file")
{
	if colorSelectionMethod==Firefox
	{
		:root
		{
			--var-dimbrightwebpages-background-color: -moz-default-background-color;
			--var-dimbrightwebpages-font-color: -moz-default-color;
			--var-dimbrightwebpages-hyperlink-color: -moz-hyperlinktext;
		}
	}

	else if colorSelectionMethod==Custom
	{
		:root
		{
			--var-dimbrightwebpages-background-color: bgColor;
			--var-dimbrightwebpages-font-color: fontColor;
			--var-dimbrightwebpages-hyperlink-color: hyperlinkColor;
		}
	}


    
}

Reviews

No reviews yet.