How to Make Chrome Remember Passwords

Related articles

18 Responses

  1. b says:

    You’re missing a “}” at the end…

    (function () {
    var e = document.querySelectorAll(“input[autocomplete=off]”);
    for (var i = 0; i < e.length; i++) {
    e[i].setAttribute("autocomplete", "on");

  2. Jeff F says:

    Have named a new bookmark and entered to url as above. I then go to the url I want to memorize and enter the login info, clicked on the bookmark with the javascript, but nothing happens at that time or after I enter the submit

  3. Kevin says:

    Thanks for the help!

  4. Marcus says:

    Aha! I have been struggling on this. Unfortunately, Chrome does not allow to add passwords and sites from the settings popup. You can only view it. This method works fantastic when to force Chrome on adding a new password.

    And if you are updating the password for a site and chrome is not showing the prompt for updation, then simply go the settings page, view passwords and remove the saved password for the site. Now go back to the update password page of the site and hit enter. Chrome will now ask you to save new passwords.

  5. Oleg Sobakin says:

    This still doesn’t work on https login page. Too bad :(

    • Abhishek Mandloi says:

      Can you please elaborate on the problem here @@olegsobakin:disqus

    • Oleg Sobakin says:

      You see the problem was that I tried to save my password in chrome on ebay site and some other site as well, these sites are normally http but when you click sign in button it goes to login page which is https and when I entered my login and password Chrome didn’t offer me to save password. Then I tried to use that java script, still didn’t work. Later that day I rebooted my PC and then in the evening when I logged in to ebay it offered me to save password – boom! Weird situation.

    • Abhishek Mandloi says:

      Glad to know that the situation resolved itself. May be there was a Chrome bug and the reboot applied the update. Nonetheless, this should not be happening.

  6. Mahe Sagar says:

    hi bro.,
    i added a bookmark to chrome., but a small doubt.,
    should i paste this from #java script or (function) .,
    thanks in advance :D

  7. Kelly Bloxom Andino says:

    I am trying to make this work, but i am confused. Do I replace the whole existing URL with the code above or do I add it to the end???

    • Kemcho says:

      If the website has disabled saving passwords, you need to paste the given code by replacing the URL of the page which has the password field. Note that Chrome might remove “javascript:” at the beginning of the code, so you will have to manually type it.

      Let me know if you face more challenges.

  8. A says:

    That bookmarklet worked like a charm, I was finally able to save the password for the one website that wouldn’t do it.

  9. Wendy says:

    Hi, I am trying to use this and it WILL NOT WORK. When you say to drag the site icon from the address bar to the bookmark bar, what exactly do you mean? Also, when I add the javascript code in place of the URL, any icon that was present next to the bookmark changes. I have been able to save the password in Chrome, but I still cannot enable autofill to work on this page so it’s essentially useless. I’ve tried restarting my computer which didn’t change the behavior of the website at all; I’d still need to enter both my username and my password. Please help.

    • Abhishek says:

      First, make sure you see the bookmarks bar in Chrome below address bar by using keys CTRL/CMD+Shift+B. Now, drag the icon which comes before the site address on this bar.

      I am not sure what problem are you facing with javascript.

      Autocomplete’s is a differnt from remembering passwords, most of the sites disable this feature for almost all forms. We have written an article to force autosave on any websites. Let us know if auto-complete works with saving passwords.

  10. Nick says:

    I have the same problem as Wendy. Surely you have to change part of that javascript code snippet to include the URL of the bookmark? Otherwise how does the javascript know which website the document is in? If I completely clear the URL section of the bookmark, and paste in that code verbatim without editing anything, it does nothing. I don’t know javascript so I don’t know what to change.

Leave a Reply

Your email address will not be published. Required fields are marked *