One of the bad things about upgrading to a new Firefox major version is that inevitably, some of your favourite extensions won’t be modified to work with the new version. And with Firefox extensions being so awesome (and arguably crucial to Firefox’s success)…
But, thankfully, it’s not too difficult to hack the extension files to make your extensions work with the new version.
Before I begin – this process could make your extension (and maybe your Firefox profile too) not work – so do it at your own risk! Having said that, starting Firefox in Safe Mode and uninstalling the culprit extension usually fixes any extension issues that may arise.
I’ll be using BoxCheck for this tutorial.
Downloading your extension without installing it
First of all, we need to get a copy of the .xpi extension file without installing it. You could use a browser other than Firefox, but the easiest way is to just right-click the extension download link and choose Save Target As…. Save the file anywhere.
Unzip and go!
So, with that in mind, just rename the file’s extension from .xpi to .zip and unzip it using your favourite program (Windows us
a new folder (not the one you’re currently in, you’ll get confused).
Enter this new folder and open the install.rdf file in your favourite text editor.
Find the snippet of code including these lines.
What these lines do is instruct Firefox what the minimum and maximum versions of Firefox this extension is guaranteed to work with. Change the maxVersion line to read 2.*. This will make the extension work with any Firefox in the 2.x series.
Zip it back up
Save and close the file. Now, we need to zip the archive back up. Make a Zip archive of the contents of the folder. It is important that you don’t zip up the folder you extracted to, only the contents of the folder you extracted to.
Now, rename your new .zip file to something useful with the .xpi extension, like boxcheck_ff2.xpi.
Launch Firefox if it’s not already open, and open the Tools > Add-ons window. Go to the Extensions tab. Drag the new .xpi file from your file manager into the Add-ons window.
A standard installation dialogue should appear. Install your extension, restart Firefox and enjoy!
One last reminder…
Just to reiterate, hacking extensions in this way is unsupported and isn’t a particularly good idea. Always check for updates to your Add-ons first to see if the developers have released a Firefox 2.0-compatible version. Failing that, you can use this method, but again, at your own risk.
Don’t come to me if it eats your dog, cat, other pets, first born child and Firefox profile.
And sorry for the recent lack of posts, I’ve been not too well recently. I’m much better now though, and you can expect normal service to be resumed!