Created
April 24, 2012 14:54
-
-
Save rbrooks/2480247 to your computer and use it in GitHub Desktop.
jQuery from Chrome Console
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
// 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