Is there an easy way to include jQuery in the Chrome JavaScript console for sites that do not use it? For example, on a website I would like to get the number of rows in a table. I know this is really easy with jQuery.
$('element').length;
The site does not use jQuery. Can I add it in from the command line?
Run this in your browser’s JavaScript console, then jQuery should be available…
NOTE: if the site has scripts that conflict with jQuery (other libs, etc.) you could still run into problems.
Update:
Making the best better, creating a Bookmark makes it really convenient, let’s do it, and a little feedback is great too:
Below is the formatted code:
Here the official jQuery CDN URL is used, feel free to use your own CDN/version.