Skip to content

Instantly share code, notes, and snippets.

@siman
Created April 20, 2017 23:59
Show Gist options
  • Save siman/c5c06ebd5c0acb8a20aab9014336f30c to your computer and use it in GitHub Desktop.
Save siman/c5c06ebd5c0acb8a20aab9014336f30c to your computer and use it in GitHub Desktop.
Inject jQuery into browser console
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-latest.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