ook826092-cloud/dsh-mobile-css
Project Overview项目介绍
This is a native DeepSeek Harness (DSH) plugin that adapts the DSH web UI for mobile devices. It works by injecting pure CSS plus two lightweight helper scripts, and integrates via DSH’s official WebServer.tapIndex() hook, so it does not alter DSH source code or impact desktop usage at all. You can install it in one of three ways: run the one-click install command from GitHub, install from npm with the same command structure, or manually add it to your profile’s cordis patch file. After installation, you just need to restart the dsh web service and hard refresh your browser to see the changes.
The plugin includes a full set of mobile-specific UI optimizations: it adjusts font size hierarchy for better readability on small screens, changes the sidebar to a device-native drawer layout that closes when you tap the overlay, fixes common issues like misaligned cursors, accidental taps, and truncated content. It optimizes the composer input area, settings page, message bubbles, and markdown tables to fit mobile screens better. It only activates for touchscreen devices or viewports 1024px wide or smaller, so desktop users never notice any changes. It is ideal for users who frequently access DSH from their mobile phones.
The plugin uses adaptive sizing via media queries and relative units, so it works with any mobile device resolution or pixel density, no hardcoded device specs. It requires a modern Chromium-based browser that supports the CSS :has() selector, which means Chrome 105 or newer, a requirement met by nearly all modern Android and iOS mobile browsers. It is released under the open source MIT license, and does not make any network requests, access credentials, or interact with the file system, so it is completely safe to use. Uninstalling is simple: just remove the plugin entry from your profile patch and restart the dsh web service, with no residual files left behind.
dsh-mobile-css 是专为 DeepSeek Harness(DSH)打造的原生插件,作用是给 DSH 的网页端用户界面做移动端适配,让 DSH 在手机上拥有更贴合移动设备的使用体验。它采用纯 CSS 注入加两个轻量辅助脚本的实现方式,通过 DSH 官方的 WebServer.tapIndex() 钩子完成集成,不会对桌面端的使用体验造成任何影响,零依赖,无需修改 DSH 源码,随时可以卸载。
该插件针对移动端界面做了多方面优化,包括调整字体体系适配小屏,优化侧边栏交互改成符合移动端习惯的抽屉式设计,调整输入区、设置页、消息区的布局,解决误触、光标错位、内容溢出截断等常见移动端问题。用户只要安装插件后重启 DSH web 服务,硬刷新浏览器就能看到适配效果,非常适合经常在手机上使用 DSH 的用户。
该插件支持通过 DSH 包管理器从 GitHub 或 npm 一键安装,也支持手动配置安装,卸载只需要删除配置条目重启服务即可,不会留下残留。它采用 MIT 开源许可证,仅对触屏或宽度≤1024px 的视口生效,要求浏览器支持 Chrome 105 以上版本的 CSS 特性,DSH 大版本更新后可能需要调整少量选择器。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-mobile-css(ook826092-cloud/dsh-mobile-css)
仓库:https://github.com/ook826092-cloud/dsh-mobile-css
本站详情页:https://www.yhbd.top/plugins/ook826092-cloud-dsh-mobile-css/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-15 · 主语言 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-mobile-css
把 ook826092-cloud/dsh-mobile-css 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-mobile-css
DeepSeek Harness(DSH)Web UI 移动端适配插件 —— 让你的 DSH 在手机上真正好用起来!
纯 CSS 注入 + 两个轻量辅助脚本,零依赖、零源码修改、随时可卸载。 通过官方
WebServer.tapIndex()钩子注入,桌面端完全不受影响。
✨ 特色功能
📱 界面整体优化
- 紧凑字号体系:针对手机屏幕调整字体大小层级,信息密度更高、一屏装更多内容,同时保证可读性
- 移动端字体栈:优先使用手机系统的优质字体(小米 MiSans / 鸿蒙 HarmonyOS Sans / Roboto 等),观感更自然
- 安全触控目标:独立控件 ≥44px,不再误触;输入框防安卓聚焦自动缩放
🖥️ 输入区(Composer)
- 输入卡全宽贴边:充分利用屏幕宽度
- 光标对齐修复:透明输入层与镜像文字层字号严格一致,光标不再错位
- 模型名智能隐藏:只显示 v 形箭头,点击仍可切换模型,不再挤占权限开关
- 发送按钮贴右:按钮永远停在右下角
🗂️ 侧边栏抽屉式
- 展开时覆盖主界面(带遮罩 + 阴影),主界面不再被挤压变形
- 点击遮罩即可关闭,交互跟手机 App 一致
- 收起时保留小图标条(rail)
⚙️ 设置页两页式
- 手机标准交互:全屏菜单页 → 点击选项跳转全屏内容页 → ☰ 返回
- 标题与按钮同级布局、顶部留白紧凑
- 长标签自动换行、表单/表格/图片防溢出
💬 消息区
- 用户消息气泡占满整行,不再又高又窄
- 消息底部操作条(复制/点赞/分支/统计)换行完整显示,统计单行紧凑
- 工具调用摘要允许换行,不再被省略号截断
📊 统计行
- 只保留有用信息,固定两行(耗时+速度 / 缓存+Token),行数不随内容跳变
📋 Markdown 表格
- 长单元格内容(如工具名)自动换行,不再盖住相邻列
📦 安装教程
方式一:从 GitHub 一键安装(推荐)
dsh plugin --profile web add github:ook826092-cloud/dsh-mobile-css
方式二:从 npm 安装
dsh plugin --profile web add dsh-mobile-css
方式三:手动 patch(不经过包管理器)
将以下内容加入你的 profile patch(~/.dsh/profiles/web/cordis.patch.yml):
- insert:
- id: dsh-mobile-css
name: "dsh-mobile-css"
然后安装依赖并启动:
cd ~/.dsh/profiles/web
pnpm add dsh-mobile-css
dsh web
安装后
- 重启
dsh web - 浏览器硬刷新(清除缓存或隐私窗口)
- 打开 DSH Web UI,在手机上感受移动端适配效果
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
reactive-resume/reactive-resume
anywhere-labs/dsh-desktop
dataelement/dsh-desktop
ccch1mneyyy/dsh-TUI
DSH-EAC/DSH-Desktop-EAC
shaobeichen/dsh-pocket
xyTom/coding-tools-mcp