dsh-browser-element-picker
weedlu/dsh-browser-element-picker
在 Desktop 内置浏览器工具栏加一个十字准星,把点选元素的页面、CSS 选择器、属性和 HTML 填入输入框,并附上一行可直接修改的指令。
安装
dsh plugin --profile web add github:weedlu/dsh-browser-element-pickerREADME
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(orpnpm 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.