Skip to content

Instantly share code, notes, and snippets.

@renehuber
Created May 2, 2012 11:59
Show Gist options
  • Save renehuber/2576088 to your computer and use it in GitHub Desktop.
Save renehuber/2576088 to your computer and use it in GitHub Desktop.
Embedding a Github-hosted script in a bookmarklet
// Minifiy the following with http://jscompress.com/ and save the string in a Bookmark in your browser
javascript:(function() {
var extScript = document.createElement('script');
extScript.type = 'text/javascript';
extScript.src = 'https://raw.github.com/gist/2576050/009a1d68f3c308bf8ebb041a3b3137d01713673d/enlink.js';
document.body.appendChild(extScript);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment