Skip to main content
W

dsh-browser-element-picker

weedlu/dsh-browser-element-picker

Adds a crosshair to the Desktop built-in Browser toolbar that inserts the selected element's page, CSS selector, attributes, and HTML into the composer with a ready-to-edit instruction.

Install

dsh plugin --profile web add github:weedlu/dsh-browser-element-picker

README

dsh-browser-element-picker

A DSH Desktop plugin: a crosshair in the built-in Browser toolbar, immediately right of Open in system browser. Pick an element in the page and the plugin inserts a ready-to-edit instruction line plus the element's page, CSS selector, attributes, and HTML into the composer, so the next agent message carries the exact element context.

Hover to highlight, click to pick, Esc or a second crosshair click to cancel. The toolbar has no public extension slot, so the control is injected next to the shipped external-open action; it follows every Browser tab.

Install this directory through Plugins → Add plugin, or install it with the plugin_manager tool (install_bundle, target = this directory).

Share and install

The package has no dependencies, no build step, and no install scripts.

  • Folder: zip this directory, have the recipient extract it, then Plugins → Add plugin and paste the absolute path to the extracted folder.
  • Tarball: run npm pack (or pnpm pack) and share the .tgz; the recipient pastes the absolute path to the .tgz (or a URL to it) into Plugins → Add plugin.
  • npm: the package is published as dsh-browser-element-picker; recipients install that name through Plugins → Add plugin.
  • Git: push the directory to a repository and have the recipient paste the repository URL.

Requires DSH Desktop 0.2.x; the plugin injects next to the shipped Browser toolbar's Open in system browser action. After installation, refresh the GUI if the crosshair does not appear immediately.

See docs/DETAIL.md for inserted fields and limits.

Related plugins