Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 3 replies
  • 4 have this problem
  • 5 views
  • Last reply by 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?

Chosen solution

All Replies (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

Chosen Solution

You can look at /questions/799489