grayBackgroundColor

将网页背景色改为护眼灰

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Tekijä
sakuyaa
Päivittäiset asennukset
0
Asennuskerrat
3 090
Arvostelut
18 1 0
Versio
2024.4.1
Luotu
12.7.2016
Päivitetty
1.4.2024
Size
2,79 kt
Yhteensopivuus
Yhteensopiva selaimen Firefox kanssa
Lisenssi
N/A
Käytössä
Kaikki sivustot

grayBackgroundColor.user.js

将网页背景色改为护眼灰,需要配合browser.display.background_color;#DCDCDC使用

脚本安装地址:Greasy ForkGitHub

具体说明

  • 该脚本将RGB值均高于215的网页元素的背景色改为护眼灰,分别将RGB三个值按比例压缩,使得原有不同颜色的网页背景色在改变之后可以进行区分
  • 一些网站没有指定背景颜色,则需要火狐改变默认背景色(默认白色),将browser.display.background_color的值改为#DCDCDC
  • 还有一些网站(如贴吧)直接将空白图作为背景颜色,fixNotGray()函数使用css将这些图片隐藏
  • 似乎有些网站加载很慢(在加载很多DOM节点),这时候可能会报该脚本可能正忙,或者已停止响应,不知道怎么解决:flushed: