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

Wake for myPod - consumer electronic bereavement

myPod is dead;-( So, never been a Apple fetishist, the endless PC vs. Mac debate bores the tits off me, much in the same way as the C64 vs. Spectrum arguments with the inherent ridiculous diatribes about the relative merits of PEEKing and POKEing against endless CHR$ing wasted many an hour of my youth. I’ve use both Mac and PC in my time and get on with them both. I have a couple of old Performa’s and an LCIIin my loft (though these are skip rescues rather than purchases), but all my machines are PC based, now mostly XP save for a Linux Tosh Laptop. I gotta say all in all I prefer the nuts and bolts of the PC format and do tend towards thinking Apple lean in a little into the form over function. But still, I was happy with myPod. I bought my wife an iPod for Christmas 2003 and after playing with it for a month bought one for myself, overriding my first digital player choice of the Zen. Although part of this was because I kinda like iTunes and partly because I’d ended up encod...