dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
简体中文 · English
A client-side Cordis plugin that gives every DeepSeek Harness Web GUI modal window-like controls without changing the Harness source code.
Escape continue to work.The plugin discovers dialogs through the stable accessibility contract
[role="dialog"][aria-modal="true"]; it does not depend on CSS-module hashes.
This covers Settings, workspace creation, model and agent-preset editors, risk
confirmations, and other Harness dialogs that use the same contract.
| Control | Result |
|---|---|
| Top drag strip | Move the dialog |
| Four edges | Change width or height |
| Four corners | Change width and height together |
| Pushpin | Toggle outside-click dismissal |
⛶ / ❐ |
Maximize / restore |
◐ / ◌ |
Remove / restore the visual mask and blur |
Resize hit areas extend slightly across the dialog boundary for easier pointer targeting. While maximized, drag and resize are disabled until the dialog is restored.
Each dialog is identified by the first available value below:
data-dshme-state-key, when a dialog provides an explicit key;aria-label;aria-labelledby;State is stored in localStorage under the dshme.dialog-state.v1: prefix.
When restoring geometry on a different display or viewport size, the plugin
clamps the rectangle so that at least part of the dialog remains reachable.
Disabling or unloading the plugin removes injected controls, classes, event listeners, and inline geometry from mounted dialogs. Saved state remains available for the next time the enhancer is enabled.
Install as a dual-plane bundle directly from GitHub:
dsh plugin --profile web add github:lisniuse/dsh-modal-enhancer
The package declares dsh.bundle.patch (mounts cordis.patch.yml) and
dsh.client (platform web), so dsh plugin add reconciles it into the
profile's layer stack automatically. It is pure JavaScript with no build step —
the host half (index.js, a no-op) and the browser half (client.js) load
directly. Restart dsh web after installation.
The complete single-file form is dist/plugin.js. Pass its
entire contents as the code.client body of a dynamic cordis_define plugin.
It is a plain JavaScript function body beginning with return { ... }.
No Harness source modification, pnpm install, Web app rebuild, or server
restart is required. See docs/install.md for the detailed
dynamic-plugin and agent-preset workflows.
After activation, approve the Client Package request if the Harness UI asks for permission, then open any modal to verify that the toolbar and resize cursors appear.
The plugin:
.dshme-* styles through the Client styles builtin;document.body and enhances dialogs as React mounts them;settings.general.item slot;The transparent mask remains interactive when its visual backdrop is removed, so modal behavior and accidental-click protection are preserved.
index.js Dual-plane host half (no-op; mounts the bundle)
client.js Dual-plane browser half (window.__ModuleLoader__)
cordis.patch.yml Bundle patch layer (inserts the plugin row)
dist/plugin.js Generated, single-file (dynamic) plugin body
src/plugin-body.js Canonical self-contained source
src/enhancer.js Readable modular runtime reference
src/settings.js Readable settings-row reference
src/styles.css Readable stylesheet reference
scripts/build.js Generates dist/plugin.js
scripts/layout-check.test.js Layout, resize, pin, and persistence regression
scripts/syntax-check.js JavaScript syntax smoke gate
docs/install.md Detailed installation guide
README.zh.md Simplified Chinese documentation
Requires Node.js 18 or newer.
npm run build # regenerate dist/plugin.js
npm test # run layout and interaction regressions
npm run test:syntax # parse every source and generated JS file
Before distributing a change, run all three commands and ensure
dist/plugin.js is committed with its source.
platform: 'web').ctx, React, and styles, plus standard browser APIs.settings.general.item (scope: root, kind: list).localStorage; no state is sent to a server.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。