Created
March 4, 2016 21:02
-
-
Save rmateu/7a97f2bf96e34c925ead to your computer and use it in GitHub Desktop.
Dave Winer Style Link Bookmarlet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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