Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bookmarklet to inject script by url to page, e.g. jquery.
javascript: (function() {
var url = prompt('URL of script to inject:', '');
if (url) {
console.log('Script inject request URL:', url);
var script = document.createElement('script');
script.src = url;
console.log('Injected script: ', script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment