How to turn off the autocomplete=”off” feature in Firefox

Sometimes you just really want to use the autocomplete feature and omit the HTML form autocomplete=”off”.

To do so, you need to modify following file (the firefox version might, and probably will be, different than the one posted below):

/usr/lib/firefox-3.6.10/components/nsLoginManager.js (in Windows it might be something like C:\Program Files\Mozilla Firefox\components\nsLoginManager.js)

Change this:

_isAutocompleteDisabled :  function (element) {
    if (element.getAttribute("autocomplete").toLowerCase() == "off")
        return true;
    return false;
}

to this:

_isAutocompleteDisabled :  function (element) {
    return false;
}

Or just add comments to the conditional section of the method, to assure it will always return false.

Be the first to like.
Share and Enjoy:
  • Print
  • Digg
  • Facebook
  • Twitter
  • Google Bookmarks
  • DZone
  • Wykop

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*