Zum Hauptinhalt springen
Y

dsh-omni-find

yangdw2024/dsh-omni-find

Non-destructive Ctrl+F / Cmd+F Spotlight search bar for DSH conversations using the CSS Custom Highlight API: draggable bar with recent queries, case-sensitive, whole-word, and regex modes, conversation/page scope toggle, expandable match context list, live streaming sync, and right-edge minimap markers.

Installation

dsh plugin --profile web add github:yangdw2024/dsh-omni-find

README

dsh-omni-find

Omni-platform, non-destructive Ctrl+F (Cmd+F on macOS) Spotlight search for DeepSeek Harness (DSH) — plus a zero-dependency cross-platform userscript and Chrome/Edge MV3 browser extension for Codex Web, Antigravity, ChatGPT, Claude, DeepSeek Web, and more.

专为 DeepSeek Harness (DSH) 打造的全能无损会话内 Ctrl+F 检索插件,同时内置零依赖跨平台油猴脚本与 Chrome / Edge MV3 浏览器扩展,一套核心引擎通吃多个 AI 对话端。

Preview

Features / 核心特性

  • Centered Draggable Spotlight Bar / 居中可拖拽 Spotlight 搜索栏: Clean floating command-bar UX with recent query history (v1.1.0).
  • Non-destructive CSS Highlights / 无损高亮: Uses the browser-native CSS Custom Highlight API (CSS.highlights) — never injects <mark> elements into React DOM, keeping Markdown tables, code fences, and math intact.
  • Expandable Match Context List / 可展开上下文命中列表: Click the match counter (2 / 15 ▾) to view surrounding context snippets for every match and jump directly.
  • Search Modes / 搜索模式: Match Case (Aa / Alt+C), Whole Word (\b / Alt+W, CJK-safe), and Regular Expression (.* / Alt+R, with invalid-regex guard and zero-width loop protection).
  • Smart Scope Toggle / 智能作用域: Defaults to the active conversation area (ignoring sidebar & composer), with one-click toggle to full-page search.
  • Live Streaming Sync / 流式输出自动同步: Debounced MutationObserver (250 ms) keeps highlights and match counts updated while AI streams or when switching sessions; disconnects immediately when closed.
  • Right-Edge Minimap Markers / 右侧迷你进度刻度条: Shows vertical hit distribution along the viewport edge with click-to-jump.
  • Host-Safe Design / 绝对不破坏 DSH Host: Host-side index.js is a zero-dependency no-op (export function apply() {}); runs purely in the browser with full Shadow DOM CSS isolation and zero external network calls.

Installation / 安装方式

1. DeepSeek Harness (DSH)

Via npm (recommended / 推荐):

dsh plugin --profile web add dsh-omni-find
# Desktop profile:
dsh plugin --profile desktop add dsh-omni-find

Via GitHub:

dsh plugin --profile web add github:yangdw2024/dsh-omni-find

Or in DSH Web/Desktop GUI: Plugins (插件) → Add plugin (添加插件) and enter dsh-omni-find.

Once enabled, press Ctrl+F (Cmd+F on macOS) or click the magnifying glass icon in the top-right conversation header.

2. Userscript (Codex / Antigravity / ChatGPT / Claude / DeepSeek Web)

  1. Install Tampermonkey or Violentmonkey in Chrome / Edge.
  2. Create a new userscript and paste adapters/userscript/dsh-omni-find.user.js.
  3. Refresh your target page and press Ctrl+F (Cmd+F).

3. Chrome / Edge Extension (Manifest V3)

  1. Open chrome://extensions/ or edge://extensions/ and enable Developer mode.
  2. Click Load unpacked and select adapters/browser-extension/.
  3. Refresh your target page and press Ctrl+F.

Development / 开发与构建

npm test       # Run search-engine unit tests
npm run build  # Rebuild client.js, userscript, and MV3 extension from core/

License

MIT

Ähnliche Plugins