Skip to content

Instantly share code, notes, and snippets.

@ndhoule
Created May 20, 2014 01:23
Show Gist options
  • Save ndhoule/dd859f7b19a23fbbc0b4 to your computer and use it in GitHub Desktop.
Save ndhoule/dd859f7b19a23fbbc0b4 to your computer and use it in GitHub Desktop.
jQuery bookmarklet
javascript:(function(global) {if (!global.jQuery) {var elem = document.createElement('script'); elem.src = '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; document.getElementsByTagName('head')[0].appendChild(elem);}})(this); console.log('jQuery injected into page as `$` and `jQuery`.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment