Coredump
Work, play, and everything in-between [feed]

Delicious linkroll, revised

Based on this comment in a previous blog post on rolling my own Delicious linkroll, I modified my code to sort the recent bookmarks alphabetically. I also added encoded URIs and escaped HTMLs to — hopefully — make the code XSS-safe.

Here it is:


I know, I should have used Delicious’ version 2 of the JSON feeds and callbacks — will get to that soon. ;) For now, see the code at work here.

Read more:


4 Comments

Andrew says:

Dear Ian,

I’ve tried it out and it’s working well. Thank you!
Just a note to other viewers to make sure they copy from the ‘view raw’ version. I futzed around for a while because I’d cluelessly not copied it all.

I particularly like the styling section you’ve included. I’ve used it to change margins and make a hover effect- and I took out the tags, which were taking up a lot of room when displayed as block (I wanted block display for my hover effects). To do this I just took out the \ li.appendChild(tags);\ line near the end. Probably not the most efficient excision, but it seems to work!

Thanks again,

Andrew.

Posted on 5 May 2009 am31 3:38 AM UTC

Ian Dexter says:

Glad you liked it, Andrew.

Posted on 9 May 2009 pm31 11:56 PM UTC

Christian Ross says:

You sir, are a [design-related] lifesaver. Thanks for taking the headache out of what delicious should have done right in the first place.

Posted on 5 March 2010 am31 5:40 AM UTC

Ian Dexter says:

Thanks, Christian. Happy to hear you found it useful.

Posted on 5 March 2010 am31 9:57 AM UTC

Leave a comment


« »