Last Updated: February 25, 2016
·
2.27K
· antoinelyset

Inject jQuery

(function() {
    var script = document.createElement("script");
    script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";
     /* If you need callback */
    script.onload = script.onreadystatechange = function(){ };
    /* end */
    document.body.appendChild( script );
})();

It is useful if you need the jQuery in any page.
Just open your console and paste this snippet.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside