FireFox addon to redefine javascript variables

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

Taidot: Javascript

Näytä lisää: firefox javascript, regex is, regex in c, regex explained, regex example, html code for javascript, regex &, code orange, Regex, firefox, firefox addon, c++ regex, c regex, html javascript example, script src, html regex, javascript text, firefox extension replace javascript, firefox user, javascript write, external javascript domain, addon page, extension found, html div example, firefox browser

Tietoa työnantajasta:
( 67 arvostelua ) Sumperk, Czech Republic

Projektin tunnus: #1695353

5 freelancers are bidding on average $182 for this job


Available to start immediately and finish within 1 day. Best Regards, Zeke

150 $ USD 1 päivässä
(26 arvostelua)

I am a php developer for 10 years. Please check your PMB for my offer. Best Regards

250 $ USD 10 päivässä
(11 arvostelua)

Sir, I can help you.

228 $ USD 14 päivässä
(4 arvostelua)

Custom Software Development - <b><i>Removed by Admin</i></b>

250 $ USD 1 päivässä
(0 arvostelua)

Hello, Lets get started!! Please check PMD.

30 $ USD 1 päivässä
(0 arvostelua)