Sometimes is useful exploit the power of jQuery from the browser console. If you are in page/site/web application including jQuery itself, no problem: just open the console and do your stuff. And otherwise?

Otherwise, you first have to include jQuery in that page, executing this code in the console:

var scr = document.createElement("script");
scr.src = "http://code.jquery.com/jquery-2.2.0.min.js";
document.body.appendChild(scr);

After this, you are able to use jQuery from the console.

WARNING: if you open another page or reload the current one, you have to re-execute the code above.

NOTE: if you need it, change the url with the version of jQuery you want to use.

Advertisements