FireFox addon to redefine javascript variables

  • Status Closed
  • Budget N/A
  • Total Bids 5

Project Description

Your goal is to make a firefox addon (XPI extension).

The extension will work on as many firefox versions as possible.

The extension will replace some javascript variables if found on the visited page, as explained in the following example:


the visited page may have the following html code:

<div>line 1</div>


<script src=[url removed, login to view]></script>

<div>line 3</div>


<script src=[url removed, login to view]></script>

<div>line 5</div>


<script src=[url removed, login to view]></script>

As you can see, the variable myColor is reused several times, and each time it is redefined, an external javascript is called. In that external javascript, there is only one line of code, which uses the variable: [url removed, login to view]('color is '+myColor);

Thus output rendered in FireFox browser of this webpage without the extension is:

Line 1

color is orange

Line 3

color green

Line 5

color is purple

The extension will watch all pages visited by the user, and if it detects there is some javascript with defines variable 'myColor' (simplified regex match for [url removed, login to view] is sufficient), it will make the value uppercase. Thus, the webpage rendered in FireFox with the extension will look like this to the user:

Line 1

color is ORANGE

Line 3

color is GREEN

Line 5

color is PURPLE

Get free quotes for a project like this
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online