Redirecting Request (nsiHttpChannel?) in Firefox Extensions
We can do this by overriding the nsiHttpChannel with a new one, doing this is slightly complicated but luckily the add-on https-everywhere implements this to force a https connection. https-everywhere‘s source code is available here Most of the code needed for this is in the files [IO Util.js] [ChannelReplacement.js] We can work with the above … Read more