Skip to content

Instantly share code, notes, and snippets.

@thadk
Created August 15, 2013 19:37
Show Gist options
  • Save thadk/6244053 to your computer and use it in GitHub Desktop.
Save thadk/6244053 to your computer and use it in GitHub Desktop.
Pinboard with Referrer Bookmarklet -This bookmarklet for pinboard.in adds the referring site (or twit-url) to the description when you bookmark
javascript:q=location.href;if(document.getSelection)%7Bd=document.getSelection()+" refrr:"+document.referrer;%7Delse%7Bd='';%7D;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'));
@thadk
Copy link
Author

thadk commented Sep 10, 2013

To install, make a new bookmark on your Bookmark bar by dragging the favicon from the URL bar into the bar then edit it and paste in the code. Make sure javascript is included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment