您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
强制所有网站使用彩色
// ==UserScript== // @name 强制彩色 // @namespace https://3never.life/ // @version 1.0.8 // @description 强制所有网站使用彩色 // @author 3never // @match *://*/* // @exclude *://*.youtube.com/* // @exclude *://*.reddit.com/* // @exclude *://twitter.com/* // @exclude *://*.google.com/* // @icon https://i2.100024.xyz/2022/11/30/ukf7tm.webp // @grant none // @license MIT // @supportURL https://github.com/3never/force-colorful // ==/UserScript== (function() { 'use strict'; // Your code here... let divCount=0 function 修改节点filter(node){ let style = window.getComputedStyle(node,null).filter if(style=='grayscale(1)'||style=='grayscale(100%)'){ node.style.setProperty('filter', 'grayscale(0)', 'important'); } } function changeFilterByTag(tag){ var nodes = document.getElementsByTagName(tag); for (var i = 0; i < nodes.length; i++) { 修改节点filter(nodes[i]) } } function 黑白清零(){ let curCount = document.getElementsByTagName("div").length; if(divCount != curCount){ 修改节点filter(document.documentElement) 修改节点filter(document.body) changeFilterByTag("div") changeFilterByTag("form") changeFilterByTag("img") divCount = curCount } } // B站 var patt1=new RegExp("bilibili.com"); if(patt1.test(window.location.href)){ document.documentElement.style.setProperty('filter', 'grayscale(0)', 'important'); return } // hypergryph.com var patt2=new RegExp("hypergryph.com"); if(patt2.test(window.location.href)){ document.documentElement.style.setProperty('filter', 'grayscale(0)', 'important'); document.body.style.setProperty('filter', 'grayscale(0)', 'important'); return } 黑白清零(); setInterval(function(){ 黑白清零(); }, 3000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址