您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Let there be Colorful! 当网站加载完成时恢复色彩,爱护眼睛保护视力
// ==UserScript== // @name 恢复色彩🌈去除网站的灰色滤镜 // @namespace cn.ideajayve // @version 0.1 // @description Let there be Colorful! 当网站加载完成时恢复色彩,爱护眼睛保护视力 // @author Jayve // @license GPL License // @match *://*/* // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; window.onload = function (){ GM_addStyle(`*{filter:unset!important;}html{-webkit-filter: unset!important;-moz-filter: unset!important;-ms-filter: unset!important;-o-filter: unset!important;filter: unset!important;filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)!important;_filter:unset!important;}*{filter:gray!important;}html{-webkit-filter: unset!important;-moz-filter: unset!important;-ms-filter: unset!important;-o-filter: unset!important;filter: unset!important;filter:unset!important;_filter:unset!important;}`); const href = window.location.href; // Baidu if(href.indexOf("www.baidu.com")>=0){ document.body.classList.remove("big-event-gray"); let lgImg = document.getElementById("s_lg_img"); if(lgImg){ lgImg.src = lgImg.src.replace("_gray",""); } } } })();