// ==UserScript== // @name DeepSeek 科技蓝黑主题 (彻底回归原版/绝对无bug) // @namespace https://scriptcat.org/ // @version 6.0 // @description 彻底放弃对输入框、弹窗、下拉菜单的布局干预,完全恢复原生样式,只做安全的全局背景与侧边栏涂色 // @author You // @match https://chat.deepseek.com/* // @grant none // @run-at document-start // ==/UserScript== (function() { 'use strict'; const style = document.createElement('style'); style.innerHTML = ` /* ================= 科技蓝黑主题变量 ================= */ :root { --tech-bg-main: #070b14; /* 最深背景 */ --tech-bg-sidebar: #0c1220; /* 侧边栏 */ --tech-blue: #00d2ff; /* 霓虹科技蓝 */ --tech-text-main: #e0e6ed; /* 主文字 */ } /* ================= 1. 全局底层背景 (最安全的底色) ================= */ html, body, #root, #app { background-color: var(--tech-bg-main) !important; color: var(--tech-text-main) !important; } /* ================= 2. 侧边栏 (只涂色,不改结构) ================= */ aside { background-color: var(--tech-bg-sidebar) !important; } aside * { color: var(--tech-text-main) !important; } aside a:hover { color: var(--tech-blue) !important; } /* ================= 3. 聊天气泡 (只改背景,保留原版圆角) ================= */ /* 仅针对 AI 回复进行轻微涂色,避免影响输入框 */ [class*="assistant"] { background-color: #101726 !important; color: var(--tech-text-main) !important; } /* 用户消息保持原版,或者只做极轻微涂色 */ [class*="user-message"] { background-color: #1a253a !important; color: var(--tech-text-main) !important; } /* ================= 4. 滚动条 (6px 安全蓝) ================= */ ::-webkit-scrollbar { width: 6px !important; height: 6px !important; } ::-webkit-scrollbar-track { background: transparent !important; } ::-webkit-scrollbar-thumb { background: var(--tech-blue) !important; border-radius: 3px !important; } * { scrollbar-width: thin; scrollbar-color: var(--tech-blue) transparent; } /* ========================================================= ⚠️ 重要声明: 以下区域已全部放弃样式修改,完全回归原版(无任何 CSS 干预): - 输入框(宽度、高度、内边距、边框全部原版) - 系统设置弹窗(背景、边框、z-index 全部原版) - 下拉菜单与用户菜单(布局、文字、背景全部原版) - 代码块 - 隐藏/显示按钮(已从脚本中彻底移除) ========================================================= */ `; if (document.head) { document.head.appendChild(style); } else { document.documentElement.appendChild(style); } })();