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

Remember Password Override for Firefox 3.0

06/22/08

  12:06:14 pm, by The Dreamer   , 310 words  
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|

2 comments

Comment from: MPG [Visitor]
MPG

It doesn’t work in VM Ware.

And the trackback doesn’t work, I type in the stupid code and click the button and I don’t get the link.

11/24/09 @ 16:28
Comment from: The Dreamer [Member]  

After upgrading to Firefox 3.6, and re-applying this hack…I found that it wasn’t working.

I was sad, and went on a quest to find a new hack….was getting mixed results on whether the hack should still work or not.

started looking to figure out how to get the log messages of nsLoginManager.js to appear…I didn’t find it, but while playing around with the ‘-console’ and ‘-jsconsole’ options…I did noticed that some extension was throwing an exception related the passwordmanager.

So, I went looking for it, and found that it was Gmail Manager, which had stopped working some time ago…but wasn’t really in the way, so I hadn’t gotten around to removing it. The extension says it would work to 3.6.*….

I removed it, and continued my investigation on why autofill of logins had stopped working….

….only to discover that they were suddenly working again.

YAY

03/16/10 @ 19:13
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.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 20 years 1 month 26 days 4 hours 46 minutes and 21 seconds until the end of time.
And, it has been 4 years 11 months 1 day 9 hours 16 minutes and 35 seconds since The Doctor saved us all from the end of the World!

Search

November 2017
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      
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 0
This seal is issued to lawrencechen.net by StopTheHacker Inc.
blog tool

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

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime