Posts Tagged ‘delicious’

See Only Private Bookmarks On Delicious

Posted in General on December 6th, 2009 by Jacobo de Vera – Be the first to comment

I have only started experimenting with jQuery and I already love it. It was this video/tutorial in John Resig’s blog that got me started. He has a bookmarklet that brings the jQuery library to any webpage and then uses Firebug to hack the page using the recently embedded jQuery functionality. Once he is happy with his hack, he can add the code to the bookmarklet itself and load it all together with a single click.

I followed this approach to solve a long-standing annoyance of Delicious: The lack of a option to show only the bookmarks that I have marked as private.

Tuns out that with only so much as this little piece of code:

$("ul.bookmarks li.post:not(.isPrivate)").toggle();

I can make all the public bookmarks disappear and appear again. Here is a bookmarklet to do that (to use it, simply drag it to your browser’s toolbar):

[Toggle Public Bookmarks]

I also noticed that Delicious only places the date on the first bookmark for a particular day, which means that if the bookmark that holds the date is a public one and we hide it, any private bookmark from the same day will be left dateless, thus appearing to have been saved on the latest shown date.

Dates on Delicious bookmarks

Fixing this made the code a little bit more complex and since I am not particularly fond of bookmarklets anyway, I decided to make it a GreaseMonkey Script.

I have uploaded the script to Userscripts.org although I am also keeping a local copy, so you can either

Once installed, you will see two new links on the header of your Delicious bookmarks page: “Show only private bookmarks” and “Show public & private bookmarks”

New links added by the script