Greasy Fork

网页点亮脚本

点亮网页,那么灰谁看得下去?

目前为 2022-11-30 提交的版本。查看 最新版本

// ==UserScript==
// @name               網頁點亮腳本
// @name:zh-CN         网页点亮脚本
// @namespace          Anong0u0
// @version            0.1
// @description        點亮網頁,那麼灰誰看得下去?
// @description:zh-CN  点亮网页,那么灰谁看得下去?
// @author             Anong0u0
// @match              *://*
// @run-at             document-start
// @grant              none
// @license            beerware
// ==/UserScript==


const css = document.createElement("style");

css.innerHTML = `
html, body, * {
    -webkit-filter: grayscale(0) !important;
    -moz-filter: grayscale(0) !important;
    -ms-filter: grayscale(0) !important;
    -o-filter: grayscale(0) !important;
    filter: grayscale(0) !important;
    filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=0) !important;
    filter: none !important;
}`;

document.documentElement.append(css);