Click code to copy. Hold Alt to copy text from any element.
Toolbar toggle. One tab at a time. No popup.
Manifest V3 Chrome extension. It copies innerText to the clipboard.
Each tab keeps its own on/off state.
Click the toolbar icon or press Alt+C to toggle copying on the tab in front.
- Gray icon: off on this tab.
- Color icon: on on this tab.
- Other tabs: unchanged. The icon reflects the focused tab.
- After navigation: turn it on again on the new page.
Toggle shows a short toast: Code Copy Activated or Code Copy Deactivated.
Remap at chrome://extensions/shortcuts if Alt+C clashes with the site or browser.
Click a <code> element, or a <pre> with no nested <code> and some text inside. A Copied toast and a short highlight appear on the block.
- Hold Alt. The copy cursor appears; text under the pointer gets an outline.
- Click while Alt stays down. That element's innerText goes to the clipboard. Empty nodes,
<html>, and<body>are skipped.
Alt picks an element. Alt+C toggles the extension.
| Runs on | Does not run on |
|---|---|
http:// and https:// pages (after you enable on that tab) |
file://, chrome://, Web Store, etc. |
| Most public sites | localhost, 127.0.0.1, 0.0.0.0 |
It copies innerText, the text as laid out on the page.
- Open
chrome://extensions, turn on Developer mode, Load unpacked, pick this directory. - First load opens the welcome window (
welcome.html). - After code changes, Reload the extension, then click the toolbar icon or press Alt+C on the tab.
Open the welcome page again: reinstall unpacked, or run chrome.windows.create({ url: chrome.runtime.getURL('welcome.html') }) from the service worker console on chrome://extensions.
Store ZIP: .dev/store-launch/package.sh writes dist/codecopy-v*.zip.
| Permission | Why |
|---|---|
activeTab |
Inject copy handlers after toolbar click or Alt+C |
storage |
Per-tab on/off state for the browser session |
scripting |
Inject bundled CSS and JS |
tabs |
Match toolbar icon to the focused tab; reset after navigation |