dsh-insight
提供网页划词解读与浏览器联动功能 适合需要通过浏览器插件进行划词翻译、追问及页面抓取的日常用户。
同名包的其他仓库
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Suguyun/dsh-insight说明文档
阅读完整 README ↗外观可配置
侧栏背景色与字号(11–20px)可调,跟随浅色 / 深色主题。
配置
侧栏「设置」里可改:dsh 地址、浮标文字、触发与展示模式、浮窗位置、侧栏背景色与字号、解读口径。
设置存在 chrome.storage.local,键名如下(便于脚本化改写):
| 键 | 含义 |
|---|---|
dsh_url | dsh 地址 |
insight_mode | click / click-sidebar / auto / auto-sidebar |
insight_label | 浮标文字 |
insight_position | follow / fixed |
insight_preset | 当前选中的口径 id |
insight_system | 当前生效的口径全文 |
insight_overrides | 对内置口径的修改 |
insight_custom | 自定义口径列表 |
insight_thread | 追问线程 |
last_insight | 最近一次解读记录 |
panel_bg / panel_font_size | 侧栏外观 |
insight_autopush | 页面推送开关,默认 false |
例:
chrome.storage.local.set({ insight_mode: "auto-sidebar" });
想打开页面自动注入
需要两处一起开,只开一处会静默空转(生产端与消费端互不感知,不报错):
cordis.patch.yml里把dsh-insight-page-injector那两行取消注释;chrome.storage.local.set({ insight_autopush: true })。
本仓库的实现是有界的:单次最多 4000 字符、正文里出现注入标记(自身回声)就整条跳过、单会话累计 60000 字符封顶。