CodeCopy is a browser extension that automatically adds “copy to clipboard” buttons to code blocks on popular documentation and Q&A sites. Its goal is to save developers time and frustration by making it a single click to copy example snippets, rather than manually selecting text and dealing with formatting issues. The extension detects code snippets on pages like GitHub, MDN, Gist, Stack Overflow, StackExchange, npm, Medium, and others, then overlays a small copy icon or button in the corner of each block. When a user clicks the button, codecopy uses the Clipboard API (or fallbacks) to copy the snippet to the clipboard with minimal visual noise or disruption. The repository provides the extension source, manifest, and build pipeline so that developers can contribute new site matchers or customize behavior. It is distributed under an MIT license and is available for multiple browsers, including Chrome, Firefox, and Opera.
Features
- Automatically injects “copy to clipboard” buttons on detected code blocks across many sites
- Supports popular developer platforms such as GitHub, MDN, Gist, Stack Overflow, StackExchange, npm, and Medium
- Uses the Clipboard API and fallbacks to reliably copy code with a single click
- Cross-browser support, including Chrome, Firefox, and Opera, with dev instructions for loading from source
- Customizable and extensible rules for supporting additional sites and code markup patterns
- MIT-licensed extension code, allowing forks or integration in custom documentation portals