Skip to content

Instantly share code, notes, and snippets.

@philgruneich
Last active February 26, 2024 07:00
Show Gist options
  • Save philgruneich/9952819 to your computer and use it in GitHub Desktop.
Save philgruneich/9952819 to your computer and use it in GitHub Desktop.
Bookmarklet to save articles from the web to Evernote using Safari on iOS
// Credits to Phillip Gruneich, Brett Terpstra and Jonathon Duerig.
// This bookmarklet requires Drafts by Greg Pierce/Agile Tortoise.
javascript:(function()%7Bvar%20request=new%20XMLHttpRequest();request.open(%22GET%22,%22http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=0&output=url&u=%22+encodeURIComponent(location.href),true);request.send();request.onreadystatechange=function()%7Blocation.href=%22drafts://x-callback-url/create?text=%22+request.responseText+%22&action=Markdown%20to%20Evernote%22%7D;%7D)();
// Version without triggering the Markdown to Evernote action on Drafts
javascript:(function()%7Bvar%20request=new%20XMLHttpRequest();request.open(%22GET%22,%22http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=0&output=url&u=%22+encodeURIComponent(location.href),true);request.send();request.onreadystatechange=function()%7Blocation.href=%22drafts://x-callback-url/create?text=%22+request.responseText%7D;%7D)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment