Created
November 26, 2012 16:28
-
-
Save girlcheese/4149159 to your computer and use it in GitHub Desktop.
Inject jQuery into a page
This file contains hidden or 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
;(function() { | |
var tag = document.createElement('script'); | |
tag.src = 'http://code.jquery.com/jquery.min.js'; | |
tag.type = 'text/javascript'; | |
tag.async = 'true'; | |
var hookTag = document.getElementsByTagName('script')[0]; | |
hookTag.parentNode.insertBefore(tag, hookTag); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment