// ==UserScript== // @name 黑白网页恢复彩色 // @namespace http://tampermonkey.net/ // @version 1.11.4 // @license MIT // @description 黑白网页恢复彩色,匹配所有网页,即装即用。 // @author https://greasyfork.org/users/574395-frammolz-amanda // @match *://*/* // @grant GM_xmlhttpRequest // @downloadURL none // ==/UserScript== var temp = document.createElement('style');//先添加一个临时的,减少延迟,最后会remove掉 temp.type = 'text/css'; temp.appendChild(document.createTextNode("*{-webkit-filter:none !important;}")); document.head.appendChild(temp); document.body.appendChild(temp); window.addEventListener("load", function () { var sty=document.getElementsByTagName("style");//块内样式修改 for(let i=0;i]*?filter[^<>]*?grayscale[^<>]*?>/g);//行内样式修改 if(inner){ for(let i=0;i