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.
Dear Ian,
ReplyDeleteI'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.
Glad you liked it, Andrew.
ReplyDeleteYou sir, are a [design-related] lifesaver. Thanks for taking the headache out of what delicious should have done right in the first place.
ReplyDeleteThanks, Christian. Happy to hear you found it useful.
ReplyDelete