Hacking Firefox to always Save Username and Password without Notification Bar

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

Now , if you want to automatically save username and password without sowing a notification bar, then follow these steps:

1. Firstly, 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.




0 comments:

Post a Comment