Skip to content

Instantly share code, notes, and snippets.

@jsmm
jsmm / obsidian-web-clipper.js
Last active September 17, 2021 07:50 — forked from kepano/obsidian-web-clipper.js
Obsidian Bookmarklet to clip pages
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/" */
@jsmm
jsmm / 0_reuse_code.js
Created October 23, 2013 21:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
--Based in http://www.organognosi.com/export-skim-notes-according-to-their-highlight-colors/
--Modified with http://drosophiliac.com/2012/09/an-academic-notetaking-workflow.html
--Colors and codes changed.
tell application "Skim"
set the clipboard to ""
set numberOfPages to count pages of document 1
activate
set myColorCodes to my chooseColor()
display dialog "Do you want to export all the notes or some of them?" buttons {"All", "Some"} default button 1