Skip to content

Instantly share code, notes, and snippets.

@vihuvac
Created August 1, 2014 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vihuvac/9a3daa2e2c699fbf8386 to your computer and use it in GitHub Desktop.
Save vihuvac/9a3daa2e2c699fbf8386 to your computer and use it in GitHub Desktop.
Script to generate an html script tag in the google chrome javascript console
var script = document.createElement("script");
script.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment