dsh-simplify
Manifest validClean-mode for the Web GUI: hover any element and right-click to remove it; removals survive reloads and are restorable from the settings page.
dsh-simplify
DeepSeek Harness 界面简化插件:进入清理模式后,右键移除页面元素,被移除的元素可在「设置 → 简化」中查看交互式预览并原样恢复。
Clean up the DeepSeek Harness (dsh) web UI: in clean mode, right-click any page element to remove it; removed elements can be previewed interactively and restored from the settings page.
功能 / Features
- 首页左下角、设置按钮上方的「简化」图标按钮,一键进入/退出清理模式(仅图标,无文字)。
- 清理模式中悬浮元素会显示红色描边,右键移除,左键操作完全不受影响,Esc 或再次点击按钮退出。
- 移除记录跨重启持久化:DSH 每次启动会换一个随机端口,按源隔离的 localStorage 在重启后即失效;因此移除记录默认写入
~/.dsh-simplify/records.json(服务端桥/api/dsh-simplify/records,仿官方插件 token-stat 的回环只读/写接口),浏览器 localStorage 仅作本地镜像与离线兜底——重启后记录仍会保留并自动重新生效。可用环境变量DSH_SIMPLIFY_DATA_DIR更改数据目录。 - 记录实时防复活(MutationObserver 重扫):只有与移除时完全相同的元素会被重新清除,列表重排后位置漂移的相邻元素不会被误删。
- 设置页侧栏新增「简化」页:列出所有被移除元素,每条带可交互预览——按原样式绘制,直接点击预览即可执行该元素原本的操作(如切换设置页)且不会还原位置;即使刷新页面后依然可交互(插件会自动收养应用重建的等价元素,页面仍保持移除状态);可独立「恢复」或勾选后「批量恢复」,恢复的元素以原样回到原位置。
- 侧边栏折叠时,页脚按钮与其它插件统一排成一列,互不冲突。
安装 / Install
从 GitHub 仓库安装(需 dsh 命令行):
dsh plugin --profile web add github:Anna-la/dsh-simplify
或从插件市场(dsh-market)搜索 dsh-simplify 安装。安装后重启 Harness(或刷新 Web 页面)即可。
Alternatively install from a local copy:
dsh plugin --profile web add ./<path-to>/dsh-simplify
使用 / Usage
- 点击左侧底部设置按钮上方的「简化」图标进入清理模式(底部出现提示条)。
- 移动鼠标,悬浮的元素会显示红色描边;对该元素单击右键即可移除。左键点击、拖拽等操作不受影响。
- 按
Esc或再次点击「简化」图标退出清理模式。 - 打开「设置 → 简化」,可查看全部已移除元素:行内预览区显示元素原样式,点击可体验它原本的操作(不会还原位置);勾选多条后点「批量恢复」,或对单条点「恢复」。
开发 / Development
client/client.js—— 浏览器端 bundle(DSH client 插件,手写window.__ModuleLoader__.load格式,仅依赖reactseed)。lib/index.js—— 服务端半面:注册回环/api/dsh-simplify/records桥(GET 读 / PUT 写~/.dsh-simplify/records.json),使移除记录跨重启、跨端口保留。fixture-test.html在本地存在:用系统 Chrome 打开可对引擎逻辑做全量自检(移除/记录/恢复/重扫/清理模式/设置页渲染/级联回归/交互预览/服务端桥同步,60 项断言)。fixture-react.html在本地存在:加载真实的 React 18(含事件委托)验证预览交互——同会话与"整页重载收养"两种场景下点击预览均能执行原操作(14 项断言)。
仓库结构符合 DSH 插件收录规范:package.json 声明 dsh.bundle.patch 与根目录 cordis.patch.yml。
License: MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.1 | — | — |
Similar plugins
Toggle, delete, undo-delete, and check/update plugins from the Web settings panel; runtime enable/disable is persisted to the profile.
★ 0
dsh plugin --profile web add dsh-plugin-toggleFloating restart button for the DSH web GUI: restarts the dsh process in place with a full-screen overlay and auto-reloads the page; no launcher script required, works on Windows/macOS/Linux.
★ 0
dsh plugin --profile web add dsh-restart-fabWindow-like controls for every Web UI modal: drag by title bar, eight-way resize, pin against outside clicks, maximize to the full viewport, removable backdrop blur, and per-dialog persistent state.
★ 0
dsh plugin --profile web add dsh-modal-enhancerMobile-viewport fixes for the dsh web GUI: overlay drawer sidebar with swipe gestures, icon-only composer with a mode · model · effort status line, centered popovers, and horizontal-overflow/scrollbar
★ 0
dsh plugin --profile web add dsh-mobile-webuiOwnership-checked tools and HTTP routes to list, release and permanently delete subagent sessions, with automatic web UI refresh after deletion.
★ 0
dsh plugin --profile web add dsh-plugin-subagent-deleteDeveloper tools panel for the DSH web UI: file browser with preview, edit, and path-only file mentions; multi-tab terminals with quick commands; Git panel with commit, push, pull, and branch switching
★ 0
↓ 99/wk
dsh plugin --profile web add dsh-ui-tools