Greasemonkey: My favorite Firefox extension.

Get it now from Mozdev. You will not be disappointed.

I’ll let Mozdev explain what it does:

In case you aren’t a techie, that boils down to this: You can execute arbitrary JavaScript to modify any webpage any way you want. This is especially useful in removing ads even AdBlock can’t touch, but you can also make websites more useful in addition to simply being less annoying. A case in point is the Google Butler, which includes links to other search sites and alters which font is used to display the page.

This is a great webpage for user scripts, the extensions that Greasemonkey hooks into the browser itself. It’s a long list broken down by which website the user script is aimed at, although many of them are general-purpose.

Dive into Greasemonkey isn’t the best introductory work I’ve ever read, but it does help you get your feet wet in writing your own user scripts. It is freely downloadable in HTML and PDF.

If you do want to write your own extensions, you will want this JavaScript shell (implemented as an active bookmark written in JavaScript, a fact cool in and of itself). It actually gives you access to all of the bits on a webpage JavaScript programs can touch. It’s invaluable if you are using this as an excuse to learn JavaScript as well as extension-writing.

(Speaking of extensions, you can compile Greasemonkey user scripts to standalone Firefox extensions. Which is nice because it’s a lot easier to write a user script than a full extension.)

Greasemonkey is generating buzz. Some people dislike the level of control it gives users, apparently, but I think it’s long overdue.

So try it out and have fun.

I salute you!

My favorite was Adblock , especially with a good filter set. It pretty much erases every ad: from pop-ups to banner ads to noisy animated ads.

Now this one is my new toy! I love the Google Maps mouse-wheel zoom-in, the Google box in My Yahoo (my home page), and the one where it always remembers passwords! There’s just so much more to discover here!

I currently use CustomizeGoogle, which is an extension more than a GreaseMonkey script. It is more customizable.

One thing I’ve always wanted to do was download imbedded video files, like trailers, etc. That long list had a user script “unembed” which took care of that!

HubZilla: Thank you for the Customize Google extension. I’ll have to look at it in more detail to determine if it can really replace Google Butler in my personal Firefox installation.

In case anyone is wondering what a user script looks like, here’s one I hacked up in a few minutes to remove ads from thefreedictionary.com:



// ==UserScript==
// @name        TheFreeDictionary Cleaner
// @namespace   tag:havre.mt.us,2005-06-11:Barts
// @description Remove ads from thefreedictionary.com
// @include     http://*.thefreedictionary.com*
// @include     http://thefreedictionary.com*
// ==/UserScript==

var adRegion = document.getElementById('Ov');
if (adRegion) {
   adRegion.parentNode.removeChild(adRegion);
}


It turns out all ads are contained in ‘div’ tags with the id ‘Ov’. Removing those nodes has the effect of removing the ads.

This is about as simple as it gets. It’s a useful extension in four lines of code, counting the extra length added by my formatting. Greasemonkey is an extension writer’s dream.