Last active
May 12, 2016 02:37
-
-
Save rmateu/5a7bd8ff86323c314d53faff8296ce9f to your computer and use it in GitHub Desktop.
Bookmarklet: Send Page as markdown link to Launchbar
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 = encodeURIComponent(document.title), | |
text = window.getSelection().toString(), | |
TextCopy = '[' + title + ']' + '(' + url + ')' + '%0A' + text; | |
window.location='x-launchbar:select?string='+TextCopy; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment