Hacking Firefox to Always Auto Save Password without Showing Notification Bar

Sunday, 8 May 2011

Hacking Firefox to Always Auto Save Password without Showing Notification Bar

Normal Execution of Saving Password in Firefox

When you submit a form with username and password, it will process the function:
  • _onFormSubmit() in nsLoginManager.js
  • promptToSavePassword in nsLoginManagerPrompter.js
  • _showSaveLoginNotification in nsLoginManagerPrompter.js
  • addLogin in nsLoginManager.js 



Steps for hacking Firefox Notification Bar

  • Close Firefox
  • Edit nsLoginManagerPrompter.js with notepad which is normally located in C:\Program Files\Mozilla Firefox\components\
  • Delete all code inside the function:
_showSaveLoginNotification : function (aNotifyBox, aLogin) { }
  • Add a new code:
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

Home