This small add-on removes the characters '$' (by default) and/or '#','>' (of your choice) from the beginning of each line in console code blocks on github, thanks to the iteration of html page elements containing code blocks. This add-on is released under GPL-3.0 license. Works on page load
You can choose which characters will be removed from the beginning of the lines of code blocks by selecting them from the pop-up menu (click on the add-on icon in the extensions menu to the left of the main menu). After that, you need to reload the github page.
I decided to create this extension when I started seeing similar blocks of code often:
$ cd dir && cmake && make
# [some console command]
> [some console command]
Now, after creating this extension, I can no longer worry about deleting every character. '$','#','>' from my terminal! The previous code will be copied without prompts:
cd dir && cmake && make
[some console command]
[some console command]
- License: GNU General Public License v3.0 or later
- Weekly downloads: 0
- Average daily users: 0
- Rating: 5/5 of 1 ratings
- Created: 2023-05-07 21:29:54
- Last updated: 2023-05-25 12:25:31
- Homepage: https://github.com/gH2843/Copy-code-without-prompts
- Support site and email
- Orig: https://addons.mozilla.org/en-US/firefox/addon/copy-code-without-prompts/
- API: {2e0d8302-7c8d-46d2-9fd1-3479f5b85c3c}