{"id":50907813,"url":"https://github.com/metaory/code-copy","last_synced_at":"2026-07-03T23:00:59.425Z","repository":{"id":362465171,"uuid":"1257502668","full_name":"metaory/code-copy","owner":"metaory","description":"Chrome extension - Copy text from code blocks and page elements to the clipboard on click","archived":false,"fork":false,"pushed_at":"2026-06-13T04:22:52.000Z","size":5837,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-13T06:19:06.013Z","etag":null,"topics":["chrome-extension","copy","copy-code","copy-content","copy-element","live-copy","pin","web-extension"],"latest_commit_sha":null,"homepage":"https://chromewebstore.google.com/detail/code-copy/pmohebgglggkhehmhbofgbhfgadpjjpc","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metaory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-02T18:35:00.000Z","updated_at":"2026-06-13T04:22:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/metaory/code-copy","commit_stats":null,"previous_names":["metaory/code-copy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/metaory/code-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fcode-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fcode-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fcode-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fcode-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metaory","download_url":"https://codeload.github.com/metaory/code-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metaory%2Fcode-copy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35104115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-extension","copy","copy-code","copy-content","copy-element","live-copy","pin","web-extension"],"created_at":"2026-06-16T07:00:33.032Z","updated_at":"2026-07-03T23:00:59.418Z","avatar_url":"https://github.com/metaory.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"icons/icon128.png\" width=\"96\" height=\"96\" alt=\"Code Copy logo\"\u003e\n  \u003ch1\u003eCode Copy\u003c/h1\u003e\n  \u003cimg src=\"assets/promo-small.png\"\u003e\n  \u003cp\u003e\u003cstrong\u003eClick code to copy.\u003c/strong\u003e Hold \u003ckbd\u003eAlt\u003c/kbd\u003e to copy text from any element.\u003c/p\u003e\n  \u003cp\u003eToolbar toggle. One tab at a time. No popup.\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\nManifest V3 Chrome extension. It copies **innerText** to the clipboard.\n\n## Usage\n\n### Per-tab toggle\n\nEach tab keeps its own on/off state.\n\nClick the **toolbar icon** or press **Alt+C** to toggle copying on the tab in front.\n\n- **Gray icon:** off on this tab.\n- **Color icon:** on on this tab.\n- **Other tabs:** unchanged. The icon reflects the focused tab.\n- **After navigation:** turn it on again on the new page.\n\nToggle shows a short toast: **Code Copy Activated** or **Code Copy Deactivated**.\n\nRemap at `chrome://extensions/shortcuts` if **Alt+C** clashes with the site or browser.\n\n### Code blocks\n\nClick a `\u003ccode\u003e` element, or a `\u003cpre\u003e` with no nested `\u003ccode\u003e` and some text inside. A **Copied** toast and a short highlight appear on the block.\n\n### Any element (Alt pick)\n\n1. Hold **Alt**. The copy cursor appears; text under the pointer gets an outline.\n2. Click while **Alt** stays down. That element's innerText goes to the clipboard. Empty nodes, `\u003chtml\u003e`, and `\u003cbody\u003e` are skipped.\n\n**Alt** picks an element. **Alt+C** toggles the extension.\n\n## Scope\n\n| Runs on | Does not run on |\n|--------|------------------|\n| `http://` and `https://` pages (after you enable on that tab) | `file://`, `chrome://`, Web Store, etc. |\n| Most public sites | `localhost`, `127.0.0.1`, `0.0.0.0` |\n\nIt copies **innerText**, the text as laid out on the page.\n\n## Install\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://chromewebstore.google.com/detail/code-copy/pmohebgglggkhehmhbofgbhfgadpjjpc\"\u003eInstall from the Chrome Web Store\u003c/a\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://chromewebstore.google.com/detail/code-copy/pmohebgglggkhehmhbofgbhfgadpjjpc\"\u003e\n    \u003cimg src=\"assets/chromewebstore.png\" width=\"280\" alt=\"Available in the Chrome Web Store\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n### Development\n\n1. Open `chrome://extensions`, turn on **Developer mode**, **Load unpacked**, pick this directory.\n2. First load opens the welcome window (`welcome.html`).\n3. After code changes, **Reload** the extension, then click the toolbar icon or press **Alt+C** on the tab.\n\nOpen 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`.\n\nStore ZIP: `.dev/store-launch/package.sh` writes `dist/codecopy-v*.zip`.\n\n## Permissions\n\n| Permission | Why |\n|------------|-----|\n| `activeTab` | Inject copy handlers after toolbar click or Alt+C |\n| `storage` | Per-tab on/off state for the browser session |\n| `scripting` | Inject bundled CSS and JS |\n| `tabs` | Match toolbar icon to the focused tab; reset after navigation |\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fcode-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetaory%2Fcode-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetaory%2Fcode-copy/lists"}