How to redefine function in nsLoginManager.js inside omni.jar
I would like to redefine a function. I find the definition inside omni.jar in the file nsLoginManager.js. If I rename omni.jar to omni.zip, I can see the contents, but if I try to drag an updated nsLoginManager.js to the archive, Windows 7 complains the archive is corrupt. I tried putting an extra copy of nsLoginManager.js into the components directory, but it did not override the other definition.
How can I edit omni.jar to include my new nsLoginManager.js with my updated funtion?
Chosen solution
You can look at /questions/799489
Skaityti atsakymą kartu su kontekstu 👍 0All Replies (3)
Yes, I have successfully extracted the contents already by that exact method. However, I fail when trying to update the modified file in the omni.jar as Windows 7 complains the archive is corrupt. Alternatively, if I make a new .zip for all the files including my modifications, Firefox fails to launch.
The format of the omni.jar is not standard, how can I modify it?
Chosen Solution
You can look at /questions/799489