I am looking for some recommendations on how to replace requests for a specific javascript file with another file that I will pack with the Firefox addon.
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 the HTTP protocol handlerregisterFactory to register a surrogate , which can then create channels with alternative (e.g., -types) URIs when called with your custom script URI.file:///...newChannel
registerFactory
file:///...
newChannel
Source: https://habr.com/ru/post/1751856/More articles:Iterating properties and arrays of JavaScript objects with .. important when ordering - javascriptpython modules appear outside - pythonBuild OpenCV element type at runtime - c ++Algorithm: finding the largest list item - algorithmHow to do the correct border check for drawing on HTML5 canvas? - javascriptSQL Server, will it be updated, or does it require me to create a new one? - c #How can I get the whole command line? - command-lineAndroid highlights ImageButton onclick - androidNokia Application Distribution - distributionПечать диапазона гиперссылок - vbaAll Articles