Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rmateu/7a97f2bf96e34c925ead to your computer and use it in GitHub Desktop.
Save rmateu/7a97f2bf96e34c925ead to your computer and use it in GitHub Desktop.
Dave Winer Style Link Bookmarlet.
(function bookmarklet() {
var url = location.origin + location.pathname,
title = document.title,
site = location.host,
site = site.replace(/^www./,''),
markdownLinkblog = document.title + ' → ' +'[' + site + ']' + '(' + url + ')';
window.prompt('Copy to clipboard: ⌘+C or Ctrl+C then Enter', markdownLinkblog);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment