您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically switch to Light Mode on any xLog blog site
// ==UserScript== // @name Auto Disable xLog Dark Mode // @namespace xlog-auto-disable-dark-mode // @icon https://xlog.app/assets/logo.svg // @version 0.2 // @description Automatically switch to Light Mode on any xLog blog site // @author Bryan // @match https://*/* // @grant none // @run-at document-end // @license MIT // ==/UserScript== (function() { 'use strict'; const isXLog = !!document.head.querySelector("[content=xLog]"); if (!isXLog) return; const oldLocalStorage = localStorage.getItem('darkMode'); if (oldLocalStorage !== 'light') { localStorage.setItem('darkMode', 'light') } })();