DeepSeek Harness 插件

juliankang4/dsh-ui-scale

Star 数 ★ 1 下载量(近 30 天) 1,283 分类 UI 增强 收录于 2026-10-17 npm dsh-ui-scale

将 DeepSeek Harness 整个界面(包括菜单和弹窗)缩放到 50% 至 200%,在「设置 - 通用设置」中用滑块、百分比输入或预设调整。dsh web 与桌面应用均可使用,桌面应用本身没有缩放功能。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-ui-scale

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:juliankang4/dsh-ui-scale

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

Make the DeepSeek Harness interface larger or smaller, from 50% to 200%. Works in the browser (dsh web) and in the Desktop app.

Install

dsh plugin --profile web add dsh-ui-scale

In the Desktop app, open Plugins, choose Add plugin, enter dsh-ui-scale and install it.

Use

Open Settings > General > Interface scale. There are three ways to set the scale:

  • Drag the slider. It moves in 5% steps and applies the scale when you release it.
  • Type a percent in the field and press Enter or click elsewhere. The value is rounded to a whole percent, and a value below 50 or above 200 is set to the nearest limit.
  • Click a preset: 100, 110, 125, 150, 175 or 200%.

The scale is saved in the profile configuration. It survives restarts and is applied before the main window appears. Each profile (web, desktop) keeps its own value, and every browser signed in to the same profile shares it. In dsh 0.2.0 a page opened from another computer can change the scale only for itself until it reloads, because that version does not save settings from such pages.

What scales

Everything in the window: sidebars, conversation, composer, pages, Settings and other dialogs, and the menus, tooltips and pop-ups attached to them. The layout behaves as it would under browser zoom: at a high scale in a small window the left sidebar collapses, panels keep their share of the window, and dragging a divider follows the pointer.

The Desktop app's native menus and window controls keep their normal size.

Desktop window size

The Desktop app opens its window at the same default size on every start. With this plugin enabled it opens at the size and position you left it in. The window is not resized past the screen, and a position on another display is not restored, so the window opens on the main display at the saved size. Full screen is not saved.

Limits

The plugin applies CSS zoom and converts what the page measures to the zoomed scale: element positions and sizes, the window and page viewport size, pointer positions, SVG screen matrices, wheel deltas, media queries (widths and resolutions) in style sheets and matchMedia, and the viewport units in style sheets and inline styles. Some things fall outside that conversion:

  • A viewport size (vw, vh) in a style rule added from script with insertRule, in a constructed style sheet added with adoptedStyleSheets.push instead of assignment, inside a shadow root, or on a MathML element is not converted. Such an element can come out larger than the window.
  • IntersectionObserver rectangles and touch coordinates still use the real window size.
  • A size measured in the same script step that sets an inline viewport size or adds a style element still sees the unconverted value; the next step sees the converted one.
  • Every script on the page sees the converted values, including other plugins. The one exception is the Desktop account Usage and Top up area, whose position and size read in window pixels so the app can place those pages.
  • A PDF that is already open keeps its sharpness from before a scale change until it is reloaded, opened again or zoomed in the preview.

In a browser you can also use the browser's own zoom; the two multiply.

Configuration

Field Default Description
scale 100 Interface scale in percent, a whole number from 50 to 200.

The settings row writes this field. You can also set it in the profile's cordis.patch.yml:

- id: ui-scale
  name: dsh-ui-scale
  config:
    scale: 125

Development

Use Node.js 24. Install dependencies with npm ci. Run npm run check for formatting, lint, JavaScript syntax and strict TypeScript checks. Run npm test to build and test the shipped bundle.

Type suppressions must use @ts-expect-error: <reason>. Inline lint suppressions must name one rule: biome-ignore lint/<group>/<rule>: <reason>. Blanket and file-wide lint suppressions are rejected. Non-null assertions remain allowed where TypeScript cannot follow an existing guard. The npm-generated lockfile is not reformatted.

Pull requests and pushes to main run the same check and test commands. The CI passed summary succeeds only when both jobs succeed; failed, cancelled and skipped jobs fail the summary.

Tested with dsh 0.2.1-rc.2 (web in Chrome and the macOS Desktop app) and dsh 0.2.0-rc.2 (web in Chrome).

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。