Chris Pollett > Students >

    ( Print View )


    [Project Blog]

    [CS297 Proposal]







    [CS 297 Report- PDF]

    [CS298 Proposal]

    [CS 298 Project Report- PDF]

    [CS 298 Final Presentation- PDF]


Deliverable 2

A Simple Fire Fox Extension

Deliverable: Making a simple fire fox extension.

With a Status bar "Hello,World" message display.

Adding a "hello-menu" menu pop up with menu items labeled and when clicked gives alert messages.

Adding a new menu pop up to the tools menu after a particular menu item and to have separator line.

Screen Shots

Fire Fox Extension

Fire Fox Extension


<?xml version="1.0"?>

<RDF xmlns=""

  <Description about="urn:mozilla:install-manifest">
    <!-- Target Application this extension can install into, 
         with minimum and maximum supported versions. --> 
    <!-- Front End MetaData -->
    <em:description>hello world extension.</em:description>


2.Chrome manifest

content     sample    chrome/content/
overlay chrome://browser/content/browser.xul chrome://sample/content/sample.xul

3.XUL Code Block

<?xml version="1.0"?>

<overlay id="sample" 

<script type="application/x-javascript"
    src="chrome://sample/content/sample.js" />
 <statusbar id="status-bar">
  <statusbarpanel id="my-panel" label="Hello, World"  />
 <menubar id="main-menubar">
    <menu id="hello-menu" label="Hello-World!" insertafter="helpMenu">
           <menuitem label="Hello!" oncommand="window.alert('Hello Keerthi');" />
           <menuitem label="World!" oncommand="window.alert('Its Keerthis World');" />
           <menuitem label="Day!" tooltiptext="" oncommand="window.alert('Have A Wonderful Day in This World');" />
           <menuitem label="ToDay!" tooltiptext="" oncommand="window.alert('Today Is  '+displayDay());" />
           <menuitem label="Time!" tooltiptext="" oncommand="window.alert('Time Now '+displayTime());" />
<menupopup id="goPopup">         
         <menuitem label = "World History" oncommand="window.alert('');"/>
  <menupopup id="menu_ToolsPopup">
    <menu id="tools-menu" label="New Tool"
        <menuitem label = "World Tool" oncommand="window.alert('A Tool? To Fix This World!');"/>