Skip to content

Instantly share code, notes, and snippets.

@CalamityAdam
Last active November 8, 2019 04:13
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 CalamityAdam/122a1384aa0c31b971d827c609bece6c to your computer and use it in GitHub Desktop.
Save CalamityAdam/122a1384aa0c31b971d827c609bece6c to your computer and use it in GitHub Desktop.
include jQuery in chrome console
// to load jQuery into any website's console
// paste the following into console
var script = document.createElement('script');script.src = "https://code.jquery.com/jquery-3.4.1.min.js";document.getElementsByTagName('head')[0].appendChild(script);
/**
*
* pro-tip: paste the following into bookmark
*
*
*/
javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'//code.jquery.com/jquery-latest.min.js')
// formatted version:
javascript: (function(e, s) {
e.src = s;
e.onload = function() {
jQuery.noConflict();
console.log('jQuery injected');
};
document.head.appendChild(e);
})(document.createElement('script'), '//code.jquery.com/jquery-latest.min.js')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment