Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How to redefine function in nsLoginManager.js inside omni.jar

  • 3 个回答
  • 4 人有此问题
  • 5 次查看
  • 最后回复者为 cor-el

more options

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?

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?

被采纳的解决方案

所有回复 (3)

more options
more options

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?

more options

选择的解决方案

You can look at /questions/799489