Back to home

tiantyu

dsh-skin-toggle

Instant on/off 🐋 toggle button for the maid-atelier skin in the DeepSeek Harness (DSH) web GUI. Pure client-side plugin.

Stars
0
Language
JavaScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

dsh-skin-toggle · 深海女仆工坊皮肤开关

dsh-deep-whale / maid-atelier 皮肤加的一个 即时开关按钮:页面右上角一个 🐋 悬浮按钮,点击即可在“深海女仆工坊”皮肤与默认界面之间切换, 无需重启 DSH,开关状态会记住(localStorage),刷新后保持。

  • 包名:dsh-skin-toggle(客户端插件,纯展示层,不触达模型请求)
  • 作者:tiantyu(MIT 许可;皮肤本体仍为 CC BY-NC-SA 4.0,署名见皮肤 NOTICE
  • 仓库:https://github.com/tiantyu/dsh-skin-toggle

工作原理

  • 关闭:先做“视觉关闭”(移除皮肤挂载在 <body> 上的 data-dsh-maid-atelier 门控属性, 并注入 !important 覆盖层清掉内联宫殿背景、隐藏皮肤注入的 DOM), 再尽力通过 Cordis Loader 条目 update({disabled:true}) 触发皮肤自身的 effect 销毁器做彻底清理。
  • 开启:移除视觉覆盖,update({disabled:false}) 让皮肤 apply() 重新执行。
  • 若 Loader 条目不可达,视觉开关仍然有效(皮肤观察器保持运行但不可见,无副作用)。

安装

从 GitHub(推荐)

dsh plugin --profile web add https://github.com/tiantyu/dsh-skin-toggle

从 npm

dsh plugin --profile web add dsh-skin-toggle

从本地目录(本机开发版)

dsh plugin --profile web add D:\harness\dsh-skin-toggle

安装后重启 dsh web 并硬刷新浏览器(Ctrl+Shift+R),页面右上角出现 🐋 按钮即成功: 金色 = 皮肤开,灰色 = 皮肤关

卸载

dsh plugin --profile web remove dsh-skin-toggle

重启 dsh web 后按钮消失(皮肤本身不受影响)。

发布信息