Add Jquery to Any Page via Console

Sometimes you might want to do a little on the fly DOM editing using your favourite Javascript library - jQuery.

To do this you might need to include jQuery on the page, you can do this by pasting these lines into your console in Chrome or Firebug in Firefox.

var jq = document.createElement('script');
jq.src = "http://code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();

And there you have it, the full power of jQuery at your fingertips


Tags: googlechromejqueryapiconsoleadd