Greasy Fork is available in English.
去除任意网站的黑白样式
当前为
// ==UserScript==
// @name 任意网站去黑白
// @namespace http://tampermonkey.net/
// @version 7.1
// @description 去除任意网站的黑白样式
// @author share121
// @match *://*/*
// @match *
// @license MIT
// @grant none
// @homepageURL http://greasyfork.icu/zh-CN/scripts/455866
// @supportURL http://greasyfork.icu/zh-CN/scripts/455866/feedback
// @run-at document-start
// ==/UserScript==
setInterval(function () {
document.querySelectorAll("*").forEach(function (e) {
var s = getComputedStyle(e);
e.style.setProperty(
"filter",
s.filter && s.filter.replace(/grayscale\(.*?\)/g, "grayscale(0)"),
"important"
);
e.style.setProperty(
"-webkit-filter",
s.webkitFilter &&
s.webkitFilter.replace(/grayscale\(.*?\)/g, "grayscale(0)"),
"important"
);
});
}, 0);