How to make Firefox remember *all* passwords (even when logging to PayPal & Yahoo Mail)
You have maybe noticed, when you log in to PayPal, Yahoo! Mail, Live Mail and some other websites, that Firefox 3 does not give you the option to save the name & password for you, which in certain cases is a nuisance.
The reason? Security. In the forms of these websites, in the field INPUT, the following code appears:
<input autocomplete="off" type="..." ... />
When "autocomplete" is ‘off’, then the browser (quite correctly) does not give the user the option of saving the password for him. For websites, such as PayPal, for example, using which you can transfer small or large sums of money, this is a very wise approach.
On the other hand, in this case, you have to manually type each time your username and/or password, which can be quite annoying (especially if they are very long/secure). If you are using your own computer/laptop, and you think that you do not need that extra bit of security, there is a very easy way to make Firefox 3 to remember the passwords even for these secure websites, which set autocomplete to “off”.
Here’s how:
(The instructions below are for Microsoft Windows XP Professional and Windows XP Home Edition; if you use another operating system (Windows Vista, MacOS X or some of the distributions of Linux), search in an analogical way!)
Step One: Close Firefox browser (if it is open).
Step Two: Navigate to the directory where Firefox is installed, and then open ‘components’ — here is the exact location in Windows XP Professional:
C:\Program Files\Mozilla Firefox\components\
Step Three: Open with Notepad or any other plain text editor the following file:
nsLoginManager.js
Step Four: Find the code:
_isAutocompleteDisabled : function (element) {
if (element && element.hasAttribute("autocomplete") &&
element.getAttribute("autocomplete").toLowerCase() == "off")
return true;
return false;
},
Step Five: Comment in this JavaScript code three lines, as shown below:
_isAutocompleteDisabled : function (element) {
// if (element && element.hasAttribute("autocomplete") &&
// element.getAttribute("autocomplete").toLowerCase() == "off")
// return true;
return false;
},
5) Start Firefox again. Done! :-)
Now, when you login to websites, which do not allow the browser to remember usernames and/or passwords, Firefox will offer you the option to save the data, just like in others, not-so-secure websites!
I hope this tip will be useful for someone, beside me… Enjoy! :-)
____________
Some Notes:
(1) Use at your own risk and responsibility! In the case someone succeeds in stealing online all of your millions, thanks to your saved password and my (in)valuable advices, I declare to be deprived of all responsibility! :-)
(2) I am not sure, what will happen, if you update your version of Firefox (for example, 3.0.0 to 3.0.1). It is possible that the changes in the file will be lost and file will be over-written. But this is not such a big trouble, because if you have already logged in into most of these websites, then the usernames/passwords will remain saved — worst case, if need be, you can just make the change in the nsLoginManager.js file again, after a Firefox update!
(3) I used as base for my article information from this comment — but the user, which has left it, unfortunately, did not leave a name or URL, so I can’t give him/her full credits… :-(
(4) I have tested this method with Firefox 3.0.1 (English-US). For earlier versions of Firefox, I am not sure, if it will work — and anyway, I believe that Firefox 2.0.x had quite a different policy in regard to saving usernames and passwords in forms…
9 comments | View blog reactions


1 August 29th, 2008 at 07:12
MacOS file location for nsLoginManager.js is defaulted to /Applications/Firefox.app/Contents/MacOS/components/
This is for Firefox 3.0.1. You have to right click the firefox app, and choose “Show Package Contents” option to get into the package directories instead of launching the app.
2 September 4th, 2008 at 10:52
another approach would be in the same snipplet to make it “return false”.
3 October 5th, 2008 at 23:57
Your trick worked! Thanks a lot!
4 October 6th, 2008 at 09:45
@Robert:
Thanks for the MacOS X update for the same technique for Firefox! :-)
@J:
I don’t like the ’snippet trick’ (even if I can make it work), as I have to load it manually every time I have to open such a secure site. After I edit nsLoginManager.js, everything becomes automatic!
@Hao:
You’re welcome, glad I helped… :-)
5 October 23rd, 2008 at 13:02
was looking all over FireFox forum for a solution. Thank you very much for sharing. Thank you thank you
6 October 23rd, 2008 at 13:24
You’re welcome, ‘thankfull’! I am glad I’ve helped:)
7 October 27th, 2008 at 16:06
Hello, how can I save passwords and logins but not have Mozilla prompt me each time?
8 October 27th, 2008 at 17:20
Hi, Steve!
Unfortunately, I do not know a way of achieving that in Firefox 3…
If you are using Windows XP, then the Firefox file, which shows the prompt to ’save passwords information bar’:
…is the following:
C:\Program Files\Mozilla Firefox\components\nsLoginManagerPrompter.js
I guess, if one’s good at programming, it would be possible to ‘hack’ this file, and to make the prompt not appear, and Firefox to automatically save all passwords, without prompting the user…
…but I can’t do it, and I do not know of a way of doing this… Sorry! :-(
9 November 19th, 2008 at 23:49
FN worked! Thanks.