Skip to content

Instantly share code, notes, and snippets.

@SteveBenner
Forked from takkyuuplayer/load-jQuery.js
Created August 7, 2020 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveBenner/073867a7a90296e5f5ed02bf6f4fde8e to your computer and use it in GitHub Desktop.
Save SteveBenner/073867a7a90296e5f5ed02bf6f4fde8e to your computer and use it in GitHub Desktop.
use jQuery in Chrome javascript console.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
console.log($); // $ is object original site object
withChebo(function() {
console.log($); // $ is imported jQuery
})
console.log($); // $ is object original site object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment