No icons. No clutter. Just the shortcut.
A zero-UI Chrome extension that copies your current tab URL to the clipboard with a single keyboard shortcut. No popups. No confirmations. No friction.
The extension is intentionally dead simple:
- Command Listener: A background service worker listens for the
Alt+Shift+C(Option+Shift+Con Mac) keyboard shortcut. - Tab Query: It queries the active, last-focused tab to grab the current URL.
- Offscreen Clipboard: An offscreen document is spun up to handle clipboard access via the
navigator.clipboardAPI, with adocument.execCommandfallback for edge cases. - Done: The URL is in your clipboard. That's it.
URL-Instant-Copy/
├── manifest.json # Extension manifest (v3)
├── background.js # Service worker — command listener + tab query
├── offscreen.html # Offscreen document shell
├── offscreen.js # Clipboard write logic (with fallback)
└── popup.html # Static UI — just the shortcut reminder
- Navigate to
chrome://extensions/ - Enable Developer mode
- Click Load unpacked
- Select the project directory
| OS | Shortcut |
|---|---|
| Mac | Option + Shift + C |
| Windows | Alt + Shift + C |
| Permission | Reason |
|---|---|
tabs |
Read the active tab URL |
offscreen |
Spawn offscreen document for clipboard access |
clipboardWrite |
Write the URL to the user's clipboard |
No host permissions. No data collection. No network requests.
- Clipboard API blocked: Falls back to
document.execCommand('copy')via a hiddentextareaelement. - No active tab: Throws a caught error and logs silently — no user-facing crash.
- Offscreen doc race condition: A
creatingOffscreenDocumentmutex prevents duplicate document creation on rapid successive triggers.
| Version | Milestone |
|---|---|
v1.0.0 |
Initial release — shortcut-based URL copy with offscreen clipboard |
Built by Parshva