lsh2002/dsh-custom-fonts
Customize the Chinese and English fonts, the code font, and the global font size of the DeepSeek Harness Web UI — right from a settings page, with a live preview.
catalog descriptioncatalog 简介 / catalog description:deepseek-harness的修改字体插件
Project Overview项目介绍
dsh-custom-fonts is a client-only customization plugin for the DeepSeek Harness Web UI that adds a dedicated "Fonts (字体)" page under the Settings menu once installed. The page exposes three independent font selectors: an English UI font for Latin characters (with built-in suggestions such as Segoe UI, Arial, Georgia, and Consolas), a Chinese UI font for Han characters (covering Microsoft YaHei, SimSun, SimHei, KaiTi, Source Han Sans, and PingFang), and a separate monospace code font that is scoped to pre, code, kbd, and samp elements (suggestions include Consolas, JetBrains Mono, Fira Code, Cascadia Code, and Sarasa Mono SC). A -4 to +8 pixel global font-size offset slider rounds out the controls, and every change renders live on a mixed Chinese/English sample plus a code-font sample inside the settings panel. Inputs accept comma-separated font lists as well as free-form names.
The plugin ships with no host half and no background process: it injects a single global stylesheet that defines two CSS custom properties for the English and Chinese families, then applies a broad font-family rule with an !important fallback chain so Latin glyphs hit the English face while Han glyphs silently fall back to the Chinese face. No language detection or DOM mutation is involved. The code-font declaration is written after the general rule, so it wins inside code regions only, and the font-size offset uses calc(1em ± Npx) relative to each element's own size, which keeps nesting levels from cascading exponentially; setting the slider to zero restores the default. A Reset button clears every control and removes the injected stylesheet, and there is also a Chinese-language README.zh-CN.md for users who prefer 中文说明.
Distribution is through the in-app Plugin Market under Settings → Plugin Market once the entry is published, or via the official CLI: dsh plugin --profile web add dsh-custom-fonts for the published version, and dsh plugin --profile web add github:lsh2002/dsh-custom-fonts for direct installation from the repository. After install the user only needs to refresh the page; no service restart is required, and uninstall from Settings → Plugins → Plugin configuration (or the matching CLI remove command) followed by a refresh reverts the UI automatically. The repository is MIT-licensed, has no runtime dependencies beyond the DSH Web profile itself, and currently lists only the dsh-plugin topic plus a bundle-manifest metadata file, with two stars at time of writing.
dsh-custom-fonts 是面向 DeepSeek Harness Web 端的纯客户端字体定制插件,安装后会在「设置」中新增一个「Fonts(字体)」页面。它支持分别配置英文 UI 字体(如 Segoe UI、Georgia)、中文 UI 字体(如微软雅黑、思源黑体、苹方)以及独立的等宽代码字体(如 JetBrains Mono、Cascadia Code),并提供 -4 到 +8 像素的全局字号偏移滑块。字体输入支持英文逗号分隔的字体列表和任意自由书写形式,所有改动在设置页内实时预览,刷新页面即生效,无需重启。
插件的核心实现是向页面注入一张全局样式表,把英文字体与中文字体通过 font-family 回退链拆分:拉丁字符优先命中英文字体,汉字因无字形自动回退到中文字体,无需任何语言检测或 DOM 操作。等宽代码规则随后覆盖 pre/code/kbd/samp 区域;字号偏移通过 calc(1em ± Npx) 相对于每个元素自身尺寸偏移,因此多层嵌套也不会产生指数级放大。设置页底部提供「Reset」按钮,可一键清空控件并移除所有注入样式。
安装方式有两种:一是等待条目上线后在「设置 → 插件市场」中获取,二是通过命令行执行 dsh plugin --profile web add dsh-custom-fonts,或直接从源码仓库 dsh plugin --profile web add github:lsh2002/dsh-custom-fonts 安装。卸载在「设置 → 插件 → 插件配置」中移除后刷新页面,样式会自动恢复。仓库使用 MIT 协议发布,无任何外部依赖,也不涉及服务端组件。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-custom-fonts(lsh2002/dsh-custom-fonts)
仓库:https://github.com/lsh2002/dsh-custom-fonts
本站详情页:https://www.yhbd.top/plugins/lsh2002-dsh-custom-fonts/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-24 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-custom-fonts
把 lsh2002/dsh-custom-fonts 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-custom-fonts
Customize the Chinese and English fonts, the code font, and the global font size of the DeepSeek Harness Web UI — right from a settings page, with a live preview.
What it does
A pure client-side plugin (no host half, no restart needed). Once installed it adds a Fonts (字体) page under Settings:
- UI font · English — used for Latin characters. (Segoe UI, Arial, Georgia, Consolas…)
- UI font · Chinese — used for Han characters. (微软雅黑 / 宋体 / 黑体 / 楷体 / 思源黑体 / 苹方…)
- Code font — a separate mono face for code blocks and inline code (
pre/code/kbd/samp). (Consolas, JetBrains Mono, Fira Code, Cascadia Code, Sarasa Mono SC…) - Font-size offset — a -4..+8 px global slider; kernel text stays sharp, no layout blow-up (see below).
- Live preview — mixed Chinese/English UI sample plus a code-font sample render as you type (comma-separated font lists and free-form names are both supported).
- Reset — clears every control and removes all injected styles.
How it works
The plugin injects one global stylesheet:
:root { --dsh-custom-fonts-en: 'English'; --dsh-custom-fonts-zh: 'Chinese'; }
body, body * { font-family: 'English font', 'Chinese font' !important; }
pre, code, kbd, samp { font-family: 'Code font' !important; }
body, body * { font-size: calc(1em + 2px) !important; } /* when offset ≠ 0 */
- The font-family fallback chain is the standard way to split fonts by script: Latin characters match the English font first, and Han characters — which the English font has no glyphs for — fall back to the Chinese font. No language detection, no DOM surgery.
- The code-font rule comes later and wins inside code regions only.
- The size offset applies
calc(1em ± Npx)relative to each element's own size, so every nesting level shifts by exactly N — no exponential cascade. Clearing it (0) restores the default.
Changes apply immediately and globally (message body, sidebar, inputs, everything).
Install
From the plugin market (Settings → Plugin Market) once the entry is published, or:
dsh plugin --profile web add dsh-custom-fonts
or directly from the repository:
dsh plugin --profile web add github:lsh2002/dsh-custom-fonts
Client-only plugin: after a page refresh it is live — no restart required.
Uninstall
Remove it from Settings → Plugins → Plugin configuration (or dsh plugin --profile web remove dsh-custom-fonts), refresh the page; your fonts are reverted automatically.
License
MIT
Small-tailqwq/dsh-deep-whale
d-dev0101/open-sea-skin
kingOfSoySauce/dsh-liang-skin
RevolutionLA/dsh-dream-skin
Fishquito7/dsh-skill-mcp-panel
01Virex/dsh-status-rotator
ymh0000123/dsh-theme-endfield
SLin-code/dsh-custom-skin