Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amitness/cutcode

A browser extension that enables double click to copy code snippet from stack overflow.
https://github.com/amitness/cutcode

developer-tools hacktoberfest productivity stackoverflow

Last synced: about 1 month ago
JSON representation

A browser extension that enables double click to copy code snippet from stack overflow.

Awesome Lists containing this project

README

        

# cutcode

Chrome and Firefox extension to copy code snippet from Stack Overflow by double clicking.

![Screencast](http://i.imgur.com/RbV6GgQ.gif)

## Getting Started

### Installing

Available on the [Firefox Add-ons site](https://addons.mozilla.org/en-US/firefox/addon/cutcode/).

- Clone the repo.

```shell
git clone https://github.com/amitness/cutcode
```

### Installing on Chrome

- Load the extension into Google Chrome as an Unpacked Extension:


- Navigate to (1a) chrome://extensions or (1b) select Menu > More Tools > Extensions.
- Enable the (2) developer mode at top right.
- Click (3) "Load Unpacked Extension".
- Navigate to the cloned folder.
For additional help, refer the [official guide for Chrome](https://developer.chrome.com/extensions/getstarted#unpacked).


![Installation screenshot](https://cloud.githubusercontent.com/assets/6765956/23824934/6104b958-064e-11e7-9834-9ec025b068c2.png)

### Installing on Firefox
- Load the extension into Firefox as a Temporary Add-on:

- Open Firefox
- Enter (1) "about:debugging" in the URL bar
- Click (2) "Load Temporary Add-on"
- Open the cloned directory and select any file inside the folder.
For additional help, refer the [official guide for Firefox](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox).

![Installation screenshot](https://cloud.githubusercontent.com/assets/6765956/23825005/c8b70bfe-064f-11e7-9a9c-c228a6729b9c.png)

### Local Development
- Follow installation instructions and install the extension.
- Work on the code.
- Use Reload (`Ctrl+R`) to reload the extension from `chrome://extensions` page.
- Test the new changes.

## Contributing
We :heart: contributions. Feel free to send us a PR.

1. [Create an issue](https://github.com/amitness/cutcode/issues/new) if there is one.
2. [Fork the repo](https://github.com/amitness/cutcode/fork).
3. Create your feature branch (`git checkout -b your-feature`).
4. Add and commit your changes (`git commit -am 'message'`).
5. Push the branch (`git push origin your-feature`).
6. Create a new Pull Request.

### Feedback
[Create an issue](https://github.com/amitness/cutcode/issues) for all discussions, bugs, feature requests and pull requests.

### License

This project is licensed under the GNU License - see the [LICENSE](LICENSE) file for details.

Icon provided by [Open Iconic](http://www.useiconic.com/open).

### References
- [Copy & Paste & The Web : CSS-Tricks](https://css-tricks.com/copy-paste-the-web/)
- [Double Click Event Handler: Stack Overflow](http://stackoverflow.com/questions/6462909/how-to-add-doubleclick-event-to-canvas-element-using-the-addeventlistener-meth)