information sage

musings about the Indian-American experience in the Information Age

19 September 2005
Hacking Extensions to Work with the Latest Version of Firefox

Caution: Use this hack at your own risk! Hacking an extension can cause unpredictable results and may render your installation of Firefox unusable.

Now that we've gotten that out of the way, I can get to the meat of the hack. Each extension has a parameter that determines what version of Firefox it will work with. This "maxversion" parameter is inside the install.rdf file located within the extension.

But you may ask, "Dude, the extension is just a single XPI file. Where's the install.rdf?"

Well, the xpi format is actually a version of the zip file format, so all you do is rename the xpi file to a zip file and then extract the contents to its on folder. Look inside and, voila, you have your install.rdf.

Here are the steps for all you people who like steps:
  1. Download the extension (ending in .xpi) to your computer.
  2. Rename the file to end in .zip.
  3. Extract the contents of the zip file to its own folder.
    I use Winzip to do this.
  4. Within the file install.rdf, edit the maxversion line so that it uses the latest version of Firefox. For example, if the latest version is Firefox 1.5, use the following line:
    <maxversion>1.5</maxversion>
  5. Add the new install.rdf file back into the zip file.
  6. Rename install.rdf back to install.xpi.
  7. Use the new xpi file to install your extension.
Leave a comment here to let me know if it worked worked and the extension you used!


menu

home

archives


September 2005

October 2005

November 2005

February 2006

March 2006

May 2006

August 2006

September 2006

October 2006

January 2007

May 2007

June 2007

categories

India
Bollywood
SciTech

of interest

rss feed
Blogger.com