Gmail Last.fm Signature Greasemonkey script released
Available from userscripts.org.
This has been knocking around in my head for a while, but I’ve finally got around to doing it: it’s a Greasemonkey script that fetches recently played information from last.fm, injects it into a sig file containing certain tokens (%artist% and %track% for now, example here) and inserts the whole lot as a signature when you start composing a new Gmail message.
It’s pretty classic scratch-itch-ware, in that it does something that I wanted done in a way fairly specific to my needs – there’s no way to input your sigs directly and store on the local machine, for instance, because I wanted it to work across all the computers I use regularly and therefore use a remote sig. Likewise, because I don’t use Gmail’s rich formatting, I haven’t tested it in that context, though I doubt it’ll work there.
I’m setting it loose in the wild in the hope that it’ll prove useful to people other than me, and the missing functionality can get added by people who need it!
First Greasemonkey script, and in fact the first relatively complex Javascript I’ve done for a while. I’m pretty happy with the way it turned out, and learnt a fair bit about JS while doing it. That said, I’m sure that there’s a lot wrong with it to the experienced eye; it is a bit of a collection of hacks ;)
Based on Gmail: Random Signature Remote 1.0 by Stuart Langridge and Gmail HTML Signatures 1.07 by Jerome Dane.