Reputation: 9465
I am new to extension development. My requirement is to create a simple extension which modifies some response headers and adds some new headers to the http response. I was looking through some addons like redisposition and inline disposition. The former one does the same job without using xpcom and the later one uses xpcom. Also the former one has xul (gui) components too. Now, is it possible to modify the response if extension has no overlay (gui components).
Upvotes: 0
Views: 302
Reputation: 33192
You don't need a GUI.
There are several ways to get your code running:
ReDisposition
(The GUI parts there are not required) and register from your bootstrap.js
.main.js
.profile-after-change
(run at startup, basically) and register once the component gets loaded.Anyway, in the end, you'll need to register and observe http-examine-response
and friends, no matter what method you use, or what
See MDN for more documentation (and the firefox-addon wiki).
Other than that, your question is too broad to tell you something less general.
Upvotes: 1