zenorocha/codecopy

A browser extension that adds copy to clipboard buttons on every code block

JavaScript

1,110

67 commits

updated Mar 2, 2023

See the code

README

CodeCopy

Because copy to clipboard buttons should exist on every code snippet.

Banner

Install

This browser extension available for:

Supported sites

Works with:

And more.

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

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 © Zeno Rocha

zenorocha/codecopy

A browser extension that adds copy to clipboard buttons on every code block

JavaScript

1,110

67 commits

updated Mar 2, 2023

See the code

README

CodeCopy

Because copy to clipboard buttons should exist on every code snippet.

Banner

Install

This browser extension available for:

Supported sites

Works with:

And more.

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

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 © Zeno Rocha

Significant stargazers

Aditya Oberai

734 followers · starred May 2021

Ben Gadbois

50 followers · starred Sep 2017

Danny Guo

184 followers · starred Dec 2018

nbogie

101 followers · starred Jul 2020