您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将 Anthropic console 改回浅色模式 switch the Anthropic console to light mode
当前为
// ==UserScript== // @name Anthropic Console Theme Changer // @version 0.1.0 // @description 将 Anthropic console 改回浅色模式 switch the Anthropic console to light mode // @author chesha1 // @license GPL-3.0-only // @match https://console.anthropic.com/* // @grant none // @homepageURL https://github.com/chesha1/anthropic-console-theme-changer // @supportURL https://github.com/chesha1/anthropic-console-theme-changer/issues // @namespace https://greasyfork.org/users/1422393 // ==/UserScript== (function () { 'use strict'; // 立即执行一次修改 function changeTheme() { const htmlElement = document.documentElement; if (htmlElement.getAttribute('data-theme') === 'console') { htmlElement.setAttribute('data-theme', 'claude'); console.log('主题已从 console 更改为 claude'); } } // 页面加载完成后执行 changeTheme(); // 使用 MutationObserver 监听可能的动态变化 const observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.attributeName === 'data-theme' && document.documentElement.getAttribute('data-theme') === 'console') { changeTheme(); } }); }); // 配置 observer 监听 HTML 元素的属性变化 observer.observe(document.documentElement, { attributes: true }); })();