READMESource: main@6a7f06aa
dsh-settings-sections
在 DeepSeek Harness 设置面板里管理「侧栏板块」显示与隐藏的轻量插件(纯客户端,localStorage 持久化)。
A lightweight pure-client plugin for DeepSeek Harness that lets you show / hide settings sections in the settings sidebar.
它能做什么 / What it does
设置页左侧导航的板块太多时,用它勾选要显示的板块、取消勾选即隐藏。隐藏后随时可回到「设置板块」里重新开启,不会删除任何设置内容。
- 在「设置」导航顶部新增一个「设置板块」管理页
- 每个板块一个开关,点击立即显示 / 隐藏对应板块
- 「全部显示」一键恢复
- 隐藏状态保存在 localStorage,重启后自动恢复
安装 / Install
方式一:手动安装(Manually)
把本仓库(或
dsh-settings-sections文件夹)放到 profile 的 node_modules:C:\Users\<用户名>\.dsh\profiles\<profile>\node_modules\dsh-settings-sections\在 profile 的
cordis.patch.yml末尾加入:- insert: - id: settings-sections name: 'dsh-settings-sections'完全退出 DSH 再打开,然后
Ctrl+Shift+R刷新页面。
方式二:插件市场(Plugin market)
本仓库带有 dsh-plugin 标签,可在 DSH 的 Zat 插件市场搜索安装。
使用 / Usage
打开「设置」→ 顶部「设置板块」→ 勾选 / 取消勾选各板块右侧的开关,或点「全部显示」。
原理 / How it works
DSH 设置侧栏的每个板块都是插件通过 settings.section 这个 slot 注册的。本插件:
- 向
settings.section注册一个自己的管理页(放在最顶部); - 读取所有已注册板块,渲染成开关列表;
- 切换开关时,通过 MutationObserver 把左侧导航里被隐藏板块对应的按钮隐藏(
display:none),同时把隐藏列表写入 localStorage。
兼容性 / Compatibility
- DeepSeek Harness EAC(桌面客户端)
- 纯客户端,无宿主端逻辑
License
MIT
No comments yet. Be the first to write one.