dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
English: A client plugin that restyles the whole DSH UI — UI/code fonts, display scale, line-height, font smoothing, code ligatures, and a font browser with CJK glyph marking (Settings → Fonts).
中文: 修改整个 DSH 界面文字显示效果的客户端插件(设置 → 字体 / Fonts)。
zoom,默认 100% = 无变化)font-variant-ligatures所有设置存浏览器 localStorage(dsh-ui-font:*),刷新保持。
lib/client.js — 浏览器端:设置分类注册 + 样式注入(静态规则一次注入,之后仅更新 CSS 变量,避免高频重建)lib/index.js — 宿主端空实现(纯客户端插件)cordis.patch.yml — bundle patch:把插件注册进 loader(insert),供 dsh-client-modules 发现 client bundlepackage.json — dsh.bundle.patch + dsh.client 声明exports.inject 只用 ["slots", "locale"]——不要声明 runtime(rc.6 已无该 cordis 服务,声明会导致 pending 卡界面)dsh-ui-font;槽位 settings.dshUiFont.item;localStorage 前缀 dsh-ui-font:setSans/setCode/... 直接作 props),不要用 actions.xxx 对象使用 DSH 自带插件命令,从 GitHub 直接安装:
dsh plugin add github:linshufan21/dsh-ui-font
然后编辑 profile 的 package.json(%USERPROFILE%\.dsh\profiles\web\package.json),在 dsh.profile.bundles 追加 "dsh-ui-font",重启 DSH(关窗口重开)→ 设置出现"字体"。
cd $env:USERPROFILE\.dsh\profiles\web
pnpm add "file:E:\deepseekwork1\dsh-ui-font"
# 然后编辑 package.json 的 dsh.profile.bundles 追加 "dsh-ui-font"
# 重启 DSH(关窗口重开)→ 设置出现"字体"
提示:Git 托管的插件若含构建脚本,pnpm 默认阻止
prepare——需要在 profile 的pnpm-workspace.yaml的allowBuilds里放行对应包(本插件无构建脚本,无需处理)。
改动 lib/client.js 后,运行同步脚本把文件复制到已安装副本并校验:
powershell -ExecutionPolicy Bypass -File E:\deepseekwork1\_工具脚本\sync-dsh-ui-font.ps1
然后 DSH 窗口 Ctrl+F5 强刷(bundle rev 动态计算,无需重启后端)。
zoom(显示比例)仅在非 100% 时应用,默认不注入,不影响默认状态_codeBlock 等),DSH 大版本升级后可能失效(正文仍生效); { } ( ) < >、限长 300)cd $env:USERPROFILE\.dsh\profiles\web
pnpm remove dsh-ui-font # 并手动从 package.json bundles 移除 CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。