您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
取消各网站首页变灰
// ==UserScript== // @name 灰色网页变彩色 // @version 0.1 // @description 取消各网站首页变灰 // @author AyaSono // @match http://*/* // @match https://*/* // @icon https://img1.baidu.com/it/u=3816024841,1982428002&fm=253&fmt=auto&app=138&f=JPEG?w=444&h=444 // @grant none // @namespace http://greasyfork.icu/users/992881 // ==/UserScript== (function() { 'use strict'; /*/ const html = document.querySelector('html') if (window.getComputedStyle(html).filter === 'grayscale(1)' || window.getComputedStyle(html).filter === 'grayscale(100%)') { html.style.filter = 'none' console.log('grayscale reset') } console.log('grayscale undetected') /*/ function grayKiller(dom) { const filter = window.getComputedStyle(dom, null).getPropertyValue('filter') filter.includes('grayscale') && dom.style.setProperty('filter', 'none') } grayKiller(document.documentElement) grayKiller(document.body) })();