Skip to content

Instantly share code, notes, and snippets.

@lyoshenka
Forked from capndesign/bookmarklet.js
Last active September 24, 2015 06:47
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 lyoshenka/707529 to your computer and use it in GitHub Desktop.
Save lyoshenka/707529 to your computer and use it in GitHub Desktop.
Use Gist or Github file as bookmarklet.
<a href="javascript:(function(){s=document.createElement('script');s.src='https://gist.github.com/raw/707529/bookmarklet.js?'+Math.random();document.body.appendChild(s);})();">Drag this to your bookmark bar</a>
(function() {
alert('Replace demo.js with the URL of your javascript file.');
})();
@lyoshenka
Copy link
Author

Reminder to myself on how to make bookmarklets that get their source from Git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment