grayBackgroundColor

将网页背景色改为护眼灰

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

ผู้เขียน
sakuyaa
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
3,090
คะแนน
18 1 0
เวอร์ชัน
2024.4.1
สร้างเมื่อ
12-07-2016
อัปเดตเมื่อ
01-04-2024
Size
2.79 กิโลไบต์
ความเข้ากันได้
เข้ากันได้กับ Firefox
สัญญาอนุญาต
ไม่มี
ปรับใช้กับ
ไซต์ทั้งหมด

grayBackgroundColor.user.js

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

脚本安装地址:Greasy ForkGitHub

具体说明

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