X
點擊此處開啟此網站的行動版。

技術支援討論區

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?

ral
已張貼

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?

由 the-edmeister 於 修改

被選擇的解決方法

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

從原來的回覆中察看解決方案 6

額外的系統細節

已安裝的外掛程式

  • Adobe PDF Plug-In For Firefox and Netscape 8.2.6
  • getplusplusadobe162100
  • Default Plug-in
  • Adobe Acrobat Plug-In Version 5.10 for Netscape
  • Shockwave Flash 10.2 r153
  • CANON iMAGE GATEWAY Album Plugin Utility Module
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • Npdsplay dll
  • DRM Store Netscape Plugin
  • DRM Netscape Network Object

應用程式

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16

更多資訊

the-edmeister
  • Top 25 Contributor
  • Moderator
5397 個解決方法 40140 個答案

選擇的解決方法

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

This bookmarklet makes the browser ignore autocomplete="off" temporarily, allowing you to save passwords even on sites that use autocomplete="off". Remember Password bookmarklet: <br /> https://www.squarefree.com/bookmarklets/forms.html#remember_password
Alon 0 個解決方法 9 個答案

有幫助的回覆

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.

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.

提出問題者

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.

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.
Alon 0 個解決方法 9 個答案

有幫助的回覆

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.

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.

提出問題者

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

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

由 ral 於 修改

jeffs246 0 個解決方法 1 個答案

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

Thanks, jeffs246@yahoo.com

Alon...I would also like a copy of the modified omni.jar file. Thanks, jeffs246@yahoo.com
Alon 0 個解決方法 9 個答案

Done...

Done...

提出問題者

Thank you!

ral

Thank you! ral
smile100h 0 個解決方法 1 個答案

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

Hi, Alon, please send a copy of your modified omni.jar. Thanks! smile100h@inbox.com
b727pilot 0 個解決方法 2 個答案

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!!

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!!
b727pilot 0 個解決方法 2 個答案

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!!

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!!
derick03 0 個解決方法 2 個答案

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?

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?

由 derick03 於 修改

tashmore 0 個解決方法 1 個答案

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

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

提出問題者

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].

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].

由 ral 於 修改

derick03 0 個解決方法 2 個答案

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!!!

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!!!

由 derick03 於 修改

提出問題者

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.

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.

由 ral 於 修改

提出問題者

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

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

由 ral 於 修改

提出問題者

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.

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.
EvanD 0 個解決方法 1 個答案

Alon,

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

Alon, Please send a modified omni.jar to me at ee_davidson(at)yahoo(dot)com. Thank you, kindly.
Alon 0 個解決方法 9 個答案

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)

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)