Skip to content

Instantly share code, notes, and snippets.

@epramono
Last active December 20, 2015 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epramono/6140531 to your computer and use it in GitHub Desktop.
Save epramono/6140531 to your computer and use it in GitHub Desktop.
Installing this bookmarklet in Safari's Bookmarks Bar on your iPad will allow you to append a document named "Unitlted.txt" which is stored in iCloud with a Markdown-style hyperlink containing the currently selected text and the page URL. Once the hyperlink has been added, you will be redirected back to Safari automatically. For more information…
javascript:window.location=
'byword%3A%2F%2Fx-callback-url%2Fappend%3Flocation%3Dicloud%26name%3DUntitled.txt%26text%3D'+
encodeURIComponent("\n["+window.getSelection()+"]")+
encodeURIComponent("("+location.href+")\n")+
'%26x-success%3D'+encodeURIComponent(location.href)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment