5
5
How can I make Firefox automatically remember all passwords without prompting?
5
5
How can I make Firefox automatically remember all passwords without prompting?
9
Hacking Firefox to Always Auto Save Password Without Showing Notification Bar:
Replace the entire lines 642 to 711 with the code below:
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
Now whenever you login to any website, Firefox will auto save the site, username and password to the login manager WITHOUT showing the notification bar.
Note: even when you enter the wrong username or password, it will still be saved.
1
For Firefox 4
1
This DOES still work in Firefox 3.6 - 4.0+, it's just not in the same place as shown in the picture.
Using Firefox 4.0:
Edit nsLoginManagerPrompter.js
which is normally located in C:\Program Files\Mozilla Firefox\components\
.
Replace the code from lines 800 - 869 with:
var pwmgr = this._pwmgr; pwmgr.addLogin(aLogin);
Save and replace original file.
Et voila!
Saves passwords and doesn't prompt.
1
It looks like this site here has the answer you are looking for here.
It states that you must have all instances of Firefox closed, navigate to the "C:\Program Files\Mozilla Firefox\components\" directory, open up nsLoginManager.js and comment out lines 112 and 121.
0
On a Mac Firefox 3.6, the edits are made in:
Here's my change complete - which make the end line 854.
var pwmgr = this._pwmgr;
// phil
pwmgr.addLogin(aLogin);
/* phil
var buttons = [
// "Remember" button
{
label: rememberButtonText,
accessKey: rememberButtonAccessKey,
popup: null,
callback: function(aNotificationBar, aButton) {
pwmgr.addLogin(aLogin);
}
},
// "Never for this site" button
{
label: neverButtonText,
accessKey: neverButtonAccessKey,
popup: null,
callback: function(aNotificationBar, aButton) {
pwmgr.setLoginSavingEnabled(aLogin.hostname, false);
}
},
// "Not now" button
{
label: notNowButtonText,
accessKey: notNowButtonAccessKey,
popup: null,
callback: function() { /* NOP * / }
}
];
this._showLoginNotification(aNotifyBox, "password-save",
notificationText, buttons);
*/
},
I kept everything but commented out what I didn't want (/* ... */
), and added the pwmgr.addLogin(aLogin)
line.
0
I know this is ancient question but here is a guide for Firefox 71.0.
First of all we need to extract archive which contains all the password manager JavaScript. It is omni.ja in Firefox main installation directory. To find out how to extract and pack it back look at the official documentation here (you can use latest version of 7-zip to do it).
Once you have it extracted look at these functions and edit them (line number, name). You need basic knowledge of JavaScript for that.
modules/LoginManagerPrompter.jsm
1426 _showSaveLoginDialog
946 promptToSavePassword
422 promptUsernameAndPassword
552 promptPassword
669 promptAuth
modules/LoginManagerParent.jsm
571 async onFormSubmit
When you edit these functions you can repack the file back with command mentioned in documentation (repacking it other way might not work, zip command is for Unix only):
zip -qr9XD omni.ja *
Now every password will get saved even when Firefox is set to ignore certain site.
1@Molly, but that is more of a pain, than dealing with the occasional pop-down notification. – Urda – 2010-02-15T17:19:44.547
8This is one reason why I'm glad it prompts me - so I can wait to say "yes" after I see that the login was correct. – Nathan Long – 2009-11-21T13:16:16.780
if the prompt is about "changing password", did that update it without notifications ? – None – 2009-11-21T14:32:05.183
well, you can always delete wrong user names/passwords from the password manager. – None – 2009-11-21T14:53:25.563