Copy code without prompts Firefox Add-on
Add-on stats
Ranking
Other platforms
Add-on summary
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]
Add-on safety
Risk impact
Copy code without prompts requires a few sensitive permissions. Exercise caution before installing.
Risk likelihood
Copy code without prompts has earned a fairly good reputation and likely can be trusted.