Remember ALL Firefox Passwords
Ξ April 26th, 2009 | → 0 Comments | ∇ Coding, Geeky, Software |
There are a few websites that really piss me off – in that I cannot get Firefox to remember my username/password on them. Ok, I understand why they’ve taken steps to prevent one from doing so, but, as I’m quite confident that I’ve secured my saved passwords, it pisses me off.
Anyway, here’s how to fix the ‘problem’.
1. Locate Firefox’s installation folder. Normally that’s C:\Program Files\Mozilla Firefox
2. Navigate to the components folder.
3. Open nsLoginManager.js in an editor. As Notepad won’t do really, do this instead [if you've a proper editor, just go to step 4]:
3a) Select Start | Run
3b) Enter cmd <enter or Ok>
3c) type cd C:\Program Files\Mozilla Firefox\components <enter>
3d) type edit nsLoginManager.js <enter>
3e) Go to step 4.
4. Find this:
/*
* _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;
},
5. Change it to this:
/*
* _isAutoCompleteDisabled
*
* Returns true if the page requests autocomplete be disabled for the
* specified form input.
*/
_isAutocompleteDisabled : function (element) {
return false;
},
6. Save the file [if you're following the 3x) steps above, select File | Exit, and when asked if you want to save the edited file, answer Yes. To close the command prompt, enter exit <enter>].
Note that you might first have to change the file’s security permissions to do this [you DO if the save fails]. E.g., in Vista I had to A) right-click on the file [e.g., in Explorer] B) select Properties | Security. B) select Edit. C) select your username, D) change the persmissions to include Write access.
And you’re done – either start, or close/re-start Firefox!
n.b. If you want to know ‘why’ this works, see http://www.w3schools.com/tags/html5_input.asp – then autocomplete, disabled
Basically, by making these changes you’re saying that any element may be ‘auto completed’; so if an input field on a page includes <input autocomplete=”off” … />, when Firefox checks, the field will appear to be marked autocomplete=”on” instead.


