Tuesday, July 08, 2008

Installing the “Copy as Plain Text” add-in in Firefox 3

I’ve installed Firefox 3 over Firefox 2 and it’s been a big improvement in performance and UI experience.  But it doesn’t work with all of the add-on extensions that are available for Firefox 2.  There are some nice extensions that were written for Firefox 2 that have not been updated for Firefox 3.  One that I use a lot is the “Copy Plain Text” add-in, written by Jeremy Gillick.  This extension provides a "Copy as Plain Text" option so that you can copy text from a page and have the formatting stripped out.

The problem is that Jeremy hasn't released a version that will run under Firefox 3.  When Firefox installs an add-on extension, it checks the version of the extension and prevents older extensions from being installed.  While this is a good thing in preventing extensions that broke with Firefox 3, it's an annoyance for the ones that work just fine.  I'm not sure what happened Jeremy Gillick, but appears that he has abandoned his simple, but cool extension.

While reading the comments left on the add-on page, I saw that a user named "ervee" (eRVee Moskovic , and that is how he capitalizes it.) had patched "Copy Plain Text" so that it will install with Firefox 3.  It appears that he changed a single line in the install.js file that was bundled in the extension from the line that contained

const gVersion = "0.3.3";
to
const gVersion = "0.3.3b";

And that single letter "b" is all that was needed to allow Firefox 3 to install this extension.

Ervee posted his modified extension as http://ervee.moskovic.org/copy_plain_text/copy_plain_text-0.3.3b-fx+mz+tb.xpi

If you download his modified version of the extension, you have to tell Firefox 3 how to install it.  Save the extension to a local folder, then open the fire from within Firefox 3 by selecting "Open File" from the "File" menu.  You will then be prompted with the Software Installation dialog. Click install and then restart Firefox when prompted.

An alternative method (documented here) would be to open the "Add-ons" dialog by selecting "Add-ons" from the "Tools" menu.  Once that dialog has opened, minimize the main form and drag the extension file to the dialog. You will then be prompted with the Software Installation dialog. Click install and then restart Firefox when prompted.

Either way should work, I did the former and the extension is working just fine with Firefox 3.  Thanks "ervee"!

1 comment:

  1. Thanks for this. Just got it installed in Firefox 3.1 Beta 2.

    ReplyDelete

Note: Only a member of this blog may post a comment.