Run code snippets

Latest Version

Version
0.0.1
Update
April 10, 2024
Size
1.12MiB
Developer
Category
Users
7
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
See more

Code snippet runner Extension

This is an extension so you can run code snippets from different sites on different online interpreters/compilers.
You can only run it on your self-defined sites under settings. (And it will maybe not work correctly on all sites). There are some default sites in settings, which you can try.

* First time you may have to allow clipboard pasting on the language site in your browser.

In settings for this extension, you can under the section \"Code Snippet Sites\" add, which sites (use location.origin for site), you should be able to run code snippets from.
Under \"Language sites\", you can add sites where code should run.
So when you visit a site like https://www.php.net/manual/en/function.array-column, there should be a play-button over example code, which you can click to open e.g. https://onlinephp.io/, where the code is inserted and run.

You can see a video that shows how you can use it to run code snippets from ChatGPT on CodePen.
https://www.youtube.com/watch?v=5beElSRSBKw
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Code snippet runner", "version": "0.0.1", "description": "Run code snippets", "content_scripts": [ { "js": ["content.js"], "css": ["content.css"], "matches": ["https://*/*"] } ], "permissions": [ "storage" ], "options_page": "options.html"}
Read more

Similar Extensions