Archive for the greasemonkey Tag

Hack: del.icio.us tags for the current URL Greasemonkey user script

Thursday, February 14th, 2008

A few days ago, Chris Heilmann posted JavaScript on his blog for obtaining the del.icio.us tags for the current URL (Retrieving del.icio.us tags for the current URL with JavaScript).

I don’t use del.icio.us but I know that a lot of other people do … so being able to see the tags that del.icio.us users have assigned to pages that I visit seemed like an interesting proposition, so I made a note to try greasing his script. I didn’t have a chance to try until last night, but I got it going.

Here’s a screenshot of Wolfram Mathworld with the list of del.icio.us tags in the box at center-top:

Screenshot of del.icio.us tags for Wolfram Mathworld.

Here’s the user script: gm-deliciousinfo.user.js

Again, the idea and the implementation is Chris Heilmann’s. I just converted his script into a Greasemonkey user script. I’m not going to be developing this any further myself but, if you take it for a spin, I hope that you get as much of a kick out of it as I did.

Note: I needed to use unsafeWindow in the user script and, by default, it’s set to trigger on any URL (@include *). By all accounts, this is not particularly safe.