Is there a way to force Google Chrome to remember passwords for sites that have autocomplete turned off?
Clarification:
I am a programmer, but ideally, I'd like a method that I could help regular users implement, too.
Is there a way to force Google Chrome to remember passwords for sites that have autocomplete turned off?
I am a programmer, but ideally, I'd like a method that I could help regular users implement, too.
use the autocomplete=on extension. it changes 'autocomplete=off' to 'autocomplete=on' in web pages, so your passwords will be remembered.
This is not really a solution, but you can hack a workaround for this if you know a little Javascript by making a bookmarklet that fills out the username and password fields. This would work:
For example, if the page you want to fill in has fields with IDs of 'user_name' and 'password', this javascript would fill them with whatever you define near the beginning.
javascript:function%20enterLogin(){username="your_username";password="your_password";document.getElementById('user_name').value=username;y=document.getElementById('password').value=password;}enterLogin();
This is not secure at all, of course, if anyone you don't trust may open your browser; they can click to edit this and see your login info.
But it's not much worse than having the browser remember your passwords if it doesn't use a master password to encrypt them; some digging around in the menus will let you view those. And anyway, you shouldn't let people you don't trust use your computer.
javascript:$("#username").val("username");$("#password").val("password");
If you have a Password Manager extension installed, Chrome disables this internal feature if it detects such a Password Manager. Temporarily disabling the extension will allow you to use the built in mechanism.
Older answers which are now obsolete:
Chrome has native support for it: If you enable then you can right click on the password field and instruct the browser to store it.chrome://flags/#enable-password-force-saving
It's now been renamed to chrome://flags/#PasswordForceSaving
(Chrome 65 and possibly some earlier versions)
I often do the following in Firefox/Firebug:
autocomplete="off"
(usually on the form tag)I can't find a way to delete attributes with Chrome's Developer Tools, but you can change it to autocomplete="on"
or change the attribute name to e.g. "width".
autocomplete
attribute will be reset to "off", defeating the purpose; Chrome will remember the password but won't fill it in.
Jul 22, 2011 at 3:36
autocomplete
brings up the prompt to save the password, and when you return it filled it in, even if autocomplete was off. Maybe that doesn't happen any more.
Jul 22, 2011 at 11:44
autocomplete="off"
to autocomplete="on"
. Then submit form.
Sep 4, 2012 at 14:52
Here is a bookmarklet that removed the autocomplete. Create a new bookmark on your toolbar and save this long line as the url:
javascript:(function(){var%20ca,cea,cs,df,dfe,i,j,x,y;function%20n(i,what){return%20i+"%20"+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%20autocomplete=off%20from%20"+n(ca,"form")+"%20and%20from%20"+n(cea,"form%20element")+",%20and%20removed%20onsubmit%20from%20"+n(cs,"form")+".%20After%20you%20type%20your%20password%20and%20submit%20the%20form,%20the%20browser%20will%20offer%20to%20remember%20your%20password.")})();
var e= document.querySelectorAll("input[autocomplete=off]"); for(var i=0; i<e.length; i++) { e[i].setAttribute("autocomplete", "on"); }
In Chrome right click the desired field and "Inspect element"
Instead of relying on the webpage to support password saving, you can instead overwrite the whole page with an HTML form that is guaranteed to work:
Press Ctrl+Shift+I
Click on the "Console" tab
Paste the following JavaScript into the console and press Enter
document.getElementsByTagName("body")[0].innerHTML='<form action=# method=post><input name=identifier><input type=password name=password><input type=submit></form>'
Important: Close the developer panel by pressing Ctrl+Shift+I again; otherwise your browser won't display the password save dialog.
Enter the username and password you want your browser to save, then click "Submit".
Your browser should then confirm if you would like to 'remember' these credentials.
document.querySelector("body").
) worked as charm. I have saved it as bookmarklet.
For some websites, Firefox will let you save the password where Chrome will not. So you can save the password in Firefox, and import it into Chrome.
These instructions are based on Chrome version 62.
This answer is based on floatingstar's answer on a similar question.
From Stable Channel Update:
Chrome will now offer to remember and fill password fields in the presence of autocomplete=off.
This feature has been implemented in the Google Chrome 34.0.1847.116 Stable channel for Windows, Mac, and Linux.
I just entered my username and password in the value fields in the form by inspecting the elements and saved that as a html page, grabbed url from that page and I book marked this new url, its working for me :). Thanks.
example.com/login
, you now visit file://my_copy_site.html
and log in, which redirects you to example.com/main_page
. If that's true, clever, but beware that the real site may change out from under your copy; eg, your form might submit to a URL that they've removed.
Jun 18, 2013 at 18:31