93

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.

Nathan Long
  • 27,435

11 Answers11

67

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

yanokwa
  • 2,282
23

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.

Nathan Long
  • 27,435
15

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 chrome://flags/#enable-password-force-saving then you can right click on the password field and instruct the browser to store it.

It's now been renamed to chrome://flags/#PasswordForceSaving (Chrome 65 and possibly some earlier versions)

Daniel F
  • 1,052
6

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

5

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.")})();
bugaboo
  • 51
4

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:

  1. Press Ctrl+Shift+I

  2. Click on the "Console" tab

  3. 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>'

  4. Important: Close the developer panel by pressing Ctrl+Shift+I again; otherwise your browser won't display the password save dialog.

  5. Enter the username and password you want your browser to save, then click "Submit".

  6. Your browser should then confirm if you would like to 'remember' these credentials.

Screenshot:

Screenshot

Sam Denty
  • 7,426
4

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.

  1. In Chrome, go to SettingsImport bookmarks and settings
  2. Select Mozilla Firefox
  3. Uncheck everything except Saved passwords (check Autofill form data as well if you also want Chrome to autofill the username).
  4. Click Import

These instructions are based on Chrome version 62.

This answer is based on floatingstar's answer on a similar question.

wjandrea
  • 686
4

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.
soandos
  • 24,600
  • 29
  • 105
  • 136
Kelly
  • 41
  • 1
2

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.

1

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.

pretty
  • 11
  • 1
0

You can use the Roboform Chrome extension.

Gareth
  • 19,080
NT.
  • 1,715