您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables dark mode on GreasyFork/SleazyFork.
当前为
// ==UserScript== // @name Greasyfork No Dark Mode // @description Disables dark mode on GreasyFork/SleazyFork. // @icon https://greatest.deepsurf.us/vite/assets/blacklogo96-CxYTSM_T.png // @version 1.0 // @author afkarxyz // @namespace https://github.com/afkarxyz/userscripts/ // @supportURL https://github.com/afkarxyz/userscripts/issues // @license MIT // @match https://greatest.deepsurf.us/* // @match https://sleazyfork.org/* // @grant none // ==/UserScript== (function () { 'use strict'; function removeDarkModeCSS() { for (let i = 0; i < document.styleSheets.length; i++) { const sheet = document.styleSheets[i]; try { const rules = sheet.cssRules; if (!rules) continue; for (let j = rules.length - 1; j >= 0; j--) { const rule = rules[j]; if ( rule.type === CSSRule.MEDIA_RULE && rule.conditionText.includes('prefers-color-scheme: dark') ) { sheet.deleteRule(j); } } } catch (e) { continue; } } } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', removeDarkModeCSS); } else { removeDarkModeCSS(); } })();