dsh-reduce-effects: Disable DSH Web Front-End Effects by Category

Preface

In the DSH Web interface, animations, frosted glass, shadows, and gradients are scattered across various CSS and JS files. The system-level “Reduce Motion” setting only provides a single global path, unable to satisfy fine-grained needs such as keeping progress bar animations while disabling sidebar title hover scrolling. When the Web client is left running for extended periods, these effects also continuously consume browser compositing and rendering resources.

Below is an introduction to the community plugin dsh-reduce-effects (maintainer azazo1): it provides a configuration card on the plugin page, allowing effects to be toggled by category. Defaults match the native DSH behavior; any effect you disable is turned off individually, and there is a master switch to disable everything at once.

What is this

dsh-reduce-effects is a client-side (Web) plugin for DeepSeek Harness (DSH): it adds a plugin page configuration card to the DSH Web frontend, allowing animations, frosted glass, shadows, gradients, and other effects to be disabled, reducing browser rendering overhead.

Frontend effects in DSH fall into roughly three categories: CSS animations and transitions, frosted glass on menus and floating layers, and DSH’s built-in JS animations (smooth pagination, scroll-following, etc.; which only take an instant path when the system “Reduce Motion” is enabled). This plugin splits these into multiple categories, each with its own switch; the web and desktop profiles run the same Web application, so the same package works for both.

The plugin runs with the permissions of the current DSH process; before installing, it is recommended to review the source code and the MIT license on GitHub. The community catalog SkillHub plugin page has no official affiliation with DeepSeek or Hunyuan.

Core Features

Configuration Card and Master Switch

Open the Plugins > dsh-reduce-effects card. Inside the card is a master switch and a set of category switches; drafts only stay within the card until you click Save, which writes to the current profile’s patch layer and takes effect immediately. All switches default to on, so the interface is identical to when the plugin is not installed.

The master switch only determines whether each category takes effect, without rewriting the individual category values: when the master switch is off, category switches gray out while retaining their original values; after turning the master switch back on, categories immediately return to their previous state.

Category Switches (Effects Lost When Disabled)

Switch When Disabled Trade-off
All Effects Disables every category below at once Individual switches retain their values but become unclickable until the master switch is turned back on
Animations & Transitions Decorative animations stop, transitions compress to 1 ms Entrance animations snap directly to their end state
Loading & Progress Animations Progress bar and loading indicator spinning/pulsing The interface appears stuck, with no visible indication of ongoing activity
Text Shimmer Text sweep highlight on running nodes, plus full-line sweep on thinking lines and skill lines Running nodes show only static text; disabling “Gradient Backgrounds” or “Animations & Transitions” also removes these two sweeps
Frosted Glass & Background Blur backdrop-filter blur on menus and floating layers Content behind semi-transparent panels shows directly
Smooth Scrolling Easing for scrolling and jumps Navigation in long lists becomes more abrupt
Title Hover Scrolling Frame-by-frame horizontal drag on sidebar session titles when hovering Truncated titles can only be viewed in full via hover cards or renaming
Shadows & Superellipse Radius Panel shadows, text shadows, superellipse radius The 0.5px panel outline drawn by shadows becomes fainter at the edges
Gradient Backgrounds Gradient background patterns background-image decorations shared with images also disappear; gradient text reverts to the current text color; the session bottom fade-out panel reverts to the plain theme background color
JS Animations Instant path for DSH’s built-in JS animations Affects all code reading prefers-reduced-motion (including other plugins)

If you want to keep the progress bar animation individually, simply do not disable “Loading & Progress Animations”.

Implementation Notes (for Understanding Behavior)

  • Style overrides: Component class names are hash-generated at build time, so override rules use generic selectors with !important, injected via a <style> tag with data-plugin-css, and removed on uninstall.
  • Transitions: Duration is compressed to 1 ms rather than removed, so transitionend still fires, and logic depending on it to finalize remains unaffected.
  • Animations: Some scenarios use document.getAnimations() and animationstart to filter by keyframe name; loading-related and decorative animations can be controlled separately.
  • JS animations: When disabled, window.matchMedia is overridden so prefers-reduced-motion queries return reduce; restored when enabled or uninstalled.

The configuration is a volatile plugin Config with entry id dsh-reduce-effects, stored in the profile’s patch layer.

Installation and Activation

The engine requires @deepseek-ai/dsh-* no lower than 0.2.0-rc.1 and still within 0.2.x (peerDependencies: >=0.2.0-rc.1 <0.3.0). Earlier engine lines cannot install the current version.

Web Client (web profile)

Choose either installation method:

dsh plugin --profile web add azazo1/dsh-reduce-effects

npm package name:

dsh plugin --profile web add dsh-reduce-effects

Pinned version (README example):

dsh plugin --profile web add azazo1/dsh-reduce-effects#v0.1.1

Prebuilt package from GitHub Release (skips allowBuilds during installation):

dsh plugin --profile web add https://github.com/azazo1/dsh-reduce-effects/releases/latest/download/dsh-reduce-effects.tgz

Local directory:

dsh plugin --profile web add ./dsh-reduce-effects

After installation, restart dsh web and refresh the page once in the browser.

Desktop Client (desktop profile)

The Electron app exclusively manages the desktop profile; dsh plugin will reject --profile desktop. In the app’s plugin manager installation entry, fill in the corresponding package name or tarball URL above; after installation, restart the app and refresh the window.

Typical Usage

  1. Install using the commands in the previous section, then restart the Web or desktop client.
  2. Open Plugins, and enter the dsh-reduce-effects configuration card.
  3. Disable category switches as needed, or first turn off “All Effects” and then fine-tune item by item (when the master switch is off, individual switches are unclickable; after turning the master switch on, individual switches restore their pre-disable values).
  4. Click Save; the configuration is written to the current profile and takes effect immediately.

If “JS Animations” is disabled, the already-rendered interface may require one more refresh to fully align.

Use Cases and Notes

Who It’s For

  • Developers who want to reduce DSH Web compositing overhead on low-end machines or remote desktops.
  • Users who need finer-grained control than the system “Reduce Motion” (e.g., keeping loading animations while disabling frosted glass).

Known Limitations

  • It is additive to the system “Reduce Motion”; the plugin does not modify system settings.
  • Only covers the Web client; desktop window materials (macOS vibrancy, Windows acrylic) are handled by the system and Electron.
  • Disabling “JS Animations” affects all code reading prefers-reduced-motion, including other plugins.
  • DSH frontend styles change with versions; newly appearing effect categories require additional rules in this plugin.

The plugin’s current npm version is 0.2.0 (per the repository’s package.json).

Links

羽毛球分组比赛记分
小程序二维码

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

Xiaoye