This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

Is there a way to force Firefox 4 to offer to remember and to remember user ids and passwords for sites that use the autocomplete mechanism to block such offers and rememberings?

  • 53 replies
  • 191 have this problem
  • 4 views
  • Last reply by tepa25

more options

locked by a moderator on 2-7-2012 - has outlived its usefulness

In Firefox 3.6.16 (and presumably other earlier versions) one could force FF to offer to remember user ids and passwords for many sites by editing the file ...\Mozilla Firefox\components \nsLoginManager.js to ignore site- requested autocomplete disabling (_isAutocompleteDisabled returns false).

FireFox 4 does not use that file or any similar that I was able to find.

Can the result (FF ignores site attemps to turn off autocomplete) be achieved in some other way or by editing some other file?

''locked by a moderator on 2-7-2012 - has outlived its usefulness'' In Firefox 3.6.16 (and presumably other earlier versions) one could force FF to offer to remember user ids and passwords for many sites by editing the file ...\Mozilla Firefox\components \nsLoginManager.js to ignore site- requested autocomplete disabling (_isAutocompleteDisabled returns false). FireFox 4 does not use that file or any similar that I was able to find. Can the result (FF ignores site attemps to turn off autocomplete) be achieved in some other way or by editing some other file?

Modified by the-edmeister

Chosen solution

This bookmarklet makes the browser ignore autocomplete="off" temporarily, allowing you to save passwords even on sites that use autocomplete="off".

Remember Password bookmarklet:
https://www.squarefree.com/bookmarklets/forms.html#remember_password

Read this answer in context 👍 6

All Replies (20)

more options

Chosen Solution

This bookmarklet makes the browser ignore autocomplete="off" temporarily, allowing you to save passwords even on sites that use autocomplete="off".

Remember Password bookmarklet:
https://www.squarefree.com/bookmarklets/forms.html#remember_password

more options

I’ve re-compiled the ‘omni.jar’ with a modified ‘nsLoginManager.js’ file and now it works for me. If you want I can send you the file, so you will be able to replace it with the original one.

more options

Thanks, I think.

Actually, I don't understand your reply. I don't know what 'omni.jar' is [other than a java archive file named omni], I don't know what you mean about re-compiling one file WITH another [as what?]. And I don't even know for sure that you are working on FF 4, which uses no 'nsLoginManager.js' file. So there is nothing to replace with [not vice versa] what you might send.

So I think I'll pass, but thanks anyway.

more options

The ‘nsLoginManager.js’ file is located inside the ‘omni.jar’ file. Starting FF4 they have combined all the files into one file. You can find the file under your “C:\Program Files\Mozilla Firefox” folder, and you can view it with Winzip/Winrar etc…the ‘nsLoginManager.js’ is found under the ‘components’ folder.

more options

Ah! I see. Yes, I would be grateful if you would send a copy of your modified omni.jar. Now that I see what's going on I'm going to try to do it myself, but a standard for comparison would be useful if not indispensible.

Thanks.


ral@raleeper.com

Modified by ral

more options

Alon...I would also like a copy of the modified omni.jar file.

Thanks, jeffs246@yahoo.com

more options

Thank you!

ral

more options

Hi, Alon, please send a copy of your modified omni.jar. Thanks! smile100h@inbox.com

more options

Hey Alon,

I would love to also get a copy of that recomplied omni file. Could you send it to me at b727pilot (at) gmail (dot) com.

Thanks!!

more options

Hey Alon,

I would love to also get a copy of that recomplied omni file. Could you send it to me at b727pilot (at) gmail (dot) com.

Thanks!!

more options

I modified the file according to this site http://www.onkarjoshi.com/blog/117/force-firefox-to-save-password-even-if-autocomplete-is-disabled/ (with the exception that the file is now located within the omni.jar archive) however it is still not offering to remember passwords. So I must have done something wrong... Can I get in on this file as well? Will you be posting it somewhere that we can download it?

Modified by derick03

more options

Can I get a copy of the file also? jtashmore@comcast.net

more options

Problems, problems.

Alon did the recompile. He has the file. I have it too, courtesy of Alon, but I'm not going to do anything with it until I have done my own unjar/edit/rejar. Therein the problems.

I had thought the unjar/edit/rejar [extract/edit/recompress as jar] process would be simple, but 1. 7-zip won't extract, and 2. winrar [which allegedly will] won't download.

[Later]

Renaming omni.jar as omni.zip works for Alon's file, but not for the Mozilla Firefox 4 file, so that's another mystery.

Any thoughts would be appreciated [but don't ask me to use Sun's Java SDK, please].

Modified by ral

more options

Maybe clicking the direct link to the download for winrar will help you? Here it is: http://www.win-rar.com/website/index.php?id=postdownload&L=0 (Just give it a couple seconds and it should prompt you to download a file.)

I was able to extract the files with winrar, edit the nsLoginManager.js file with Notepad++ and recompress the omni folder back to a .jar file using Izarc (freeware compression utility similar to 7zip). However, my edit to the file apparently isn't working even though it looks the exact same as the screenshot and directions found here: http://www.onkarjoshi.com/blog/117/force-firefox-to-save-password-even-if-autocomplete-is-disabled/ . Firefox still does not prompt me to remember passwords for sites that used to in Firefox 3.6 (having edited the nsLoginManager.js file back then too). So... I'm not sure why it isn't working.

I mostly want to get a hold of Alon's version of the file so that I can compare the two of them and see what I did wrong. If you plan on sending it out or posting it for download somewhere please let me know. Thanks!!!

Modified by derick03

more options

Progress.

Winrar support said I should disable antivirus. With some trepidation I did that, downloaded and installed with no apparent problems.

I extracted the Omni.jar file from Firefox 4 using Winrar and loaded that nsLoginManager.js file and compared it with the file extracted from Alon's omni.jar using 7-zip [by renaming to omni,zip].

The files match except that where the original has

    * _isAutoCompleteDisabled
    *
    * Returns true if the page requests autocomplete be disabled for the
    * specified form input.
    */
   _isAutocompleteDisabled :  function (element) {
       if (element && element.hasAttribute("autocomplete") &&
           element.getAttribute("autocomplete").toLowerCase() == "off")
           return true;
       return false;
   },

Alon has changed the 9th line to " return false;"

(That's probably the simplest way to accomplish the desired result, rather than commenting out lines 7-9 as I had done in FF 3.6).

Now I have 3 remaining issues:

1. Why will 7-zip extract Alon's omni.jar (via renaming to omni.zip), but not Mozilla's (and does it matter)? 2. Getting the files, with the edited nsLog... file, recompressed to a new omni.jar, and 3. Will it work?

I'll report further developments.

Modified by ral

more options

1. @derick03: Thanks. I have downloaded Izarc, but not used it yet.

         line separator.

2. When I said "The files match except..." I meant the extracted nsLoginManager.js files. But the omni.jar files, Mozilla's and Alon's, do NOT otherwise match.

G:\PROG\!B422MOZ\

OMNI.JAR 4199903 03/18/11 Mozilla

   line separator.

OMNIA.JAR 4240790 04/22/11 Alon

Modified by ral

more options

There are other problems with Firefox 4 logins that the edit of nsLoginManager.js won't fix:

  line separator.

1. Previously remembered passwords are not supplied for some sites.

  line separator.

1. Previously remembered user ids are not supplied for some sites.

  line separator.

I'm going back to 3.6.16.

Thanks to the forum for a great service.

more options

Alon,

Please send a modified omni.jar to me at ee_davidson(at)yahoo(dot)com. Thank you, kindly.

more options

I’ve sent the file to all of you…(derick03 – I don’t have your email address, so if you want the file just post it).

ralatmoz – the original Mozilla JAR file is optimized and that’s why its not working for you. I don’t know how Mozilla complied it (and I don’t have the libraries or the meta header file), so if you go the regular way (extract > modify > compress) using any WINRAR (and lookalike) software, it will not work. I had to re-build the entire file (and folders) using Eclipse…the trick is to get Mozilla to be able to work with the file, as I’ve done several tries to get it to work.

What do you want to do change? (maybe I can help you in creating the file you need)

  1. 1
  2. 2
  3. 3