Skip to content

Instantly share code, notes, and snippets.

@rbrooks
Created April 24, 2012 14:54
Show Gist options
  • Save rbrooks/2480247 to your computer and use it in GitHub Desktop.
Save rbrooks/2480247 to your computer and use it in GitHub Desktop.
jQuery from Chrome Console
// Paste these 7 lines into Chrome JS console.
var script = document.createElement("script");
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
// Now you can toy with jQuery!
$('p#whatever').val('Foobar');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment