您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make everything simpler and easy on the eyes.
// @ts-check // ==UserScript== // @name Minimal theme // @version 0.4 // @description Make everything simpler and easy on the eyes. // @match *://*/* // @grant none // @run-at document-body // @license MIT // @namespace TRAPNSTUDIO.DEV // @author TRAPNSTUDIO.DEV // ==/UserScript== (function () { 'use strict'; const style = document.createElement('style'); style.innerHTML = ` :root { --min-theme-color-primary: #333333; --min-theme-color-secondary: #F0F0F0; } /* Dark mode */ @media (prefers-color-scheme: dark) { :root { --min-theme-color-primary: #F0F0F0; --min-theme-color-secondary: #333333; } } * { fill: var(--min-theme-color-primary) !important; color: var(--min-theme-color-primary) !important; border-color: var(--min-theme-color-primary) !important; outline-color: var(--min-theme-color-primary) !important; background-color: transparent !important; text-decoration-color: var(--min-theme-color-primary) !important; box-shadow: none !important; text-shadow: none !important; opacity: 1 !important; } *:hover, *:active, *:focus { background-color: var(--min-theme-color-secondary) !important; } html, body { background-color: var(--min-theme-color-secondary) !important; } ::placeholder { color: var(--min-theme-color-primary) !important; } ::selection { background-color: var(--min-theme-color-primary) !important; color: var(--min-theme-color-secondary) !important; } `; document.getElementsByTagName('head')[0].appendChild(style); })();