kxSenlin/dsh-whale-font 预览 preview

kxSenlin/dsh-whale-font

将 DeepSeek Harness 对话中的主语人称(我/你/I/me)渲染为 DeepSeek 蓝鲸图标(DSH 插件)

Project Overview项目介绍

This is a native interface plugin built exclusively for DeepSeek Harness (DSH). It replaces specific first and second person pronouns in DSH chat messages with DeepSeek’s official blue whale icon to clearly mark the speaker. The plugin only modifies the display layer, it does not change the original message data, does not affect the model’s ability to read or remember content, and never touches the user’s input box. It replaces pronouns based on the speaker: the "I" in assistant messages and "you" in user messages are both replaced with the whale icon.

The plugin uses two separate layers to handle replacement, both of which can be toggled on or off independently. The font layer handles Chinese characters "我" (I) and "你" (you) using a custom colored font, which renders the whale directly without modifying the DOM, causes no flickering, and retains the original characters when you copy the message. The DOM layer handles English words I/me and custom replacement words, and can accurately match whole words to avoid incorrect replacements like changing the I in "Idea" to an icon.

To install the plugin, you first need to have DeepSeek Harness installed and the dsh command available on your system. You can install it directly via the official DSH plugin command that pulls from GitHub, or clone the repository locally and install it offline. After installation, you just need to restart the DSH service and force refresh your browser to start using it. All settings are saved to your browser’s local storage, so they persist across page refreshes. The plugin is open source under the MIT license, so you can use or modify it freely for any purpose.

这是一个专为 DeepSeek Harness (DSH) 开发的原生界面插件,核心功能是将对话中特定位置的主语人称替换为 DeepSeek 官方蓝色鲸鱼图标,用以标识说话者身份。本插件仅在显示层做替换,不修改原始消息数据,不影响模型读取与记忆,也不会作用于用户输入框。它会根据说话者位置做区分替换:助手消息中的「我」、用户消息中的「你」都会被替换为鲸鱼图标。

本插件通过字体层和DOM层两层机制实现替换,字体层处理中文「我」「你」,不修改DOM、无闪烁、复制内容时会保留原字符;DOM层处理英文I/me和自定义替换词,能精准匹配独立单词,避免误替换。引号内、括号内、代码块中的内容一律不替换,即使DSH改版调整了DOM结构,也可以通过设置修改选择器适配,无需修改代码。

安装需要先部署好DSH,可通过官方命令行直接安装,也可以下载到本地后离线安装,安装完成后重启DSH服务并强制刷新浏览器即可使用。所有设置保存在浏览器本地,刷新后依然生效,本插件使用MIT许可开源,可免费使用和修改,调整图标参数需要额外安装Python和fonttools。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 github:kxSenlin/dsh-whale-font

把 kxSenlin/dsh-whale-font 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-whale-font

DeepSeek whale

License: MIT

将 DeepSeek Harness(DSH)对话中的主语人称「我 / 你 / I / me」显示为 DeepSeek 官方蓝色鲸鱼图标。

本插件仅在显示层替换,不修改消息数据、不影响模型读取与记忆,也不作用于输入框。替换后的图标用于标示每句话的主语(说话者)。

预览

浅色模式:

浅色模式

深色模式(内部细节固定为白色):

深色模式

功能

位置 效果
助手消息中的「我」 → 鲸鱼
用户消息中的「你」 → 鲸鱼
助手消息中的英文 I、me(独立单词,默认助手词) → 鲸鱼
助手消息替换词(设置中配置) → 鲸鱼
用户消息替换词(设置中配置) → 鲸鱼
引号内的任何内容(「我/你」、I/me、自定义词) 一律保持原样
代码块 <code> / <pre> 内的任何内容 一律不替换
输入框(输入中) 不替换

复制消息时,「我 / 你 / I / me」及自定义替换词均还原为原字符(不产生空字符或图片)。鲸鱼图形主体为蓝色,内部细节在深浅色模式下均为白色。

效果示例

在对话里发一句自然的话(假设设置里已把 Deepseek / we / us 加入助手替换词):引号外人称与替换词变成 DeepSeek 蓝鲸,引号、括号与代码块内保持原样。

鲸鱼对话效果

落到不同位置的规则:

  • 引号外:I / me / Deepseek / we / us → 鲸鱼图标;我 → 鲸鱼字形(字体层)
  • 引号内(“”、「」、『』)、括号内(() 【】 [] {})、代码块(` 行内 / ``` 块):所有内容一律不动
  • 你 只在用户消息里变鲸鱼,助手消息里保持原样

实现原理

插件由两层机制组成,两层均可独立开关:

层 处理对象 机制 说明
字体层(固定字体) 中文「我」「你」 自定义彩色字体(COLR/CFF) 字符渲染时即显示为鲸鱼,不修改 DOM、无闪烁、实时生效,复制保留原字符;主体蓝色、内部细节白色
DOM 层(动态替换) 英文 I/me、自定义替换词、引号内还原 监听页面变更并插入 SVG / 包裹基础字体 用于字体无法实现的整词判断与上下文判断

英文 I/me 及自定义英文词不使用字体的原因:字体为逐字符映射,会误替换 It/Idea 中的 I 以及 message/time 中的 me。DOM 层通过单词边界精确匹配独立的词;自定义中文词按子串匹配。

引号、括号与代码块的硬性边界

  • 引号内一律不替换:引号内的「我/你」不会被字体层变成鲸鱼,I/me 与自定义替换词也不插入图标,内容保持原样。引号配对在整条消息行范围内按文档顺序计算——markdown 把一句话拆成多个文本节点时,跨节点的引号(如 他说“我 + 是”我)也能正确配对。
  • 括号内同样不替换(设置项「括号内同样不替换」,默认开):() () 【】 [] {} 内的内容与引号相同处理,括号支持嵌套;括号内常是标识符/参数/引用,不应被替换。关闭后括号内恢复替换。
  • 代码块内一律不替换:<code> / <pre> 内不插入图标,字体层回退到等宽字体,「我/你」按普通文字显示。

目标容器(DSH web,兼容新旧两版)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev DSH-RAG 下一个 Next dsh-relay →