您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
移除页面的灰色模式 (恢复页面的彩色模式). Remove grayscale of html page (Restore color mode of html page).
当前为
// ==UserScript== // @name Anti-Grayscale // @namespace https://github.com/xcanwin/ // @version 0.3.5 // @description 移除页面的灰色模式 (恢复页面的彩色模式). Remove grayscale of html page (Restore color mode of html page). // @author xcanwin // @license MIT // @supportURL https://github.com/xcanwin/Anti-Grayscale/ // @match *://*/* // @grant all // ==/UserScript== (function() { 'use strict'; var filterstyle, re = /grayscale\(.*?\)/gi; ["filter", "-webkit-filter", "-moz-filter", "-ms-filter", "-o-filter"].forEach(xcanwin => { Array.prototype.forEach.call(document.getElementsByTagName("*"), function(el) { filterstyle = document.defaultView.getComputedStyle(el, null)[xcanwin]; if (filterstyle && filterstyle.match(re)) { el.style = xcanwin + ": " + filterstyle.replace(re, "grayscale(0) !important"); } }); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址