READMESource: main@c00e7008
dsh-deepseek-web-entry
DeepSeek Harness 左侧栏的 DeepSeek 网页快捷入口 — 一键在右侧内置浏览器打开/收起 chat.deepseek.com,也可以改用系统浏览器打开。
中文 | English
它做什么
在 Harness 左侧栏底部加一个「DeepSeek 网页版」入口:
| 操作 | 行为 |
|---|---|
| 点主按钮(🌐 DeepSeek 网页版) | 右侧内置浏览器展开;没有页签时新建并打开 chat.deepseek.com,已有则复用;再点一次收起右侧栏(页签保留) |
| 点旁边的小按钮(↗) | 用系统默认浏览器打开同一个地址:复用你浏览器里已登录的会话,免登录、无内嵌环境提示 |
它不做什么(作用范围)
- 不代理网页:没有本地转发、没有接口转换、不把网页包装成 API;
- 不注入脚本:不在 DeepSeek 页面里执行任何代码,不读取对话内容;
- 不自动登录:不碰账号、密码、验证码,不保存任何凭据;
- 不消耗 API 额度:打开的是网页会话,用的是你的网页账号;
- 与 Marisa 无关:不读写任何 Marisa 项目或文件,可独立安装、独立卸载。
重要限制(请先读)
- 内嵌浏览器可能被识别为“环境异常”:DeepSeek 页面在 Electron webview 里会提示「使用环境异常,建议使用官方产品」,登录可能受限,也存在账号风险。日常使用建议点「↗」用系统浏览器打开。
- 内嵌浏览器不能复用 Harness 的登录态:Harness 登录是 API 身份,网页版是另一套 Cookie;第一次需在内嵌浏览器里登录。
- Cookie 不跨应用重启保留(DSH 官方限制):重启 Harness 后内嵌浏览器需要重新登录;系统浏览器不受此影响。
- 不是官方产品:本插件只提供入口,与 DeepSeek 官方无关;使用网页版需遵守 DeepSeek 的服务条款。
安装
方式一:插件管理页安装(推荐)
在 Harness 的「插件」页选择「安装本地/从 URL」,填入本仓库地址,或直接指向本目录。
方式二:命令行(本机源码)
# 在 Harness 插件管理中安装本目录:
# 插件 → 安装 → 本地目录 → <本仓库路径>
插件由 Host 半(仅一个本机固定地址路由)与 Client 半(左侧栏入口)组成,纯 JavaScript、无构建步骤、零第三方依赖。
文件
| 文件 | 作用 |
|---|---|
index.js |
Host 半:GET /deepseek-web/open-external 用系统浏览器打开固定地址 |
client.js |
Client 半:左侧栏入口、内嵌浏览器展开/收起、系统浏览器打开按钮 |
cordis.patch.yml |
向 profile 插件名册插入一行 dsh-deepseek-web-entry |
selfcheck-client.mjs |
离线自检:模块 id、slot 注册、两次点击的切换与系统浏览器调用(10 项) |
自检
node selfcheck-client.mjs
安全说明
- 系统浏览器路由只接受写死的
https://chat.deepseek.com/,不接受参数,无法被用来打开任意地址; - 插件没有网络请求、没有文件读取、没有工具注册;Client 半只调用 Harness 自带的右侧栏浏览器服务。
License
English
A quick-entry button for DeepSeek web chat inside DeepSeek Harness.
- Left-sidebar footer button: toggles the built-in right-sidebar browser at
chat.deepseek.com(expand on first click, collapse on second; the tab is reused). - Secondary
↗button: opens the same URL in your system browser, reusing your existing web login. - Scope: entry point only. It does not proxy the page, inject scripts, read conversations, automate login, store credentials, or consume API quota. It has nothing to do with Marisa.
- Limitation: the embedded Electron webview may be flagged by DeepSeek as an abnormal environment; prefer the
↗system-browser button for daily use. Harness login cannot be reused for the web session, and embedded cookies do not survive an app restart.
Install from this repository as a Harness plugin bundle. Pure JavaScript, no build step, no third-party dependencies. MIT licensed.
No comments yet. Be the first to write one.