Michael Jay Lissner
  • Home
  • About Site
  • Contact
  • Projects & Papers
  • Tags
  • Archives

Rid Thyself of Autocomplete=Off in Firefox

Update, 12-15-09: See this script for an automated way to apply this change.

If you’re at all like me, you use a password manager to keep track of all your passwords, and it works great. Most of the time. Except sometimes, it doesn’t work, and you’re confused why. Well, more often than not, it’s because your password manager has been blocked by the web page you’re viewing.

If you look closely at the code of the page, somewhere in it, you’ll probably find something that looks like this:

<input class="button" type="submit"  name="login" value="login" autocomplete="off">

That autocomplete parameter that you see at the end there? Yeah, that’s the one that’s blocking your password manager. So we must block it, so it doesn’t block us.

There’s a couple approaches to this, but probably the best is to disable Firefox’s ability to interpret autocomplete. The way to do this on Linux is to browse to:

/usr/lib/xulrunner-1.9.1.5/components/nsLoginManager.js

And in Windows, I believe it’s at:

C:\Program Files\Mozilla Firefox\nsLoginManager.js

Once you’ve found that file, open it in an editor, and find the section that has isAutoCompleteDisabled, and make it look like this (so it will always return FALSE):

/*
 * _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;
 },

Once that’s done, save the file, restart Firefox and you’re all set.

I love getting feedback and comments. Make my day by making a comment.

Comments
comments powered by Disqus

  • « Script to Clean Up F-Spot Database
  • Testing Deletion Speed of Online Photo Sites »

Published

Oct 28, 2009

Category

Tech

Tags

  • autocomplete 2
  • firefox 6
  • frustration 2

Contact

This is Reader-Editable

Edit this post on Github

Get Weekly Updates

  • Unless mentioned otherwise, all material on this site is licensed under a Creative Commons copyright or the GNU Affero GPL. Privacy Policy.
  • Powered by Pelican. Theme: Elegant by Talha Mansoor