您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically applies dark mode to all websites for better eye comfort at night.
- // ==UserScript==
- // @name Auto Dark Mode
- // @namespace https://itzmehuman000.github.io/
- // @version 1.0
- // @description Automatically applies dark mode to all websites for better eye comfort at night.
- // @author DUSTIN
- // @license MIT
- // @match *://*/*
- // @grant none
- // ==/UserScript==
- (function () {
- 'use strict';
- const style = document.createElement('style');
- style.textContent = `
- body, html {
- background-color: #121212 !important;
- color: #ffffff !important;
- }
- * {
- background: transparent !important;
- color: inherit !important;
- }
- a {
- color: #4A90E2 !important;
- }
- `;
- document.head.appendChild(style);
- })();