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!
Technorati Tags: firefox, password, login, notification, save
: 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.
Firefox Updated Tab Auto Opens Whenever You Start Firefox Reveal Passwords Hidden Under Asterisks How To Find Hidden Passwords in Firefox Firefox Don’t Remember Yahoo Mail and Hotmail Password Reset or Recover Firefox Master Password Easily Show The Contents of Password Fields Think you can hack? Try2Hack this!
Have computer technical problems? Get FREE help from Raymond.CC FORUM
80 Responses for "Hacking Firefox to Always Auto Save Password Without Showing Notification Bar"
thanks
Now that’s a worthy Tip. Thanks
great
i needed this..
Hey Ray
where to paste the code…i opened nsLoginManagerPrompter.js with notepad
where to paste
pl help..i need this
nice hack ray, thanks for that info
i opened with wordpad..i am able to see and read what u have shown in picture but cannot find 642 line to replace as there is no mentioning of lines
pl help Ray
Nice Bit of Info, Thanks for Sharing Ray..:)
Much useful tip thankyou. Also i wanted to ask that can we suggest you some topics or hacks to find about? Some may be gamming related?
@Gaurav
Ray used Notepad++ to do this, so he could show you the line number…
Nice hack, but now I won’t be very comfy using firefox at cybercafe’s.
Thanks Raymond for this Trick. But i thing this is a very useful feature of Firefox, we should not OFF this. It has allot of benefits.
Specially for me.
Nice tip.
Amazing………. Thanks Ray
While its an interesting tip, I think it will be abused to compromise the security of publicly accessible computers. How about also telling us how to protect ourselves if we want to make sure that some public computer does NOT have our username/password stored.
Raymond, Thanks for sharing with us your knowledge.
I am thinking that maybe you an help me revolve a problem what i have.
Is the following:
Sometimes come to you filmes on dvd without the audio language you want nor the subtitles you would like to read with that filme.
I was trying to add subtitles to a movie on dvd using the VOBEDIT and the IFOEDIT programs but I am not getting good results in the quality of this subtitles, looks loke there is a ‘default’ and the letters always appear on the same format and color, almost impossible to read, I have even tried with the option of ‘copy subtitle colors’ from the original ‘ifo’ and after pasting to the new one but the result is always the same, looks like this have a default and I couldn’t find where to change it.
Thanks for reading this comment.
great work!
love this.. thanks..
thanks ray……..
just hiding such a hack would not make us any less safe
so thanks for sharing this tip
#13, Rob — I was thinking the same thing. I’m no expert, but I’d guess a simple fix is to use portable Firefox on a USB stick.
This should have been better left unknown. No more public computer firefox use for me.
Can you undo the damage by telling us how to easily detect that this has been done?
showSaveLoginNotification : function (aNotifyBox, aLogin) {
Find this in notepad.
#19. Firefox should disseminate a way for system admins to lock down firefox on public computers, so that:
1) Usernames and passwords can be set to never be stored
or to ALWAYS require approval (the opposite of the original post)
and
2) The only way to change this behavior requires an admin password.
and
3) When your password is stored (automatically or otherwise) that fact is prominently displayed on the screen, and you are given an easy method (clickbox) to remove the password.
But this probably won’t happen until some public computers are compromised and after lots of people lose lots of money.
I’ve always felt the default behavior allowing anyone to view stored passwords was a bad design.
Thanks “Ishaan”…i used notepad++ and i was able to do the hack
but still firefox is not saving password
My man! Lately you’ve been on a roll with a BUNCH of very useful tips; easily the most useful that I’ve seen on the net in one place in quite a while.
This one is particularly cool because that box has irritated me for a LONG time. Thanks to you, it’s one less irritation in my life.
Raymond. What seems to be an easier solution is to create bookmark (easly accessible) with following as link:
javascript:(function(){var%20ca,cea,cs,df,dfe,i,j,x,y;function%20n(i,what){return%20i+”%20″+what+((i==1)?”":”s”)}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed%20autocomplete=off%20from%20"+n(ca,"form")+"%20and%20from%20"+n(cea,"form%20element")+",%20and%20removed%20onsubmit%20from%20"+n(cs,"form")+".%20After%20you%20type%20your%20password%20and%20submit%20the%20form,%20the%20browser%20will%20offer%20to%20remember%20your%20password.")})();
Now all you have to do is press this right before you want to log in to some page that doesn't allow to save data. Works for me since ages
i’ve tried it and works great with gmail,facebook,friendster to name afew,., failed to save password to msn, yahoo maybe of the security
I was thinking the same thing. I’m no expert, but I’d guess a simple fix is to use portable Firefox on a USB stick…
wont let me save it
thanks a bunch ive been wanting something like this it totally beats having to hassle with a keylogging program
Do you know of a hack in which the password is stored, but it will not automatically be filled in on a website when the username is entered? I would like to keep an ongoing list of my passwords, but I don’t want to have it automatically enter the password for me. Any Help?
How do I save this in wordpad?? Keeps telling me access to the content is denied. Im pretty sure i did everything else right though!! HELP!
wondering if any similar hacks applicable for google chrome and IE
And for Linux (edubuntu) where i can find the “nsLoginManagerPrompter.js”??
EPIC WIN, TY
guys to show the lines no. use office’s front page
Yikes…!!
.
.
.
.
.
thnx 4 sharing…
wow very cool.does anyone know though if this works for AOL email passwords.
after doing the steps of autosave in firefox ,how would it be possible that the username and the password of the website will be not displayed ??
Thanks for the tip Ray!
I’m running Vista and when trying to save using Wordpad it tells me I can’t save it in that location as I need admin rights(which I have as it’s my home PC…)
Please help, it would be much appreciated.
Whenever I try to save my notepad ++ file, it displays the error message, “please check whether if this file is opened in another program.”
Any help? Thank you in advance!
THANKS!! works a treat
nice feature, but i couldn’t find the page numbers
Hi there, I tried to open nsLoginManagerPrompter.js in notepad as instructed, but it came up as a big block of text. there’s only ~40 lines, so I’m afraid to mess with this. Did any other visitor have this problem? If so, how did you solve it?
Ty:)
@ Gilbert
go to control panel -> user accounts-> turn user account control on or off
Turn it off.
Anyway, it doesn’t work for me.. I’m not any expert, but I’ve done everything by instructions, and nothing
I have notepad++..
I deleted everything from 642 to 711 (including 711), and then i just c/p:
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
What am I doing wrong?
Yay, I’ found the problem!! In my notepad are not lines 642-711, but some others.
It works!!
THANK YOU SOOOO MUCH!!
answer to gilbert’s question. dont just save the program after editing.copy all the program and make a new nsLoginManagerPrompter1.js and remove the earlier nsLoginManagerPrompter.js .
i’m running it on a mac. have changed the file, saved it. now where can i find the saved passwords?
have tried this, however error noticed, the below error when opening prompter, and after the modification the passwords are not saving. please help
—————————
Windows Script Host
—————————
Script: C:\Program Files\Mozilla Firefox\components\nsLoginManagerPrompter.js
Line: 39
Char: 1
Error: Syntax error
Code: 800A03EA
Source: Microsoft JScript compilation error
—————————
OK
—————————
I never though this is going to be this much easy.
will it works in gmail??????????????
I seem to be having the same problem as Mary. My Notepad doesn’t separate the code into “page numbers”. Therefore, I can’t isolate the appropriate pages to replace. Can anyone help with this?
da pra vc postar o download do seu arquivo modificado????????????????????
Asking the same question ::: Do you know of a hack in which the password is stored, but it will not automatically be filled in on a website when the username is entered? I would like to keep an ongoing list of my passwords, but I don’t want to have it automatically enter the password for me. Any Help?
Also how do I reverse it, I saved the file but in order to reverse what i have done do I just delete what I had entered?
can you share files that have been so
Спасибо за код! Теперь окно с 3 кнопками не выходит. Только у меня одна проблема, в меню сервис/свойства/безопасность – сохраненные пароли, пароль не сохраняется? в чем может быть дело? код прописал правильно, версия firefox 3.6
then where i can find the saved user name and passwords???
I followed the instructions and found the lines needed to be deleted in notepad++ and copied and pasted the var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
into the empty space after deleting the other functions like it said. I than saved it as a copy, moved it to the components folder and deleted the original, thus replacing it with the new improved version. But it still doesnt work. I have tried it three times and dont know what im doin wrong… and no passwords saved…..little help?
How do I do this on a mac!!?? PLEASE HELP
can someone upload the original nsLoginManagerPrompter.js , where we can download it??
can someone please advise how to do this on a mac…thank you!
Like doeman, i have also updated mine, erased the original. it doesnt ask me to save password anymore, but it doesnt log them for me. I opened it in frontpage to get the line number. can i get some help?
I have figured it out. I did the wrong lines. for anyone using notebook++ it isnt lines 642-711 it is 593-652
thank you. this is awsome!
On my notepad ++ the lines 642-711 doesn’t look like how it should on the top example, but it looks identical when I put it in between lines 593-652…
I have tried copy & pasted both ways, but nothing is working… Help please!!!
i opened with wordpad..i am able to see and read what u have shown in picture but cannot find 642 line to replace as there is no mentioning of lines
pl help
Can some body upload a hackt file
of nsLoginManagerPrompter
and give a link?
yes it does work, but when i try to log-in, the software security device in the “whow passwords” in “tools” appear.
Ok, i’ve tried this, but i can’t get it to save?
I’ve tried re-naming the fileand deleting the file and saving it over in a new name or the same name, but it’s access denied, cotnact the administrator, I am the administor!
Any ideas?
Feel free to email on my hotmail:
rosiesmith100@hotmail.com
can someone give an update which lines we need to replace for firefox 3.6?
lines 780-849 for firefox 3.6
Can this be done on google chrome or safari? IF SO that would be so awesome =]
Btw i forgot to say thanks =]…..u really made a great improvement on this field =]……I was going to ask you this, and i know i already made a comment on this but that wasnt a question, this one is lol….do you think that this may be possible to do on Safari i really use safari a lot and if this can be possible on it then u will save me so much time =] ohh and in google chrome too. Please
Excelente amigo!! Funcionou perfeitamente mas só depois q coloquei o código da forma q tá na imagem ao invés do que vc tinha escrito primeiro. O código q deu certo foi :
var pwmgr = this._pwmgr;
pwmgr.addLogin(aLogin);
ao invés de: pwmgr var = this._pwmgr;
pwmgr.addLogin(aLogin);
Valeu msm pelo excelente trabalho abraço
Thanks for the FF hacks but poor me, could you please include an extra line which says for which version of Firefox you had written all this.
Because the line numbers in newer FF (I’m using 3.6) are different from those illustrated above.
So, it would be better if you include codes that are to be replaced.
Thank you again.
can u please let me know the process for google chrome and internet explorer
thnx for the idea
I am also recieving this error. Please help me if you can. I have firefox 3.6
—————————
Windows Script Host
—————————
Script: C:\Program Files\Mozilla Firefox\components\nsLoginManagerPrompter.js
Line: 39
Char: 1
Error: Syntax error
Code: 800A03EA
Source: Microsoft JScript compilation error
—————————
OK
—————————
I have tried to do this and when im readt to save it it says”Please check wheather this file is opened in another program” what do i do
Email:newjersey0992@yahoo.com
Help i am having the same problem as Jen!
Help. Its not saving any passwords, what did I do wrong? I replaced the lines with the information, exactly like the image shown, but its not working, it isn’t auto-saving or saving at all. If you could please help with this. My email is rethiem@gmail.com. Thx
awesome work
Leave a reply