Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
1  
I'm assuming you've got "Offer to save passwords" turned on. –  ChrisF Sep 22 '09 at 22:18
    
@ChrisF - yes, I do. –  Nathan Long Sep 23 '09 at 9:16
    
Sorry, but I had to ask. –  ChrisF Sep 23 '09 at 11:38
1  
I feel it needs to be said: giving web sites the ability to make your browser seem broken is not a feature browsers should implement. –  Kirk Woll Jan 23 at 20:43
add comment

8 Answers 8

up vote 61 down vote accepted

use the autocomplete=on extension. it changes 'autocomplete=off' to 'autocomplete=on' in web pages, so your passwords will be remembered.

share|improve this answer
1  
Chrome extensions have come along since I asked this question. Thanks for pointing this one out. –  Nathan Long Dec 23 '09 at 12:53
    
What about chrome for Android? Touch keyboard and passwords are not compatible. –  user35444 Aug 1 '12 at 10:23
    
Do note, that author still can make a form that will absolutely won't remember history. –  Oleg V. Volkov Aug 21 '12 at 19:20
    
This extension sopped working somewhere around Chrome 25. Can others confirm? –  Damian Nowak Mar 7 '13 at 23:24
    
@Damian I have Chrome 25.0.1364.172 m and it is still working fine for the sites I use. –  DanO Mar 21 '13 at 23:54
show 2 more comments

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.

share|improve this answer
add comment

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.

share|improve this answer
    
Could you explain this in more details? It's a little vague what you're saying. Maybe show a screenshot? –  slm Jun 18 '13 at 16:36
1  
If I understand you, instead of going to 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. –  Nathan Long Jun 18 '13 at 18:31
add comment

In Chrome right click the desired field and "Inspect element"

  • Change autocomplete="off" to autocomplete="on"
  • Input data and submit the form
  • Chrome will ask you to remember the password
  • When you return, it may not display the password until after you attempt submitting once.
share|improve this answer
add comment

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.")})();
share|improve this answer
1  
Everything except ie has a selector query, so you can use much shorter version: var e= document.querySelectorAll("input[autocomplete=off]"); for(var i=0; i<e.length; i++) { e[i].setAttribute("autocomplete", "on"); } –  Nux Apr 29 '13 at 6:55
add comment

You can use the Roboform Chrome extension.

share|improve this answer
add comment

Workaround: use a bookmarklet

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:

  1. Create a bookmark in your toolbar area by dragging the favicon from any website into that area.
  2. Right-click that bookmark and choose Edit
  3. Change the Name field to whatever you like
  4. In the URL area, enter some javascript that will fill in the desired fields.
  5. Click OK to save that.
  6. Now you can click that bookmarklet to fill those fields

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.

share|improve this answer
1  
+1 Nice. This is what I use on a site which uses jQuery javascript:$("#username").val("username");$("#password").val("password"); –  iSid Apr 12 '12 at 4:00
add comment

I often do the following in Firefox/Firebug:

  • Right click form, click "Inspect element"
  • Look for the attribute autocomplete="off" (usually on the form tag)
  • Right click "autocomplete" then click "Remove attribute..."

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".

share|improve this answer
    
But when the page is reloaded, the autocomplete attribute will be reset to "off", defeating the purpose; Chrome will remember the password but won't fill it in. –  amphetamachine Jul 22 '11 at 3:36
    
@amph At the time of writing, doing this did work. Removing 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. –  DisgruntledGoat Jul 22 '11 at 11:44
    
This works in the latest version of Chrome (21.0.1180.89) -- right-click on username and password form fields, "Inspect Element". Change autocomplete="off" to autocomplete="on". Then submit form. –  Dolan Antenucci Sep 4 '12 at 14:52
    
Works with FF but I did not get it to work with Salesforce in Chrome Version 33.0.1750.152 Ubuntu 12.04 (256984).. –  jcalfee314 May 16 at 17:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.