Skip to content

Instantly share code, notes, and snippets.

@timd
Created March 9, 2013 15:23
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 timd/5124491 to your computer and use it in GitHub Desktop.
Save timd/5124491 to your computer and use it in GitHub Desktop.
A Javascript bookmarklet to post links to Pinboard. Adds the currently-selected text on the page in quotes as the bookmark's description.
javascript:q=location.href;if(document.getSelection){d%20=%20'"'%20+%20document.getSelection()%20+%20'"';}else{d='';};p=document.title;void(open('https://pinboard.in/add?showtags=yes&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,scrollbars=yes,width=750,height=700'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment