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: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
(org-add-link-type "twittering" 'twittering-org:open) | |
(add-hook 'org-store-link-functions 'twittering-org:store-link) | |
(defun twittering-org:open (id-str) | |
(twittering-visit-timeline (concat ":single/" id-str))) | |
(defun twittering-org:store-link () | |
"Store a link to a tweet." | |
(when (and (twittering-buffer-p) (twittering-get-id-at)) | |
(let ((status (twittering-find-status (twittering-get-id-at)))) | |
(apply 'org-store-link-props |