Firefox Extension Launch When Firefox Launches

I wrote a firefox extension to handle responses and requests. Now it is activated by pressing the menu button. I want the extension to start when Firefox loads. Is it possible? Ideally, the only interface I want / should have is inside the add-in manager (disable / remove)

thank

+3
source share
1 answer

First register the overlay on browser.xulin the manifest file:

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

Then include JavaScript in yours sample.xul. This JavaScript should attach an event handler to the window onload. This will fire every time a new browser window opens and your code runs.

, , , XPCOM, profile-after-change, , , , .

+1

All Articles