Skip to content

Instantly share code, notes, and snippets.

@scholtzm
Last active October 18, 2017 17:14
Show Gist options
  • Save scholtzm/b9a024342c27651cda4a0f6b72f1080d to your computer and use it in GitHub Desktop.
Save scholtzm/b9a024342c27651cda4a0f6b72f1080d to your computer and use it in GitHub Desktop.
[Inject jQuery] Inject jQuery into any website via developer console #inject #jquery #bookmarklet

As a bookmarklet:

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')

Source: https://stackoverflow.com/a/7474386/7494817

// Copy and paste the code below into developer console
(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