Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Created October 9, 2019 02:21
Show Gist options
  • Save joe-oli/1e2fab617c065fce84dcc8cb178690ac to your computer and use it in GitHub Desktop.
Save joe-oli/1e2fab617c065fce84dcc8cb178690ac to your computer and use it in GitHub Desktop.
using jquery in console
Want to use jQuery from the Browser console?
1. load a page that loads jquery as usual in a script tag.
2. Otherwise, include jQuery in any page by executing this code in the console:
var scr = document.createElement("script");
scr.src = "http://code.jquery.com/jquery-3.4.1.min.js";
document.body.appendChild(scr);
//After abpve script, you can use jQuery from the console;
//nb: you can replace with jquery version you want.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment