Skip to content

Instantly share code, notes, and snippets.

@philgruneich
Created November 17, 2014 03:22
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philgruneich/02e013acf19cae2dac46 to your computer and use it in GitHub Desktop.
Save philgruneich/02e013acf19cae2dac46 to your computer and use it in GitHub Desktop.
Cleans the content of your current page and sends it to Drafts, which creates a new note in Evernote and includes geolocation. Requires the Markdown to Evernote action.
javascript:(function(){var request=new XMLHttpRequest();request.open("GET","http://heckyesmarkdown.com/go/?read=1&preview=0&showframe=0&output=url&u="+encodeURIComponent(location.href),true);request.send();request.onreadystatechange=function(){location.href="drafts4://x-callback-url/runAction?text="+encodeURIComponent(window.document.title + "\n")+request.responseText+"&action=Markdown To Evernote"};})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment