Created
December 17, 2010 09:28
-
-
Save xiongchiamiov/744705 to your computer and use it in GitHub Desktop.
Pinboard.in bookmarklet for accessing bookmarks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assuming a keyword of 'pin', | |
// 'pin' will retrieve all bookmarks | |
// 'pin linux' will retrieve all bookmarks tagged 'linux' | |
// 'pin linux tools' will retrieve all bookmarks tagged both 'linux' and 'tools' | |
javascript:params='%s';url='http://pinboard.in/u:xiong.chiamiov';if(params!=''){tags=params.split('%20');for(i=0;i<tags.length;i++){url+='/t:'+tags[i];}}location.href=url; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Took me quite a while to realize that %s needed to be in quotes. If someone finds out where to get debug information on bookmarklets, please let me know.
I've only tested this in my current browser, which is a Firefox 4 nightly.