5 Nov

The first thing that came to my mind was perhaps there is an addon that can do this but I couldn’t find any that can make Firefox auto save password without prompting. After spending nearly two hours researching on how Firefox saves the password, I managed to find a way on how to make Firefox save the login information to the Firefox Saved Passwords manager.
First, I searched some of the important keywords such as “Never for This Site” and “Not Now” on all the files and found that this function is controlled by a few javascript .js files. Then I was more confident in getting this to work since I didn’t have to go through the trouble of downloading the Firefox source code, modify and compile it.
When you submit a form with username and password, it will process the function:
1. _onFormSubmit() in nsLoginManager.js
2. promptToSavePassword in nsLoginManagerPrompter.js
3. _showSaveLoginNotification in nsLoginManagerPrompter.js
4. addLogin in nsLoginManager.js
1. Close Firefox
2. Edit nsLoginManagerPrompter.js with notepad which is normally located in C:\Program Files\Mozilla Firefox\components\
3. Replace the entire line 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. You can access the saved password area by going to Tools > Options > Security and click the Saved Passwords button. There is one possible bug which is even when a user entered the wrong username or password, it will still be saved.
I am calling this a hack instead of customization because it’s not an included feature in Firefox. I had to manually modify one of it’s original core files to make this work. Thinking about this logically, obviously Firefox did not include such feature nor there is an addon for this because they don’t want the world’s favorite browser to turn into a keylogger. Use it with care and think twice before implementing this illegally as it can get you into a lot of trouble!
[tags]firefox, password, login, notification, save[/tags]
: Copying this article to your website is strictly NOT allowed. However, if you like this article, you can use the HTML code below to directly link to this article.
How To Find Hidden Passwords in Firefox Reveal Passwords Hidden Under Asterisks Firefox Updated Tab Auto Opens Whenever You Start Firefox Firefox Don’t Remember Yahoo Mail and Hotmail Password Reset or Recover Firefox Master Password Easily Show The Contents of Password Fields Recover Windows Live Messenger Password and Also Hotmail Password
Have computer technical problems? Get FREE help from Raymond.CC FORUM
Hey guys..i need help..! id doesn’t work i dont know why, notification bar doesn’t appear but the username and pass didn’t save..pls help me!
Firefox 3.6.3
line 835
function _showSaveLoginNotification
Replace with:
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
comment out everything else after till the end of the function.
its doest work to me.
the noticfication still shown
1What i did was google FIREFOX OLD VERSIONS
2Then I downloaded Version 3.5 Exactly
3Then Downloaded Notepad ++
4Then i Edited Deleted lines 642 Through 711
5Make sure the } , Is left on the bottom just like the picture
6And went File Save as.. Used the same File name as the one we edited.
7saved it to my desktop
8Then opened up the Components folder again
9And dragged it into the folder
10Windows Asked if to replace, Clicked yes
And There you go. Have fun Ladys and Gentlemen.
:-)
it doesn’t seem to work in firefox 3.5.9 is their a way to make it work in this version of firefox???
Works great…
Issue now is that when a password is updated a prompt appears asking to update or not … how do I remove this and have it always update to the latest password.
Tnks
Is there any way you can disable that notofication and disable the auto fill in???
I am able to find the 642nd line in the notepad. Plz help..
hi.
how i can use this trick with portable firefox i replaced the lines but it doesnt saves password
hii thanx but the code in the pic is not exactly the same in my file…maybe because of the version of firefox…this is how it looks when i open it with notepad++
// If we didn’t find an existing login, or if the username
// changed, save as a new login.
if (!selectedLogin) {
// add as new
this.log(“New login seen for ” + username +
” @ ” + hostname + ” (” + httpRealm + “)”);
if (notifyBox)
this._showSaveLoginNotification(notifyBox, newLogin);
else
this._pwmgr.addLogin(newLogin);
} else if (password != selectedLogin.password) {
this.log(“Updating password for ” + username +
” @ ” + hostname + ” (” + httpRealm + “)”);
if (notifyBox)
this._showChangeLoginNotification(notifyBox,
selectedLogin, newLogin);
else
this._pwmgr.modifyLogin(selectedLogin, newLogin);
For you guys looking for the mac file.
Go to applications, right click Firefox and select Show Package Contents.
On Contents click on MacOSX, then look for Components.
There you will find “nsLoginManagerPrompter.js”, open with Text Edit.
The program does not number all lines, so you should look for “_showSaveLoginNotification : function (aNotifyBox, aLogin) {” with the command+f function.
Replace the lines below until you see these symbols },
Save the file in Text Edit.
Now you have it. Thanks Raymond, it’s wonderful.
this does not work in Firefox 3.6.3 because the nsLoginManagerPrompter.js lines don’t reach 462
Firefox 3.6.3
line 800 to 869
_showSaveLoginNotification : function (aNotifyBox, aLogin) {
is on line 798
how far do i go ??
For latest version,
delete lines 800-889
Then type in
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
},
@DjLowse
yes also delete those part
Very useful tips…thanks you very much…now there is no annoying save password notification bar
i love u who give this HACK
I couldn’t find the lines. The whole thing in notpad is put together and only has 45 lines.
I don’t know where the lines start or when to end it.
Please help
I’m having trouble with finding the lines. For me in Notepad the lines end at 45. I don’t know how to fix it.
Also I’m not sure when to start when deleting and replacing. I don’t know when to stop.
Please help….
@jessie
use Notepad++ to find and edit the lines,
you can google for it.
don’t use Notepad has already exist in your windows.
@xaram
how about mozilla 3.6.7? i already deleted line 800-889
Then type in
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
},
and delete
_showSaveLoginNotification : function (aNotifyBox, aLogin) {
but still can’t save pass automatically?
Pls I nid help urgently am usin firefox 4. And above….I can’t seem 2 go about it maybe u could email your working file to me pls… Charlesu69@yahoo.com. Thank you
Hello all, Im trying this on my mac and found the code (i think) and successfully stopped the notification from popping up but now it doesn’t save the passwords. I do have “save passwords” clicked in preferences.
I feel like I deleted too much any help is appreciated.