Skip to main content

Playing with Greasemonkey

I've been aware of Greasemonkey for a while now but only really had a look at hacking with it this morning and seem to have lost several hours!!! All good fun though.

For those who don't know: "Greasemonkey is a Firefox extension which lets you to add bits of DHTML ('user scripts') to any web page to change its behavior."

Check it out and if you aren't using Firefox (why not??????) get it here. It's my favourite browser of all time and its free!!!

Any how, my first Greasemonkey script (such that it is) that does anything remotely useful is:

Audioscrobbler Refresher

The explanation of what it does is longer than the script itself. And what it does is refresh the audioscrobbler user pages every 3 minutes. So if like me you like to have you audioscrobbler user page open to keep track of your recent tracks and stats but wish you didn't have to keep clicking refresh on you browser well, .... er, now you don't.

If you listen to a lot of short punk songs you may want to reduce the refresh interval. Likewise if 12 minute prog rock epics are your thing you might want to extend the interval somewhat. 3 minutes works pretty well for me!

This really is a very simple script and in fact its only the 'include' tags that stop it being a general page reloader in fact! But, its my first look and my knowledge of the DOM is a little rusty!

Comments

Anonymous said…
yep, I've heard interesting things about it, but not had the time to play with it. My knowledge of DHTML is pretty limited though to I'dd have quite a learning curve going on.

Popular posts from this blog

The Art of the state

A few weeks back I was working with the dev team at WGC on some interface design for our product prototype. We came across a point at which we have to give the user the ability to indicate their desire to save a current state. As we discussed the various ways in which we could visually indicate a 'save' action button, I realized that as a whole the industry has settled on the image of a 'floppy disc' such as this: Now in this day and age the floppy disk is an anachronism - have any of the myspace generation even ever seen one? It is certainly a few years since the average family PC came with a floppy drive as standard equipment and an online life requires little in the way of tangible media. - and yet the iconography persists. The more I thought about this however, the more I came to think that if we needed to provide a user action which is exemplified by an outmoded concept, then maybe we should rethink our interface and indeed application architecture at a deeper lev...

Silicon Valley and Everywhere else

It has been an interesting month with a lot of exciting work with a lot of smart people taking up my time. I've had my head down and been doing some serious graft and hadn't really noticed the minor details like the fact that I'd bounced between three continents , changed my time zone 8 times and taken eating out with all meals accompanied by technical debate and napkin sketching to be the normal way to consume sustenance. Then last week I had a reality check when I suddenly realized I was in fact doing for a living something I dreamed of as a kid. So, what prompted this moment of clarity? Well, I looked up and found myself hurtling down the 101 between Burlingame and Palo Alto in Silicon Valley in the back of a rented mini-van, MacBook balanced on my knee , hacking some last bits of code together for a product demo I was about to deliver at Stanford University ! Now I may have been doing the relatively easy job from the technical point of view of getting the Rails co...

bmedia Presentation materials and links

Thanks to everyone for being such an engaging audience last night - it was a pleasure to talk to you all. If any one has any questions or wants to argue against anything I said feel free to email me or post a comment here. You won't offend me by disagreeing with anything I said, I welcome debate and am not too proud to surrender to a well reasoned argument - debate helps us all understand better. As always with these things there are points I realize I should have made and other things I realize I should have expanded upon but time is always such a limited commodity. If any one can make it to the next Leeds open coffee we can talk further. Thanks for some really interesting questions and conversations after the presentation. As promised, the presentation (as a PDF) can be download from here : Also, below is the reading list I recommend and also the list of Web 2.0 apps that are worth taking a look at to see if they can help you in your business. If you find any others you like, pl...