Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zenorocha/codecopy
A browser extension that adds copy to clipboard buttons on every code block
https://github.com/zenorocha/codecopy
Last synced: about 16 hours ago
JSON representation
A browser extension that adds copy to clipboard buttons on every code block
- Host: GitHub
- URL: https://github.com/zenorocha/codecopy
- Owner: zenorocha
- License: mit
- Created: 2017-04-14T16:10:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T15:03:10.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T19:59:22.209Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.28 MB
- Stars: 1,029
- Watchers: 9
- Forks: 106
- Open Issues: 29
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - zenorocha/codecopy - A browser extension that adds copy to clipboard buttons on every code block (JavaScript)
- awesome - 🧩 CodeCopy - A browser extension that adds copy to clipboard buttons on every code block (GitHub / Other)
- awesome - 🧩 CodeCopy - A browser extension that adds copy to clipboard buttons on every code block (GitHub / Other)
README
# CodeCopy
> Because copy to clipboard buttons should exist on every code snippet.
![Banner](https://cloud.githubusercontent.com/assets/398893/25569224/c3e7a724-2dc7-11e7-9ff4-7861c7876028.png)
## Install
This browser extension available for:
| | |
|:---:|:---:|
| [Chrome](https://chrome.google.com/webstore/detail/codecopy/fkbfebkcoelajmhanocgppanfoojcdmg) | [Firefox](https://addons.mozilla.org/en-US/firefox/addon/codecopy/) |## Supported sites
Works with:
* [GitHub](https://github.com/)
* [MDN](https://developer.mozilla.org/)
* [Gist](https://gist.github.com/)
* [StackOverflow](http://stackoverflow.com/)
* [StackExchange](https://stackexchange.com/sites)
* [npm](https://www.npmjs.com/)
* [Medium](https://medium.com/)[And more](https://github.com/zenorocha/codecopy/blob/7c638611f7ad01d923361f7fedfe3933b35e114c/dist/manifest.json#L27).
If you want to add a new site, feel free to send a pull request :)
### Custom domains
You can also enable CodeCopy on custom domains or Github Enterprise.
Right click on CodeCopy's icon in the the toolbar and select **Enable CodeCopy on this domain**.## Preview
![Preview](https://cloud.githubusercontent.com/assets/398893/25569031/5840911a-2dc3-11e7-8445-a5b0867ceec7.png)
## Setup
Install dependencies:
```
npm install
```Compile scripts and styles:
```
npm start
```## Testing
###### Chrome
1. Navigate to `chrome://extensions`
2. Click on `Load unpacked extension...`
3. Select the `dist` folder
###### Firefox
1. Navigate to `about:debugging`
2. Click on `Load temporary Add-on`
3. Select the `manifest.json` inside the `dist` folder
###### Opera
1. Navigate to `extensions`
2. Click on `Developer Mode`
3. Click on `Load unpacked extension...`
4. Select the `dist` folder
## License
[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha