Sunday, February 6, 2011

Re-enable "remember passwords" on Chrome (Mac)

This is pretty stupid of Chrome, given the fact that it has done everything else so smartly. Most of us have the habit of letting our browser save our mail and fb passwords; and when a friend or someone else logs in to his account using this browser, and the browser asks to save his password, we promptly click "not now" button that Firefox gives. But on chrome, the buttons are "save password" and "never for this site", and if you click the other button, your own saved passwords are also lost.

Hmm.. now what, go to the password manager and remove that exception, right? On Windows, yes; on Mac no. Go to the wrench icon, preferences; select the center tab, click "show saved passwords". This opens up the "Keychain Access" tool on Mac. And guess what, it does not have the exception list there.

Solution:
1. Close Chrome
2. Goto to ~/Library/Application Support/Google/Chrome/Default
3. sqlite3 Login\ Data "select origin_url, blacklisted_by_user from logins"

You'll see that for the site for which you clicked "never for this site", the blacklisted_by_user value is 1. Just reset those values to 0

4. sqlite3 Login\ Data "update logins set blacklisted_by_user=1 where origin_url like '%google%'"

Now start your chrome, and save your passwords again.