您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去掉全局黑白滤镜
// ==UserScript== // @name 去他妈的黑白滤镜 // @icon https://ftp.bmp.ovh/imgs/2021/04/827c720b3f24eaf6.jpg // @namespace saltfish // @version 1.0 // @description 去掉全局黑白滤镜 // @author 一条咸鱼 // @match *://*.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict' // Your code here... var html= document.querySelector('html') // 这里的“html”可以换成设置了filter的class var filter = window.getComputedStyle(html).filter if(filter.indexOf('grayscale') != -1){ html.setAttribute("style", "filter:none !important;-webkit-filter:none !important;-moz-filter:none !important;-ms-filter:none !important;-o-filter:none !important;-webkit-filter:none !important;"); } })();