Last active
November 8, 2019 04:13
-
-
Save CalamityAdam/122a1384aa0c31b971d827c609bece6c to your computer and use it in GitHub Desktop.
include jQuery in chrome console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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