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...

Pro-ams, Prosumers and Innovation

As a team, Technology Research has been paying a great deal of attention to the importance of the end user in the process of innovation and development. We have witnessed over the last couple of years how companies and organizations such as Amazon and Google have benefited by opening up their innovation process to amateur enthusiasts and how others such as Flickr who have made Web Services API's available for experimentation have added value to their product through enhanced capability, flexibility and functionality developed by third parties . And there are many, many other examples. In concept the hacking, adaption or customization of software is not new. The home computers of the early 1980's practically demanded end-user programming, computer Games 'modding' has been around almost as long as computer games have and the definitive open-source example of Linux shows what can become of enthusiast lead development. What is new is the fact that smart organization...

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...