Created
September 17, 2012 03:48
-
-
Save Trindaz/3735444 to your computer and use it in GitHub Desktop.
Inject JQuery to any webpage at runtime
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
var script=document.createElement('script'); | |
script.attributes["src"]="http://code.jquery.com/jquery-latest.min.js" | |
var head=document.getElementsByTagName('head')[0]; | |
head.appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment