Modifying earlier Extensions to work on a more recent Version of Firefox

_________________________________________________________________________________________

Some earlier Firefox extensions, for one reason or another, may have not been updated to work on the latest Version of Firefox.

This is often very frustrating, as one may have found the extension very useful in the past.

Sometimes one can get round this problem oneself in the following manner:

__________________________________________________________________________________________

The key to resolving this question lies in the Program 7-zip.

Please download here

Learnt about 7-zip from a helpful post by Mafia_Penguin here

__________________________________________________________________________________________

The first stage is to download a copy of the .xpi of the Extension one wishes to modify.

There are different ways of doing this.

________________________________________________________________________________________

1. The most elegant perhaps is to use Mr Tech Toolkit.

Go to AMO (Mozilla Add-ons) right click on Add to Firefox and you see the option Archive XPI
Screenshot_-_29_11_2008_,_19_38_02.png - upload images with Picamatic

Once you have set up the Archive folder this is extremely fast and easy to do.
Thank you Mr Tech for this.

You may find on older extensions that the Mr Tech prompt does not appear on the AMO front page,
To remedy this click on See All Versions, the prompt will usually appear there.

_________________________________________________________________________________________

2. Another option is to right click on Add to Firefox and chose the option "save link as"
Screenshot_-_29_11_2008_,_19_46_37.png - Picamatic - upload your images

You will then have the following prompt:
Screenshot_-_29_11_2008_,_19_52_43.png - upload images with Picamatic

_________________________________________________________________________________________

3 A third option is to use Internet Explorer. As it cannot install the .xpi file directly you are offered the option to save the file. In some situations you may find this method convenient. It is not the recommended method.

Screenshot_-_29_11_2008_,_20_03_54.png - Picamatic - upload your images

_________________________________________________________________________________________
_________________________________________________________________________________________

OK so we now have the .xpi

-
-
-

Modifying the .xpi
_________________________________________________________________________________________

Right click on the file and select the following option.
7-zip
Open archive

Screenshot_-_29_11_2008_,_20_17_39.png - Picamatic - upload your images

What 7-zip is doing is helpfully offering us the option to view the files without extracting them.

_________________________________________________________________________________________

What happens next is that 7-zip, again most helpfully, offers us the option to edit the install.rdf file while it is still in the archive.
Select the file (install.rdf) and then Right click on the file and select edit.
It is the install.rdf file that needs to be modified slightly.

Screenshot_-_29_11_2008_,_20_25_01.png - upload images with Picamatic

_________________________________________________________________________________________

Once we go into Edit mode and look through the install.rdf file we will find the following information

Screenshot_-_29_11_2008_,_21_49_15.png - upload images with Picamatic

You can see the line which includes the words maxversion.
This is saying that the file should not be intalled in a higher Version of Firefox than the one mentioned.

This is the information that we need to change.

Modify the text
Here the maxversion reads 2.0.0.*
This could be changed for example to: 3.0.*

Only the integers need changing.

And exit the Edit mode

At this point 7-zip most helpfully gives us the option to update the file in the archive.

Screenshot_-_29_11_2008_,_22_21_22.png - image uploaded to Picamatic

Hit OK

And then close the Archive.

The .xpi file that you have left in front of you will have been modified

So you can now drag and drop it into your Add-ons and see if it works.

If you find there is a problem try re-editing the integer value.

________________________________________________________________________________________

The explanation here may seem rather lengthy, but you will find when you have done this a few times that it can be a really fast process.

________________________________________________________________________________________

So what 7-zip has helpfully allowed us to do is to edit the install.rdf file in situ, and allow us perhaps to continue using an extension that has fallen from grace.

_________________________________________________________________________________________

Thank you 7-zip

________________________________________________________________________________________________

_________________________________________________________________________________________

Another approach to this whole question is to use Nightly Test Tools.
Please see this post by Mafia_Penguin

Using Nightly Tester Tools

_________________________________________________________________________________________