返回目录
其他 插件

dsh-draft-shield

johndfowler/dsh-draft-shield

该仓库暂未提供项目说明。

Stars
0
Forks
0
Issues
0
更新
2 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:johndfowler/dsh-draft-shield

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-draft-shield

DeepSeek Harness Web GUI plugin that stops browser page-translation from wiping composer drafts.

Problem

DSH uses a React-controlled textarea for its message composer. If the browser auto-translates the page (Chrome/Edge/Safari offer this when the GUI renders non-English UI), the translation pass rewrites DOM text nodes mid-typing — and React's next render loses control of the input, so text you just typed disappears from the message box.

This shows up as: type a few characters, the box silently empties. Intermittent, worse while idle, and only in a browser with translation enabled for the site (incognito/extension-free tabs are unaffected).

Fix

Marks the document untranslatable at load:

  • <html translate="no"> + notranslate class
  • <meta name="google" content="notranslate">

Chrome, Edge, and Safari respect these markers and stop offering/applying translation — so nothing rewrites the DOM, and drafts survive, on every profile and device.

Install

cd /Users/jdf/.dsh/profiles/web
pnpm add file:/path/to/dsh-draft-shield
# then append "dsh-draft-shield" to dsh.profile.bundles in package.json,
# and restart `dsh web`.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类其他
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。