I’m looking for some guidance on how to replace requests for a specific javascript file with another file that I’ll package with the Firefox addon.
I’m looking for some guidance on how to replace requests for a specific javascript
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See How can I implement a content converter in Firefox for all page elements? (its scope is much wider than what you really need — read on) on how to use
registerFactoryto register a surrogate HTTP protocol handler, which can then instantiate channels with alternate (e.g.file:///...-type) URIs whennewChannelis called with your particualr script’s URI.