Created
June 11, 2016 13:25
-
-
Save punchagan/f561e47cacc91869d933f0dffa39c0bb to your computer and use it in GitHub Desktop.
Elfeed org-capture bookmarklet
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
javascript:(function(){ | |
var url_element = | |
document.querySelector('link[type="application/rss+xml"]') || | |
document.querySelector('link[type="application/atom+xml"]') || | |
location; | |
var url = url_element.href; | |
location.href = 'org-protocol://capture://L/'+ | |
encodeURIComponent(url)+'/'+ | |
encodeURIComponent(document.title); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment