Skip to content

Instantly share code, notes, and snippets.

View lyndondrake's full-sized avatar

Lyndon Drake lyndondrake

View GitHub Profile
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
@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/[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/" */