Copy code from code blocks in github by clicking the copy button without console prompts like as $,#,>

Latest Version

Version
1.0.0
Update
May 25, 2023
Size
48.45KiB
Developer
Category
Users
3
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
See more

Copy code without prompts Extension

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]
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Copy code without prompts", "version": "1.0.0", "description": "Copy code from code blocks in github by clicking the copy button without console prompts like as $,#,>", "icons": { "128": "icons/128.png", "96": "icons/96.png", "48": "icons/48.png", "32": "icons/32.png" }, "author": "gH2843", "homepage_url": "https://github.com/gH2843/Copy-code-without-prompts", "short_name": "\u0421opyCodeWP", "permissions": ["storage"], "action": { "default_icon": { "16": "icons/16.png", "32": "icons/32.png" }, "default_title": "choose console prompts", "default_popup": "src/popup.html" }, "content_scripts": [ { "matches": ["*://github.com/*"], "run_at": "document_idle", "js": ["src/main.js"] } ]}
Read more

Similar Extensions

icon

CSS Selector Capture Pro Extension · Developer Tools 3 11 ★ 116KiB

icon

cocopy Extension · Productivity 3 7 ★ 2.14MiB

icon

Github to vscode Extension · Developer Tools 3 2 ★ 15.53KiB

icon

Open with Visual Studio Code - Github Extension · Productivity 3 2 ★ 47.19KiB

icon

GL Git Clone Extension · Developer Tools 3 1 ★ 55.18KiB

icon

codebox-one click code copying without login Extension · Developer Tools 3 44 ★ 5.78MiB

icon

Google Apps Script GitHub Assistant Extension · Developer Tools 3 98 ★ 153KiB

icon

Pause Script Execution Extension · Developer Tools 3 5 ★ 70.92KiB

icon

GitHub LOC Extension · Developer Tools 3 3 ★ 733KiB

icon

Clone in VS Code Extension · Developer Tools 3 1 ★ 18.28KiB

icon

Copy as Python Requests Extension · Developer Tools 3 2 ★ 23.94KiB

icon

Don't F*** With Paste Extension · Productivity 3 653 ★ 85.67KiB

icon

Gitd Download Manager Extension · Developer Tools 3 1 ★ 69.96KiB

icon

Open in VSCode Extension · Developer Tools 3 4 ★ 60.87KiB

icon

Allow Copy/Paste Extension · Accessibility 3 4 ★ 29.9KiB

icon

GitHub Whitespace Extension · Developer Tools 3 10 ★ 15.73KiB

icon

Copy Text from HTML Extension Extension · Productivity 3 0 ★ 1.54MiB

icon

??‍♀️Copy Genie Extension · Productivity 3 1 ★ 88.95KiB

icon

GitHub Merge Guardian Extension · Developer Tools 3 0 ★ 306KiB

icon

Open GitHub in IDE Extension · Developer Tools 3 9 ★ 208KiB

icon

Copy Tabs Title URL Extension · Accessibility 3 0 ★ 11.42KiB

icon

URLDecodeCopy Extension · Accessibility 3 1 ★ 30.64KiB

icon

Markdown Preview Plus Extension · Productivity 3 234 ★ 2.24MiB

icon

Copy-Code Extension · Developer Tools 3 1 ★ 569KiB