Friday, February 23, 2007

Making a Firefox extension

This section explains how to basically setup a Firefox extension.

Setting up the development Environment
Before jumping into making extensions, we must set up a development environment.

  • Download and install firefox: If you haven't already done so. Download firefox and install. (Link is given on right bottom)

  • Make a folder where you are going to make your Extension. Eg: D:\extension\helloworld\

Making the files

<?xml version="1.0"?>
<RDF xmlns=""

<Description about="urn:mozilla:install-manifest">

<!-- Just an unique id of the form of an email address, need (should) not be any mail address -->
<em:name>Hello World </em:name>
<!-- Name of the extension -->
<!-- Version -->
<em:description>Hello World Sample Extension from</em:description>
<!-- Description -->
<!--Editor name-->
<!-- optional items -->
<em:contributor>A person who helped you</em:contributor>
<em:contributor>Another one</em:contributor>

<!-- Firefox -->




Finally Packaging your skin
If you are familiar with Firefox, extensions are packaged in .xpi files. XPI files are compressed files and can be extracted with archiving programs like WinZip, WinRAR etc after renaming it to .ZIP .