Skip to content

Instantly share code, notes, and snippets.

View lyndondrake's full-sized avatar

Lyndon Drake lyndondrake

View GitHub Profile
@lyndondrake
lyndondrake / obsidian-web-clipper.js
Last active December 16, 2023 19:43 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
to convertDate(textDate)
if length of textDate is 4 then
set textDate to "1/1/" & textDate
end if
set resultDate to my date textDate
return resultDate
end convertDate
to surname(textName)
set r to textName