Monthly Archives: November 2011

Creating Firefox Extension

In this post, I would like to explain about creating an add-on(Extension) to Firefox. Let’s take a look at some of the terms.

Extensions add new functionality to Mozilla applications such as Firefox, SeaMonkey and Thunderbird. They can add anything from a toolbar button to a completely new feature. They allow the application to be customized to fit the personal needs of each user if they need additional features, while keeping the applications small to download. Extensions are different from plugins, which help the browser display specific content like playing multimedia files. Since plug-ins and extensions both increase the utility of the original application.[1]  Mozilla uses the term “add-on” as an inclusive category of augmentation modules that consists of plug-ins, themes, and search engines. [2]

Are you ready to create an extension? Let’s see the procedure.

Steps required to build a very basic extension – one which adds a status bar panel to the Firefox browser containing the text “Hello, World!”

Step 1) Set up the development environment. It can be set up anywhere in the hard disc.  The directory structure should look like this:

– My_dev_folder
            – chrome              
                    – content                                              


Step 2) Open the file install.rdf  and paste the following code snippet

<?xml version="2.0"?>

<RDF xmlns=""

&amp;lt;Description about="urn:mozilla:install-manifest"&amp;gt;

&amp;lt;!-- Target Application this extension can install into,
with minimum and maximum supported versions. --&amp;gt;
20a-464f-9b0e-13a3a9e97384}<!--<span class="hiddenSpellError"
<em:minVersion>1.5<!--<span class="hiddenSpellError" pre=""-->
<em:maxVersion>4.0.*<!--<span class="hiddenSpellError" pre=""-->
<!--<span class="hiddenSpellError" pre=""-->em:targetApplication>

&lt;!-- Front End MetaData --&gt;
<em:name>sample<!--<span class="hiddenSpellError" pre=""-->em:name>
<em:description>A test extension<!--<span class="hiddenSpellError"
<em:creator>Sowmya Ravidas
<span class="hiddenSpellError" pre=""-->em:homepageURL>

Step 3) open another file browser.xul in content folder and copy the following code snippet.

xml version="1.0"?>
&lt;overlay id="sample"xmlns="<a title="Linkification:"
<statusbar id="<strong>status-bar</strong>">
<statusbarpanel id="my-panel" label="Hello, World"  />

Step 4) open the file chrome.manifest and copy the following code snippet

<pre>content     sample    chrome/content/
overlay <a title="chrome://browser/content/browser.xul"
rel="external" target="_blank">chrome://browser/content/browser.xul
</a> <a title="chrome://sample/content/sample.xul" rel="external"

Step 5) Now, locate your profile folder. If you don’t have a profile,  add one.
command: firefox -no-remote -P (ubuntu)
Step 6) In you profile folder, open extensions and create a file. The file name and id name should be same. Here, Paste the path of your extension folder in this file. i.e, /home/my_dev_folder/
step 7)  Zip the contents in the development folder.
command: zip -r sample.xpi *
Step 8 ) Open a new window in your profile. Drag n drop this zipped file. Install the add-on and restart.

You can see the Hello World on the right side of your window. 🙂




             Greetings from InCTF!

Yet again, Amrita University & TIFAC CORE proudly present InCTF ’12, National Level “Capture the Flag

” style Ethical Hacking contest.

InCTF’12 is from November to January 2012 and is focused exclusively on the student community. You can participate from your own university and no travel is required. No prior exposure or experience in cyber security needed to participate.

Prerequisite to participate is familiarity with any programming language. Working knowledge of Linux is highly desirable but not necessary; learn essential skills as you participate!!!

We help you learn if you get stuck!!

What you need to do?
1. Form a team (max five members from your college)
2. Approach a faculty/mentor and request him/her to mentor your team

3. Register online at

Great Rewards!

25K The winning team receives a cash prize of Rs. 25000/-
20K The first runner-up team receives a cash prize of Rs. 20000/-

10 K

5 K
The second runners-up team receives a cash prize of Rs. 15000/-

The third runner-up team receives a cash prize of up to Rs. 10000/-

The fourth runner -up team receives a cash prize of up to Rs. 5000/-

Special Prizes*

  • Teams are awarded prizes based on their performance
  • Deserving teams are well awarded. Exciting prizes to be won.

So, what are you waiting for? – It’s simple Register, Learn, Hack!

Keep up with us
Website  | Email | Facebook  | Twitter 

*Cash prizes are subject to their performance and participation in the CTF round. Only teams who connect to the VPN server and successfully gain points in the CTF round are eligible for prizes. In addition, cash prize winners of InCTF ’11 are not eligible for prizes in InCTF ’12.

InCTF Team