Skip to content

Instantly share code, notes, and snippets.

@jeremyis
Created November 4, 2012 01:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyis/4009709 to your computer and use it in GitHub Desktop.
Save jeremyis/4009709 to your computer and use it in GitHub Desktop.
inject jquery into a page
var element1 = document.createElement("script");element1.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js";element1.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(element1);
// full disclosure: i found this through google and didn't write it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment