Skip to content

Instantly share code, notes, and snippets.

@ChewingPencils
Created August 8, 2012 13:30
Show Gist options
  • Save ChewingPencils/3295042 to your computer and use it in GitHub Desktop.
Save ChewingPencils/3295042 to your computer and use it in GitHub Desktop.
Bookmarklet to add the selected text Safari Mobile (iPad) to QuoteBook app.
/*
Author: Sean Korzdorfer
Date: 2012-07-31_140805
Call using :
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://source-url.foo';})();
*/
window.location='quotebook://add?quote=' + document.getSelection() + '&source=' + encodeURIComponent(document.title) + ' ' + encodeURIComponent(document.location.href);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment