Show all your chromium passwords in format ready to import in other browser like FireFox
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
chrome-export.js
chrome-export.min.js

README.md

Instructions:

I found a decision how to show all your passwords from Chromium. Tested on Chromium:

Version 40.0.2214.111 Ubuntu 14.04 (64-bit) - Passed

Version 43.0.2357.65 Built on 8.0, running on Debian 8.1 (64-bit) - Passed

Version 48.0.2564.82 Built on 8.3, running on Debian 8.3 (64-bit) - Passed

Version 50.0.2661.102 Ubuntu 16.04 (64-bit) - Passed

Version 51.0.2704.79 Built on 8.4, running on Debian 8.5 (64-bit) - Passed

Version 55.0.2883.75 Built on 8.6, running on Debian 8.6 (64-bit) - Passed

Version 60.0.3112.78 (Developer Build) built on Debian 9.1, running on Debian 9.1 (64-bit) - Passed

Output format changed for ready to use in FireFox Export plugin Please install this plugin from https://addons.mozilla.org/en-Us/firefox/addon/password-exporter/

Output made in format: "hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"

Last 3 fields "httpRealm","usernameField","passwordField" filled empty because Chrome has no information about in his Chrome Password Manager.

1.Open in Chromium browser link to Chrome password manager: (chrome://settings-frame/passwords)

2.Open console (F12) and insert this js code:

Minified version

var d=document,out="",out2="",pm=PasswordManager.getInstance(),pl=pm.savedPasswordsList_,model=pl.dataModel,version=loadTimeData.data_.browserVersion,timelag=model.length>100?15e3:5e3;for(d.getElementById("saved-passwords-list").scrollTop=d.getElementById("saved-passwords-list").scrollHeight,i=0;i<model.length;i++)chrome.send("requestShowPassword",[i]);setTimeout(function(){for(out2+="# Generated by Password Exporter; Export format 1.1; Encrypted: false\n",out2+='"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"',i=0;i<model.length;i++){var e=pl.getListItemByIndex(i),o=version.substring(8,10)>=51?model.array_[i].url:model.array_[i].origin;out+="\n"+o+"	"+model.array_[i].username+"	"+e.childNodes[0].childNodes[2].childNodes[0].value,out2+='\n"'+o+'","'+model.array_[i].username+'","'+e.childNodes[0].childNodes[2].childNodes[0].value.replace(/"/g,'""')+'","'+o+'"," "," "," "'}console.log(out),d.body.innerText=out2},timelag);

full version

var out = "";
var out2 = "";
var pm = PasswordManager.getInstance();
var pl = pm.savedPasswordsList_;
var model = pl.dataModel;
var version = loadTimeData.data_.browserVersion;
var timelag = (model.length > 100) ? 15000 : 5000;
document.getElementById("saved-passwords-list").scrollTop = document.getElementById("saved-passwords-list").scrollHeight;
for (i = 0; i < model.length; i++) {
	chrome.send('requestShowPassword', [i]);
};
setTimeout(
		function() {
			out2 += '# Generated by Password Exporter; Export format 1.1; Encrypted: false\n';
			out2 += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"';
			for (i = 0; i < model.length; i++) {
				var item = pl.getListItemByIndex(i);
				var UrlOrigin = (version.substring(8, 10) >= 51 ) ? model.array_[i].url : model.array_[i].origin;
				out += "\n" + UrlOrigin
						+ "	" + model.array_[i].username
						+ "	" + item.childNodes[0].childNodes[2].childNodes[0].value;
				out2 += '\n"' + UrlOrigin + '","'
						+ model.array_[i].username + '","'
						+ item.childNodes[0].childNodes[2].childNodes[0].value.replace(/"/g, '""')
						+ '","' + UrlOrigin + '"," "," "," "';
			}
			console.log(out);
			document.body.innerText = out2;
		}, timelag);

3.Now you see all your passwords in format i described early.

4.Copy all data to csv file and import to FireFox :)

5.Profit