11 December 2009

Make Firefox remember your password for any website

By editing the file nsLoginManager.js you can make Firefox remember passwords even on sites that don't allow the use of saved passwords.

On Debian and Ubuntu:
/usr/lib/xulrunner-1.9/components/nsLoginManager.js

On Mac OS X:
/Applications/Firefox.app/Contents/MacOS/components/nsLoginManager.js

On Windows:
C:\Program Files\Mozilla Firefox\components\nsLoginManager.js

/*
* _isAutoCompleteDisabled
*
* Returns true if the page requests autocomplete be disabled for the
* specified form input.
*/
_isAutocompleteDisabled : function (element) {
if (element && element.hasAttribute("autocomplete") &&
element.getAttribute("autocomplete").toLowerCase() == "off")
return true;

return false;
},

Change the "return true" to "return false".


Sources:
http://cybernetnews.com/2009/02/13/firefox-remember-passwords/
http://www.dailygyan.com/2008/08/force-firefox-to-remember-password-of.html

No comments:

Post a Comment