On some websites that emphasis security, the web pages will explicit request web browser to remove the offer and disable ability to save or remember the password to auto fill in the user name and password credentials on next visit. Such sites including many banks online banking services, Yahoo! (i.e. Yahoo! Mail), Windows Live ID (i.e. MSN Hotmail), PayPal and etc.

Normally, the request for web browser especially Mozilla Firefox so that it does not offer to remember password (and not saving any user ID and password) when user submit the login form or sign in page, and hence does not autofill on next visit is made by using autocomplete=”off” parameter.

Remember Password bookmarklet hacks and makes the Firefox browser ignores web site requests of not remember passwords temporarily, allowing users to save passwords (and hence the Firefox can auto-fill username and password the next time the same log in page is opened), even on sites that use autocomplete=”off” command.

The Remember Password bookmarklet only works on Mozilla Firefox browser, and on sites that use autocomplete=”off” attribute to prevent the browser from remembering passwords. If the site uses another method to break web browser’s password manager, such as having two password fields or submitting the form using JavaScript, this bookmarklet won’t help to enable or turn on password manager remembering feature.

Save Password Bookmarklet

JS Code:
javascript:(function(){var ca,cea,cs,df,dfe,i,j,x,y;function n(i,what){return i+" "+what+((i==1)?"":"s")}ca=cea=cs=0;df=document.forms;for(i=0;i<df.length;++i){x=df[i];dfe=x.elements;if(x.onsubmit){x.onsubmit="";++cs;}if(x.attributes["autocomplete"]){x.attributes["autocomplete"].value="on";++ca;}for(j=0;j<dfe.length;++j){y=dfe[j];if(y.attributes["autocomplete"]){y.attributes["autocomplete"].value="on";++cea;}}}alert("Removed autocomplete=off from "+n(ca,"form")+" and from "+n(cea,"form element")+", and removed onsubmit from "+n(cs,"form")+". After you type your password and submit the form, the browser will offer to remember your password.")})();

To use this bookmarklet, copy and paste the JavaScript to Firefox Location Bar and hit “Enter” just before submitting the form with password field. Alternatively, bookmark the bookmarklet, and then click on the “Save Password Bookmarklet” in Bookmarks when needed. Once the Java script is run, a confirmation dialog indicating how many form elements and forms have been affected will be shown.

Remove AutoComplete Off Setting to Save Password

Firefox browser will then offer to remember the password (as if default behavior when the website doesn’t set auto complete to off) when user submits the form. Click “Yes” to remember and store the password. Once the browser has saved the password (and user name) for the website, the status of auto completion or auto fill is ignored, and the bookmarklet is not required anymore.

Firefox prompts to save password in PayPal, Yahoo!, Windows Live, Hotmail Sites
After applying the Save Password Bookmarklet, Firefox will prompt to save password on websites which previously do not allowed to saved password and don’t let Password Manager automatically fill in and complete the user name and password fields.

Related Posts

  • Nunya

    Don’t work for walmart.com in Firefox

    Saving the username/password worked for me on that site until I changed it and then it remembered the old one and would never prompt me to save the new one so I went into the options and deleted it. Now there’s no way to get it to prompt me to remember it ONLY on walmart.com

  • Jimmy ATool

    This worked great! I was getting annoyed with banking sites especially that use creative ways to block saving the password… its quite dumb considering half the sec problems are due to key loggers, so storing the password in an encrypted db once seems like a better solution than typing it in every time.

    If every site used this coupled w/ allowing non-alphanumeric characters, we’d be in a lot better shape. Its too bad some companies still don’t get it. I blame windows for making people dumb and forcing us to answer who our favorite roommate’s brother’s pet’s bat’s guano’s name in college was.

  • Flemur

    Thanks!

    This worked on Firefox 8 and linux, where modifying the _isAutocompleteDisabled poertion of nsLoginManager.js file(s) (both of them!) didn’t work.

  • Flemur

    Thanks!

    This worked on Firefox 8 and linux, where modifying the _isAutocompleteDisabled portion of nsLoginManager.js file(s) (both of them!) didn’t work.

  • Sérgio Basto

    on firefox5 no nsLoginManager.js in omni.jar , none of yours methods works !

    Help !!!!

  • Jason

    Ok after a little digging through source code here is what I have found on forcing autocomplete in Firefox 4. The Firefox Developers have moved any files they could in to an archive file called omni.jar. (http://blog.mozilla.com/mwu/2010/08/13/omnijar-how-does-it-work/) You can open it in Firefox itself but not edit it in firefox. (jar:file:///C:/Program%20Files%20%28×86%29/Mozilla%20Firefox/omni.jar!/components/) 7-zip the tool most of us would use to unpack it is not able to handle the format Mozilla used. There is still some question on if other tools like winrar and winzip can correctly repack the files the way firefox was expecting too (http://sourceforge.net/projects/sevenzip/forums/forum/45797/topic/4014723) (http://forums.mozillazine.org/viewtopic.php?f=23&t=2129699&start=0)
    (https://bugzilla.mozilla.org/show_bug.cgi?id=595473) Long and short of it hopefully the Mozilla developers will switch to a more common and recognized compression format as this also affects the Firefox theme builders apparently. Once they do we can open and edit nsLoginManager.js as normal within the omni.jar compressed file.

  • Jason

    Ok after a little digging through sourcecode here is what I have found on forcing autocomplete in Firefox 4. The Firefox Devlopers have moved any files they could in to an archive file called omni.jar. (http://blog.mozilla.com/mwu/2010/08/13/omnijar-how-does-it-work/) You can open it in Firefox itself but not edit it in firefox. (jar:file:///C:/Program%20Files%20%28×86%29/Mozilla%20Firefox/omni.jar!/components/) 7-zip the tool most of us would use to unpack it is not able to handle the format Mozilla used. There is still some question on if other tools like winrar and winzip can correctly repack the files the way firefox was expecting too (http://sourceforge.net/projects/sevenzip/forums/forum/45797/topic/4014723) (http://forums.mozillazine.org/viewtopic.php?f=23&t=2129699&start=0)
    (https://bugzilla.mozilla.org/show_bug.cgi?id=595473) Long and short of it hopefully the Mozilla developed will switch to a more common and recognized compression format as this also affects the Firefox theme builders apparently. Once they do we can open and edit nsLoginManager.js as normal within the omni.jar compressed file.

  • raf sur

    Some web sites like banking web sites) have autocomplete=”off”. It is dangerous to turn this on, always select no while in banking and other sites but a really cool tweek keep the good work up

  • I was having this problem recently and I created a Firefox Jetpack extension to fix it. You can get it from http://jetpackgallery.mozillalabs.com/jetpacks/33

  • Aidan

    What OS are you guys running? I using Windows 7 and it appears Microsoft disabled access to most of the program files, at least to make any updates/revisions. I am completely unable to open nsLoginManager.js??

    I also tried to copy/paste the JS code above, but to no avail as well??? I get the message that you will be offered to save the password after login, but it never happens?!

    Is it just me being an idiot or does Windows 7 have some magical powers enacted to ruin my damn life. I swear I'm ready to pull out the XP Pro SP2 disk and clear out this miserable OS!!!

  • Quest

    Thanks for this helpful tip….

  • Scott

    To all, like myself. I found that I could automatically start Firefox in a private browser session and started using it. It however comes with two issues. 1) It will not auto fill your user name and password when you come on a site you at least have to type the first letter as if you had multiple logons for the site. 2) You loose the ability for Firefox to ask you if you want to remember the user name and password. I hope this helps a rare few people like me.

  • iki

    Tried that for mail.yahoo.com in Ubuntu/Firefox 3.5.3. It not only crashes Firefox but the whole desktop (logout) and then when Firefox is opened again the settings have returned to default (not remember passwords).

  • it seems doesn't work for yahoo in FF 3.5.2.

    but thanks.

  • william

    working no more, too bad

    website say it blocked 1 or 2 fields but not works, site dont remember to save pass.. hotmail,yahoo,paypal… anyone, please anotther solution to fix this help us. thnaks.

  • Jim

    Many thanks!

  • a pirate

    maybe a dumb question but…is it save to use

  • Is there a way to do this hack on Google Chrome? Thanks.

  • John

    Try deleting all of the passwords for the specific site that is not working (write them down first :D :D) and then opening the site and hitting remember password.

    Seems like it just need to be refreshed.

  • I do not know if this bookmarklet works in FF3 specifically, didn't try.I first found this nice article here, appreciated the method, but then I dragged and dropped a bookmarklet from the very old "jesse's bookmarklets site". I already knew(I have used different developer, search, zap etc bookmarklets for FF and for…IE6) to my FF3 toolbar. That worked in my FF3+ for Yahoo Mail(and I wrote a post in greek about that site).

  • Thanks for the bookmarklet. It was extremely frustrating. Whenever I tried to sign in in Yahoo from Firefox, I had to type password and mail info. You can drag and drop the above "Save Password Bookmarklet" to the Bookmarks toolbar I believe.

  • Pingback: Fix Firefox Does Not Save, Store or Remember Password On Some Sites Permanently for Always Auto-Complete » My Digital Life()

  • Pingback: optimiced | en » How to make Firefox remember *all* passwords (even when logging to PayPal & Yahoo Mail)()

  • Pingback: optimiced | bg » Как да накараме Firefox да “помни” всички пароли (дори и в PayPal и Yahoo Mail)()

  • Tonycosus

    I FOUND A WAY TO MAKE IT WORK IN FIREFOX 3!!!

    Some web sites (web-based e-mail sites or banking web sites) have autocomplete="off". It is dangerous to turn this on, and one should only turn this on if one uses a Master Password in Firefox 3.

    if one uses a Master Password and one wishes to turn this off, one needs to go to C:Program FilesMozilla Firefoxcomponents, and comment out these lines in nsLoginManager.js:

    // if (element && element.hasAttribute("autocomplete") &&

    // element.getAttribute("autocomplete").toLowerCase() == "off")

    // return true;

  • jbellies

    Similar method worked for me with Yahoo mail and Firefox 2. However, it doesn't really work with Firefox 3. In Firefox 2, once you have everything set up, when you get to the login page everything is ready to go, you just click "Sign In". In Firefox 3, the best I can get is this: you have to click "remember password" on your toolbar, then start typing your sign in name in the Yahoo ID field. It offers the full name, which you click, and then your password is filled in. Then you click "Sign In".

    I have seen similar reported elsewhere.

  • Tor Skude

    It works for me. It doesn't work really well with PayPal and Firefox 3 though. I have to wait for the page to finish loading, then click the (already filled in) email address for the autocomplete to take action.

  • Phil

    This still doesn't seem to work for paypal; it says it's saving the password but it doesn't autocomplete upon next login.

  • Thanks a lot for this tips !