Skip to content
프로젝트

소개

화면에서 요소를 선택하는 시각적 북마클릿입니다. 요소를 고르고 지침을 주석으로 추가한 뒤 AI용 프롬프트를 복사할 수 있습니다.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+5
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Selector — point at any web element and copy structured context for your AI coding assistant

A bookmarklet for selecting web elements and copying structured context into Claude Code, Codex, Cursor, or any AI coding assistant.

https://github.com/user-attachments/assets/fb8e9271-d7e0-487f-b013-106cc4c5a40f

Install

  1. Visit the install page
  2. Drag the Selector button to your bookmarks bar (one-time)
  3. Done

The install page follows your browser language and includes an English / Chinese toggle.

Usage

Open any web page, click the Selector bookmark.

Action What it does
Click Select an element
Shift + Click Add to selection
Drag Marquee select multiple elements
↑ / ↓ Navigate to parent / child element
← / → Navigate to previous / next sibling
✎ button Add per-element instruction
⌘C Copy prompt to clipboard
⌘M Copy selected content as Markdown
⌘⇧C Copy selected area screenshot
⌘Z Undo last selection change
F2 Pause / resume element selection
Esc Clear the current selection or close the current popover

Copied prompts include the element name, stable locator, semantic location, and React details, with CSS, layout, parent, or HTML context added only when useful. Long URLs are reduced to the route and key query values.

Enable Sharingan mode for higher-fidelity recreation. ⌘C then captures document context, geometry, sanitized DOM, effective styles and states, fonts, animations, media, React details, and nearby context. Small reports go to the clipboard; large ones download as .md files.

With Screenshot + text combined enabled, ⌘C copies the prompt and selected-area screenshot, downloads the PNG, and adds its local path to the prompt for text-only AI inputs.

Example output

Page: https://example.com/dashboard?tab=overview

1. Hero "Welcome to the Dashboard" <h1>
   selector: [data-testid="hero-title"]
   locator: heading "Welcome to the Dashboard"
   source: src/components/Hero.tsx:12
   react: Layout › Hero
   instruction: Make this red and larger

2. nav "Home Settings Profile Logout" <nav>
   locator: nav "Home Settings Profile Logout"
   inside: main "Dashboard"
   instruction: Add an "Analytics" link after "Settings"

For long filtered pages, the copied prompt is shortened like this:

Page: http://localhost:3000/campaigns/2079fa76-9c77-4900-b11a-086f4464ff2b/settlement
Query: date_from=2026-05-23, date_to=2026-06-22, creator_ids ×2

How it works

Selector injects its compiled assets into the current page and runs entirely client-side — no data is sent anywhere. The build bundles the editor and Sharingan mode into the bookmark, so it works offline after installation.

Selector Pro

Use Selector Pro for one-shortcut access across tabs, complete captures without dialogs, and synced settings.

Selector Pro — a better Selector that stays active across tabs, captures complete elements without dialogs, and syncs settings

Development

git clone https://github.com/oil-oil/selector.git
cd selector
npm ci
npm run build
# Source files:
#   assets/editor.css     — styles for the in-page editor UI
#   src/*.js              — editor source fragments assembled by scripts/build.js
#   src/sharingan.js      — Sharingan-mode replication report, inlined at build time
# Push to main — GitHub Actions builds dist/ and deploys GitHub Pages

README made with beautify-github-readme

License

MIT

관련 프로젝트 살펴보기

불러오는 중…