Last active
June 9, 2017 01:01
-
-
Save phdesign/b6c65baf6b303eaff5a516e6f23be7ee to your computer and use it in GitHub Desktop.
Inject jQuery onto page bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function(url) { | |
var script = document.createElement("script"); | |
script.setAttribute("src", url); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
console.log('jQuery injected'); | |
}, false); | |
document.body.appendChild(script); | |
})('//code.jquery.com/jquery-latest.min.js') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment