tsdfy/dsh-skin-switcher

Plugin插件 Native原生 ⭐ 3 MIT UI & Themes界面与主题

Skin switcher for DeepSeek Harness web UI: one-click theme switching with auto-discovery of community skins

Project Overview项目介绍

DSH Skin Switcher is a Cordis plugin for the DeepSeek Harness Web UI that adds a capsule button group in the top-right corner for one-click skin switching among Default, Whale Girl, Endfield, and other community themes. Selections persist across sessions, and the plugin watches <head> mutations to auto-generate buttons for discovered <style>/<link> skins. Use it when you want multi-theme toggling or to test newly installed skins. Caveat: skins using theme-token overrides, overlay slots, or asset routing need a dedicated adapter—file an issue.

DSH 皮肤切换器是 DeepSeek Harness Web UI 的 Cordis 插件,在右上角提供胶囊按钮,一键切换默认、鲸鱼娘、终末地等皮肤,选择会持久化到本地,并在 <head> 变化时自动收编社区发现的样式表生成按钮。需要时:想多皮肤切换或试用新装的主题。注意:使用 theme token 覆盖、overlay 插槽等机制的复杂皮肤需要单独适配,建议提 issue。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-skin-switcher

tsdfy/dsh-skin-switcher 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-skin-switcher

DeepSeek Harness(dsh)Web UI 的皮肤切换器插件:右上角一键切换皮肤,支持自动发现社区皮肤。

  • ✅ 不修改 dsh 核心源码,纯 Cordis 插件
  • ✅ 右上角悬浮按钮,点一下秒切皮肤
  • ✅ 选择自动记住,下次打开还是上次的皮肤
  • ✅ 自动发现社区皮肤(style/link 注入型),新皮肤装上自动冒出按钮
  • ✅ 切走皮肤时清理干净:样式表、body 属性、theme token 覆盖全部还原

安装

# 方式一:npm(发布后)
dsh plugin --profile web add dsh-skin-switcher

# 方式二:本地 tarball
dsh plugin --profile web add ./dsh-skin-switcher-0.2.0.tgz

# 方式三:GitHub 仓库 / tag
dsh plugin --profile web add github:tsdfy/dsh-skin-switcher#v0.2.0

dsh web

安装后普通 dsh web 自动加载,无需手动改 ~/.dsh 或追加 --patch

使用

刷新页面,右上角出现胶囊按钮组:

按钮 效果
默认 dsh 原生界面
鲸鱼娘 深海女仆工坊(maid-atelier)皮肤
终末地 工业风工作台(endfield-ui)皮肤
Aqua 玻璃拟态毛玻璃主题(装了才出现)
其他自动发现的皮肤 点它 = 只开它,其余全关

内置适配

以下皮肤有专属适配逻辑(切换时深度清理):

  • @dsh-external/dsh-client-ui-skin-maid-atelier(鲸鱼娘/深海女仆工坊):靠 body 属性 data-dsh-maid-atelier 开关 + 皮肤装饰节点显隐
  • @rison/dsh-endfield-ui(终末地工作台):样式表 link 开关 + 71 个 theme token 覆盖的写回/清理
  • @deepseek-ai/dsh-client-ui-aqua(Aqua 毛玻璃):样式元素开关(该包挂在官方 scope 下,自动发现会跳过它,故内置适配)

自动发现机制

插件会监听 <head> 变化,扫描带 data-plugin 标记的 <style>/<link> 元素:

  • 跳过 @deepseek-ai/ 官方前缀
  • 跳过已内置适配的皮肤
  • 名称含 skin / theme / maid / whale / aqua 等关键词的会被收编为切换按钮

限制:走 theme token 覆盖、overlay 插槽、素材路由等复杂花活的皮肤(如终末地),需要为它写专属适配。给本插件提 issue 附上皮肤名即可。

卸载

dsh plugin --profile web remove dsh-skin-switcher

卸载后恢复 dsh 原生界面,用户数据不受影响。

License

MIT

上一个 Prev qiushi-dsh-evidence-audit 下一个 Next dsh-weixin