Skip to content

Instantly share code, notes, and snippets.

@ceap80
Forked from cmatskas/ExportChromePasswords.js
Last active December 6, 2016 01:37
Show Gist options
  • Select an option

  • Save ceap80/ed63b89977ee534b453134076339cfd9 to your computer and use it in GitHub Desktop.

Select an option

Save ceap80/ed63b89977ee534b453134076339cfd9 to your computer and use it in GitHub Desktop.
ExportChromePasswords.js
var pm = PasswordManager.getInstance();
var pl = pm.savedPasswordsList_;
var model = pm.savedPasswordsList_.dataModel;
setTimeout(function(){
var item, url, user, pass
var decryptedRow = '"url","username","password"\n';
for (i=0; i < model.length; i++) {
PasswordManager.requestShowPassword(i);
item = pl.getListItemByIndex(i).childNodes[0];
url = item.childNodes[0].childNodes[0]
user = item.childNodes[1].childNodes[0].value
pass = item.childNodes[2].childNodes[0].value
decryptedRow += url + ', ' + user + ', ' + pass + '\n'
};
console.log(decryptedRow);
}
,300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment