Scriptbar Snippets 🚀
Handy and easy to understand snippets to keep in your browser


Run remote javascript snippet given url

Script will extend the console global browser object with runRemoteSnippet(url: string) and allow to run execute any remote script

Demo to run remote snippet given url


Some website e.g Github won't allow you to run remote snippet Github won't allow you to run snippet image

/* * Warning this is dangerous in general if you don't understand * the remote code that you will be executing * example: console.runRemoteCode("") */ (function (console) { console.runRemoteCode = function (url) { if (!url) { return console.error('console.runRemoteCode: No url'); } // download and run the script var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = url; head.appendChild(script); } })(console)
Built with ❤️ by @domnguyen and everyone on the internet 🚀