您需要先安装一个扩展,例如 篡改猴、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.1 // @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 = JSON.parse(localStorage.getItem('xlog') || '{}') if (oldLocalStorage.darkMode !== 'false') { const newLocalStorage = { ...oldLocalStorage, darkMode: 'false'}; localStorage.setItem('xlog', JSON.stringify(newLocalStorage)) // location.reload() } })();