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

Rhombus live video

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

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.

OpenCoffee

The first Huddersfield OpenCoffee got off to a cracking start with 34 people passing through the event and a max concurrent attendance of 26. We plan to repeat the meet up on the Second Wednesday of every month. It was a great mix of Entrepreneurs, Engineers, designers, Investors, Legal peeps, and RIA types - a perfect mix. I managed to get around and talk to quite a few people but by no means all, but there were many active conversations happening.