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.

Email address purity and Netiquette

As with many people who have been using the Internet for some time I have many, many email addresses; ISP pops, web mail etc as well as the addresses I maintain for the domain names I own. Some of the addresses I've had for many years and of these most I no longer use in earnest - often due to the shear volume of spam. Many of these addresses are purpose specific - I have addresses for each band I run and for my 'record label' etc. A couple of years ago I set up a new domain and associated email addresses (all of which I access via forwarding to Gmail) and knowing how SPAM works I have made every effort to maintain the purity of my in-box. This is something I had managed to do with some success until about a month ago. Now the trickle of SPAM has turned into a torrent and I can trace the event that triggered it. One of the music promoters I have worked with had my private email address a while back as I was away from the net for a few days while we were finalising the detai