dsh-ctrl-wheel-zoom: Provides Ctrl+wheel page zoom for Harness Web UI

Introduction

When working with agents or watching the Web interface for long periods in DeepSeek Harness (DSH), font size and layout density often depend on browser default zoom. System-level scaling affects other tabs; if there is no unified page zoom entry within the application, users have to rely on browser menus or shortcuts, which are not integrated with the Harness settings page. dsh-ctrl-wheel-zoom is a client-side plugin for the Harness Web GUI: it allows adjusting full-page zoom using the familiar Ctrl (⌘ on macOS) + scroll wheel or keyboard plus/minus keys, provides a zoom chip in the bottom right corner, and adds a “Page zoom” row in Settings → General. The zoom level is written to the browser’s localStorage and persists after refresh; when the plugin is disabled or uninstalled, it removes listeners, styles, and the applied zoom.

What is this

  • Name: dsh-ctrl-wheel-zoom (Repository Inoue-Cyrene/dsh-ctrl-wheel-zoom)
  • Maintainer: Inoue-Cyrene
  • Category: Client-side (platform: "web", the client half is inactive without a browser environment)
  • Form: Standard DSH profile bundle, pure ESM, no build step, no runtime dependencies; version 1.0.1 in current materials, License MIT

The plugin uses CSS zoom on the document root element for page scaling, causing layout, text, and fixed layers to scale together. The behavior is close to the browser’s native page zoom while retaining the usability of in-app scroll containers.

Core Functions

Action Effect
Ctrl / ⌘ + Scroll Wheel Zooms the page anchored near the pointer, range 50%–200%, step 10%
Ctrl / ⌘ + + / - Same zoom behavior as the scroll wheel
Ctrl / ⌘ + 0 Resets to 100%
Bottom-right Zoom Chip Displayed when zoom is not 100%; click the percentage to reset, click Fit to width to fit the window width
Settings → General Page zoom row, using the host stepper mode with a reset button

Other behaviors (from source material):

  • Zoom level is saved in browser localStorage.
  • When the plugin is disabled or uninstalled, it removes all listeners, stylesheets, and the applied zoom.
  • If other components have called preventDefault() for the same gesture (e.g., embedded code editors or maps with built-in Ctrl+wheel zoom), this plugin will not hijack the gesture.

The apply() function in the host-side index.js is empty, mainly serving for bundle installation and switching; gestures, state, the chip, and the settings row are registered in client.js.

Installation and Enablement

You can install via the Harness agent or call the plugin manager manually. The installation target can be an absolute path, a .tgz archive, or a published package name (see npm method below):

plugin_manager  action: install_bundle
                target: <absolute path to this package / a .tgz / a published name>

install_bundle links the package into the current profile ($DSH_PROFILE_DIR), writes to the profile’s bundle list, and hot-applies it via Harness. If the page was previously open, refresh once to load the browser-side logic.

For manual installation: add the package to dependencies and dsh.profile.bundles in $DSH_PROFILE_DIR/package.json, then restart Harness.

Install by Name (when the package is published to npm, the package name is dsh-ctrl-wheel-zoom):

plugin_manager  action: install_bundle
                target: dsh-ctrl-wheel-zoom

Uninstall:

plugin_manager  action: remove_bundle
                target: dsh-ctrl-wheel-zoom

Environment Requirements (README Requirements):

  • Requires Harness Web GUI.
  • The package itself has no dependencies, no build artifacts, and no install scripts; react, @deepseek-ai/dsh-client-store, etc., are provided by the shell’s built-in module table.
  • engines.node in package.json is >=22 (primarily constrains the package metadata environment; the client half runs in the browser).

Typical Usage

  1. After installing and enabling the bundle, hold Ctrl (⌘ on macOS) in the Web interface and scroll the mouse wheel to observe the page zooming in or out near the pointer.
  2. For fine-tuning, use Ctrl/⌘ + + or -, or Ctrl/⌘ + 0 to return to 100%.
  3. After zoom deviates from 100%, look at the bottom-right chip: click the percentage to reset, or click Fit to width to adapt to the window width.
  4. Open Settings → General, and use the Page zoom row’s stepper and reset button to stay consistent with the gestures (the chip, settings row, and wheel listener share the same store instance).

When distributing to others, the README lists three methods: install via path using a local pnpm pack resulting in dsh-ctrl-wheel-zoom-1.0.0.tgz; install via a zip of the unbuilt directory or repo path; or install via the package name dsh-ctrl-wheel-zoom after publishing to npm. DSH runtime includes pnpm, so there is no need to globally install pnpm beforehand to package a tarball.

Use Cases and Notes

Who it is for

  • Users who frequently read long conversations, configs, or dense panels in the Harness Web UI and want to use the desktop browser habit of Ctrl+wheel for full-page zoom.
  • Scenarios requiring zoom state to be remembered beyond a single browser session (localStorage).

Please be aware before use

  • The plugin runs with the permissions of the current DSH process and the profile bundles you installed; before installation, please read the GitHub Repository source code and the MIT license to ensure compliance with your security and compliance requirements.
  • The community directory SkillHub Plugin Page is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer; installation commands should follow the plugin_manager in the README. Do not construct CLI commands based on repo names that do not appear in the documentation.
  • Only effective in the Web client; client logic does not run without a browser.

Conclusion

dsh-ctrl-wheel-zoom packages full-page zoom, visual feedback, and a General settings row into a build-free DSH bundle, while avoiding gesture conflicts with embedded components that already handle Ctrl+wheel. For further implementation details (cordis.patch.yml, client.js capture phase listeners, etc.), please refer directly to the repository README.

  • Directory Page: https://www.skillhub.cn/plugins/Inoue-Cyrene/dsh-ctrl-wheel-zoom
  • GitHub: https://github.com/Inoue-Cyrene/dsh-ctrl-wheel-zoom
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye