Greasy Fork is available in English.
把网页颜色变淡,呈淡彩色显示,更护眼哦~~
// ==UserScript==
// @name 网页淡彩显示
// @namespace http://tampermonkey.net/
// @version 1.1
// @description 把网页颜色变淡,呈淡彩色显示,更护眼哦~~
// @author ccav5
// @match *://*/*
// @exclude *://*.jd.com/*
// @exclude *://*.jd.hk/*
// @exclude *://*.taoao.com/*
// @exclude *://*.tmall.com/*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
addNewStyle("*{-webkit-filter: grayscale(8%)}")
})();
function addNewStyle(newStyle) {
console.log("?? add new style:", newStyle)
var styleElement = document.getElementById('styles_js');
if (!styleElement) {
styleElement = document.createElement('style');
styleElement.type = 'text/css';
styleElement.id = 'styles_js';
document.getElementsByTagName('head')[0].appendChild(styleElement);
}
styleElement.appendChild(document.createTextNode(newStyle));
}