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

Starting afresh

So, this blog seems somewhat sparse for 2010, thats the effect of a mixture my focus being elsewhere and the blogger service altering its range of publishing options and me only just getting around to switching. The blog has now moved to techiedog.blogspot.com . Still ... onwards and upwards.

Rhombus live video

Here is a clip of us playing live on the London leg of G-Fest earlier this month.

Winter Wonderland

The first snow of the season fell here yesterday afternoon. So, I know I'm a 'grown up', but I can't help but get excited by such things. My Dad always said that people loose the wonder and excitement of snow fall once they have to start commuting to work. I'm lucky, if I look at the window and the roads are impassable, I don't have to bother heading off to the office. Thanks to the technology of my trade home working is habitual anyway. Is technology responsible for allowing me to keep a sense of wonder, and enjoy the vagaries of mother nature for what she is, rather than seeing her meteorological mood swings only in terms the effect of my daily grind. Maybe, or maybe I'm just an entry level weather geek! Whatever, come lunchtime I'm off to take Monty the dog out to play in the snow!