Inject jQuery offline

I've been experimenting with a way to circumvent wifi network password screens, and found myself needing to inject jQuery into a page without having an Internet connection (see jquerify otherwise). Here's what I did in Chrome:

{

"name": "File holder", 

"version": "1.0"

}

 

  • Go to chrome://extensions/ in Chrome
  • Click "Load unpacked extension" and select your folder
  • Note the "ID" from your new extension. This is how you'll load files from it.
  • Add the following JavaScript to the developer console:

 

var element1 = document.createElement("script");

element1.src = "chrome-extension://aaaabbbbccccdddd/jquery.min.js"; // use your extension's ID

element1.type="text/javascript";

document.getElementsByTagName("head")[0].appendChild(element1);

 

That will allow you to use jQuery without having an internet connection.