Skip to content

Instantly share code, notes, and snippets.

@tnorthcutt
Created March 14, 2013 17:18
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 tnorthcutt/5163251 to your computer and use it in GitHub Desktop.
Save tnorthcutt/5163251 to your computer and use it in GitHub Desktop.
Quick pinboard bookmarking in Chrome
/*
*In Chrome, add a new search engine (Settings -> Search -> Manage Search Engines), with 'p' as the keyword,
* and the following snippet in the url field. To use, press cmd/ctrl+l, type 'p', then enter. You should see a
* new window where you can save the bookmark in pinboard. Enjoy!
*/
javascript:q=location.href;if(document.getSelection)%7Bd=document.getSelection();%7Delse%7Bd='';%7D;p=document.title;void(open('https://pinboard.in/add?url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=700,height=350'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment