dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zimo-2233/dsh-html-visual-editor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Edit a generated HTML file on the rendered page itself — no source code view.
English · 中文
When an agent writes a report to .html, DeepSeek Harness shows it as source code.
This plugin adds a file viewer for dsh-better-sidebar that renders the document
and lets you edit the text, formatting and layout in place, then writes the result
back to the same file.

This plugin renders inside the DSH Better Sidebar, so install that first:
dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add github:zimo-2233/dsh-html-visual-editor
The install comes straight from this repository; the published bundle
(lib/client.js) is committed, so there is no build step and no build-script
approval to grant.
dsh-better-sidebar 0.28.0 or newer is required. Without it the plugin stays
inert — it never breaks the app. Nothing else is started: no local server, no
browser extension, no API key, no network call at edit time.
.html / .htm file in the right sidebar. The document renders as a page.Ctrl/Cmd+S inside the page.
This is the only step that writes to the file — there is no autosave.Rollback: turn off “HTML 可视化编辑” in the sidebar settings’ viewer list, or uninstall the plugin. The built-in HTML viewer returns; no other plugin is touched.
For a complete document with an explicit <body>, only the body is replaced. The
original doctype, <head> (including CSS, links and scripts), the body attributes
and everything after </body> are preserved byte for byte. Scripts inside the body
are kept, but they never run in the editor.
sandbox="allow-scripts" and without
allow-same-origin, so the document gets an opaque origin.MessageChannel port, checked
against the window source, the opaque origin and a per-load random token.localStorage, not uploaded, and not sent to any AI
service. Unsaved drafts live in memory for the current session only (five at most).dsh-better-sidebar leaves it inert instead of breaking the app.npm install
node scripts/build.mjs
npm test
The browser acceptance harness lives in test/browser/:
node scripts/build-browser.mjs
node test/browser/server.mjs <workspace-root> 8977
# open http://127.0.0.1:8977/
It exercises the real handshake in Chromium: 0.1.1 reaches the ready state in under 50 ms, while 0.1.0 times out on every case — the regression that 0.1.1 fixes.
MIT — see LICENSE.
在 DSH 右侧栏里直接编辑渲染后的 HTML 页面,而不是切换到源码视图。
当智能体生成一份 .html 报告时,DeepSeek Harness 默认按源码显示它。本插件为
dsh-better-sidebar 提供一个文件查看器:先把文档渲染成页面,再让你在页面上直接
改文字、改格式,改完写回同一个文件。

本插件渲染在 DSH Better Sidebar 里,请先安装它:
dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add github:zimo-2233/dsh-html-visual-editor
安装直接来自本仓库;构建产物(lib/client.js)已随仓库提交,因此没有构建步骤,
也不需要批准任何安装期脚本。
需要 dsh-better-sidebar 0.28.0 或更新版本。若未安装,本插件保持静默,不会影响
宿主运行。除此之外不启动任何服务:没有本地服务器、没有浏览器扩展、不需要 API
Key,编辑过程也不联网。
.html / .htm 文件,文档以页面形式渲染。Ctrl/Cmd+S。只有这一步会写回文件,
没有自动保存。回退方式:在侧栏设置的文件查看器列表里关掉“HTML 可视化编辑”,或卸载本插件, 即可回到内置 HTML 查看器,不影响其他插件。
对带显式 <body> 的完整 HTML,只替换 body 内部:原始 doctype、<head>
(含 CSS、link、script)、body 属性以及 </body> 之后的内容都逐字节保留。body 里的
script 标签会保留,但在编辑器中不执行。
sandbox="allow-scripts" 且不包含 allow-same-origin 的 iframe 中,
文档因此是不透明来源(opaque origin)。MessageChannel 端口通信,并校验窗口来源、不透明来源与每次
加载随机生成的 token。localStorage、不上传、也不发给任何 AI 服务。未保存草稿只存在
于当前会话内存中(最多五份)。dsh-better-sidebar 时本插件保持静默,不会弄坏宿主。npm install
node scripts/build.mjs
npm test
真实浏览器验收在 test/browser/:
node scripts/build-browser.mjs
node test/browser/server.mjs <工作区根目录> 8977
# 打开 http://127.0.0.1:8977/
它在真实 Chromium 里跑完整握手:0.1.1 在 50 ms 内进入就绪态,0.1.0 全部用例超时 ——这正是 0.1.1 修复的回归。
MIT,见 LICENSE。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。