A Chrome extension that lets you visually select any element on a webpage and use it as context when working with Claude AI.
- Add target URLs in the extension popup (e.g.,
localhost:3000,example.com) - Hold the activation shortcut (default:
Alt) and hover over elements to highlight them - Click to select an element
- Ask Claude what you need — tell it to check
window.__selectedfor the element you picked and use it as context - Press Esc to clear the selection
Requires Claude for Chrome extension to communicate with Claude.
- Persistent injection — the inspector survives page reloads automatically
- Custom URL list — choose exactly which sites the inspector is active on
- Configurable shortcut — change the activation modifier (Alt, Ctrl, Shift, Cmd, or any combination)
- Instant toggle — enable/disable the inspector globally with one click
- Zero data collection — all settings stored locally via Chrome sync storage
- Clone this repository:
git clone https://github.com/Jekins/claude-browser-inspector.git - Open
chrome://extensionsin Chrome - Enable Developer mode (top-right toggle)
- Click Load unpacked and select the cloned folder
- Pin the extension for quick access
The extension supports flexible URL patterns:
| Input | Matches |
|---|---|
google.com |
google.com, www.google.com, mail.google.com, ... |
localhost:3000 |
http://localhost:3000, https://localhost:3000 |
https://example.com |
Only https://example.com (strict protocol) |
*.example.com |
Any subdomain of example.com |
example.com/app |
Any page under /app path |
- Manifest V3 with service worker (no persistent background page)
- Injects the element picker into MAIN world via
chrome.scripting.executeScriptsowindow.__selectedis accessible from the page console - Uses dynamic injection instead of
registerContentScriptsto support URL patterns with ports (which Chrome match patterns don't support) - Modifier config is updated in-place without re-injecting the entire inspector
This extension does not collect, transmit, or share any data. All settings are stored locally. See Privacy Policy.
MIT