« KD0EFR/AGBoca Java FAIL! Desperately seeking new coffee club. »

Remember Password Override for Firefox 3.0

06/22/08

Permalink 12:06:14 pm, by The Dreamer Email , 310 words   English (US)
Categories: Software

Remember Password Override for Firefox 3.0

There are certain sites that I use, where I use the dangerous feature of having Firefox remember my password....even though the site has disabled autocomplete as part of its security measures.

I did this by using a bookmarklet that hacked the currently loaded page, etc.

When I upgraded to Firefox 3, those sites stopped working. It would fill in the form when the remembered password, and using the bookmarklet broken the page (the login would fail).

While looking to see where I originally found the bookmarklet, and to see if it had been updated....I came across this:

Always remember password hack for Firefox 3

If you’re on Firefox 3 you can just edit your Firefox installation to get the “Always remember password feature” without having to run some JavaScript code on every page load:

  • Shutdown Firefox
  • Backup the file PATH_TO_YOUR_FIREFOX_INSTALLATION/components/nsLoginManager.js.
  • Edit PATH_TO_YOUR_FIREFOX_INSTALLATION/components/nsLoginManager.js with your favorite text editor and find the following lines:

                  if (element && element.hasAttribute("autocomplete") &&
                      element.getAttribute("autocomplete").toLowerCase() == "off")
                      return true;
    

    On the GNU/Linux version of Firefox 3 Beta 5 this code is inside the private method _isAutocompleteDisabled, on the Windows version of Firefox 3 Beta 5 this code can be found inside the local helper function autocompleteDisabled which is part of the private method _onFormSubmit.

    To let Firefox password manager always remember passwords those “autocompleteDisabled”-methods have to always return the value false.

    All you have to do to achieve this is remove the lines above or comment them out like this:

    //          if (element && element.hasAttribute("autocomplete") &&
    //              element.getAttribute("autocomplete").toLowerCase() == "off")
    //              return true;
    
  • Save your changes and close the editor.
  • Restart Firefox - Firefox password manager should now always remember passwords ignoring the autocomplete=”off” attribute.

Now the dangerous thing I've been doing is working again..... 88|

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

My Latest Tweets

August 2008
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
There are 5 months 27 days 19 hours 17 minutes and 46 seconds until the end of Analog Broadcast TV.
There are 29 years 4 months 28 days 15 hours 31 minutes and 53 seconds until the end of time.

Search

Google

Linkblog

XML Feeds

powered by b2evolution free blog software

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
website uptime