grayBackgroundColor

将网页背景色改为护眼灰

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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!)

Autor
sakuyaa
Installationen heute
0
Installationen gesamt
3.093
Bewertungen
18 1 0
Version
2024.4.1
Erstellt am
12.07.2016
Letzte Aktualisierung
01.04.2024
Größe
2,79 KB
Kompatibilität
Kompatibel mit Firefox
Lizenz
n/a
Wird angewandt auf
Alle Seiten

grayBackgroundColor.user.js

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

脚本安装地址:Greasy ForkGitHub

具体说明

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