Custumized fork of @kepano's awesome Markdown Clipper for Obsidian
- Set my vault and inbox location
- Format the data as yaml in the document's metadata (Front Matter), to more easily use with
dataview
queries - Format the file name as
snake_case
to make searching and scripts a little easier - Remove
the
from the beginning of file names so there aren't a bunch of files namedthe_...
- Remove
Amazon.com:
from the begenning of a file when clipping amazon books - add a yaml key for
image:
that can be displayed in adataview
TABLE query - Add a separate
source
link outside of the metada since markdown are unsupported by yaml (they break they yaml)
By @kepano
🎉 Support my work at buymeacoffee.com/kepano
You can find a demo of this bookmarklet on YouTube
Create a new bookmark in your browser, then copy/paste the minified code below into the URL field.
You can customize the output using the optional variables at the top, and the template at the bottom. The default template is designed for use with the Dataview plugin. If you make changes I recommend using Bookmarklet Maker to minify and URI encode the bookmarklet.
By default, clicking the bookmarklet creates a new Obsidian file from the main body of the article (similar to Readability view). Alternatively you can choose to create a file from a selection, by either selecting all (CMD+A
), or just a portion of the page.
Any images in the content will be embedded as external references. If you want to download images locally you can use the Local Images plugin which allows you to download images for a note.
This bookmarklet may not work on all websites. If you run into issues, you can also try the MarkDownload browser extension which provides similar functionality. You can troubleshoot issues by opening the Developer Console in your browser and checking if any errors appear when you click the bookmarklet. The most common error is that a website or the browser itself is blocking third party code execution. Unfortunately there is no good solve for that yet.