X
Tap here to go to the mobile version of the site.

Support Forum

How can I "print" the saved passwords list?

Posted

How can I print the "saved passwords" list

How can I print the "saved passwords" list

Chosen solution

You can export the passwords to a signons.json file by evaluating code in the Browser Console (Firefox/Tools > Web Developer).

See:

You can open the Browser Console (Firefox/Tools > Web Developer). Paste the JavaScript code in the command line and press the Enter key to evaluate the code. Toggle devtools.chrome.enabled to true on the about:config page to enable the command line in the Browser Console.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

See this post further down for the JavaScript code.


You can open this file in the Scratchpad (Firefox/Tools > Web Developer). Click the "Pretty Print" button to format the file for readability.

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Adobe PDF Plug-In For Firefox and Netscape 15.8.20082
  • GEPlugin
  • Google Update
  • HP Active Check Plugin
  • HP Pit Plugin
  • HP Product Detection Plugin
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 11.51.2 for Mozilla browsers
  • Logitech Device Detection
  • McAfee MSC FF plugin DLL
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • np-mswmp
  • NPWLPG
  • A component of your photo software powered by RocketLife
  • Shockwave Flash 18.0 r0
  • Adobe Shockwave for Director Netscape plug-in, version 12.0.4.144
  • Toolbar Plugin
  • WildTangent Games App V2 Presence Detector

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0

More Information

Marinusi 0 solutions 3 answers

Try to use Password Exporter 1.3.1.1-signed, export to xml and edit file to show only Username and Passwords or PrintScreen with show passwords.

I hope I helped you.

Try to use [https://addons.mozilla.org/ro/firefox/addon/password-exporter/ Password Exporter 1.3.1.1-signed], export to xml and edit file to show only Username and Passwords or PrintScreen with show passwords. I hope I helped you.

Question owner

I did as suggested, but the results are unreadable.

Thanks anyway,

I did as suggested, but the results are unreadable. Thanks anyway,
cor-el
  • Top 10 Contributor
  • Moderator
16657 solutions 150560 answers

Chosen Solution

You can export the passwords to a signons.json file by evaluating code in the Browser Console (Firefox/Tools > Web Developer).

See:

You can open the Browser Console (Firefox/Tools > Web Developer). Paste the JavaScript code in the command line and press the Enter key to evaluate the code. Toggle devtools.chrome.enabled to true on the about:config page to enable the command line in the Browser Console.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

See this post further down for the JavaScript code.


You can open this file in the Scratchpad (Firefox/Tools > Web Developer). Click the "Pretty Print" button to format the file for readability.

You can export the passwords to a signons.json file by evaluating code in the Browser Console (Firefox/Tools > Web Developer). See: *http://kb.mozillazine.org/Password_Manager#Backing_up_and_restoring_passwords You can open the Browser Console (Firefox/Tools > Web Developer). Paste the JavaScript code in the command line and press the Enter key to evaluate the code. Toggle <b>devtools.chrome.enabled</b> to true on the <b>about:config</b> page to enable the command line in the Browser Console. *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I'll be careful" to continue. *http://kb.mozillazine.org/about:config See this post further down for the JavaScript code. *[[/questions/1077630#answer-834769]] ---- You can open this file in the Scratchpad (Firefox/Tools > Web Developer). Click the "Pretty Print" button to format the file for readability. *https://developer.mozilla.org/Tools/Scratchpad

Modified by cor-el

cor-el
  • Top 10 Contributor
  • Moderator
16657 solutions 150560 answers

You can open the saved signons.json file in a Firefox tab and use this code in the command line of the Web Console (Firefox/Tools > Web Developer).

In case the builtin JSON viewer opens go to the Raw tab in the viewer or use the view-source: prefix (view-source:file://) in the location/address bar to get the raw code.


json = document.querySelector("pre").textContent;
var signons = JSON.parse(json);
var names = "";
for (var i=0; SG=signons[i]; i++) {
try {
 var host = SG.hostname||"";
 var user = SG.username||"";
 var pass = SG.password||"";
 names += "<tr><td>"+ (i+1) + "<td>" + host + "<td>" + user + "<td>" + pass;
} catch(e){}
}
var body = '<table border="1" cellspacing="0">\n'+
'<tr class="head">\n'+
'<td>#\n'+
'<td><b>Host</b>\n'+
'<td><b>User name</b>\n'+
'<td><b>Password</b>\n'+
names+
'</table>\n';

document.body.innerHTML = body;
You can open the saved signons.json file in a Firefox tab and use this code in the command line of the<u> Web Console</u> (Firefox/Tools > Web Developer). *https://developer.mozilla.org/Tools/Web_Console In case the builtin JSON viewer opens go to the Raw tab in the viewer or use the view-source: prefix (view-source:file://) in the location/address bar to get the raw code. ---- <pre><nowiki>json = document.querySelector("pre").textContent; var signons = JSON.parse(json); var names = ""; for (var i=0; SG=signons[i]; i++) { try { var host = SG.hostname||""; var user = SG.username||""; var pass = SG.password||""; names += "<tr><td>"+ (i+1) + "<td>" + host + "<td>" + user + "<td>" + pass; } catch(e){} } var body = '<table border="1" cellspacing="0">\n'+ '<tr class="head">\n'+ '<td>#\n'+ '<td><b>Host</b>\n'+ '<td><b>User name</b>\n'+ '<td><b>Password</b>\n'+ names+ '</table>\n'; document.body.innerHTML = body;</nowiki></pre>

Modified by cor-el

rxtomsn 0 solutions 29 answers

WHAT happened to SIMPLe printscrn to capture logins and paswords then use paint to print...that used to work but has problems now? the above solution instructs to do something that is not understandable to average user. please try to find and provide a solution for all of us dummies?

WHAT happened to SIMPLe printscrn to capture logins and paswords then use paint to print...that used to work but has problems now? the above solution instructs to do something that is not understandable to average user. please try to find and provide a solution for all of us dummies?
rxtomsn 0 solutions 29 answers

in addition to above request..I tried "password exporter" i think was the name but after exporting to file in documents with .xml suffix and try to edit it bring MORE gibberish "schema" which no one know how to use..sadly. please try to provide SIMPLE solution..thanks so much

in addition to above request..I tried "password exporter" i think was the name but after exporting to file in documents with .xml suffix and try to edit it bring MORE gibberish "schema" which no one know how to use..sadly. please try to provide SIMPLE solution..thanks so much
rxtomsn 0 solutions 29 answers

Marinusi said

Try to use Password Exporter 1.3.1.1-signed, export to xml and edit file to show only Username and Passwords or PrintScreen with show passwords. I hope I helped you.
''Marinusi [[#answer-766801|said]]'' <blockquote> Try to use [https://addons.mozilla.org/ro/firefox/addon/password-exporter/ Password Exporter 1.3.1.1-signed], export to xml and edit file to show only Username and Passwords or PrintScreen with show passwords. I hope I helped you. </blockquote>
rxtomsn 0 solutions 29 answers

unable to edit .xml file onlywinds up offering mor gibberish that simple people like us do not understand the first thing about "schema" ad stuff like that..please try to povide simple solutio fo r simple people like us thank you

unable to edit .xml file onlywinds up offering mor gibberish that simple people like us do not understand the first thing about "schema" ad stuff like that..please try to povide simple solutio fo r simple people like us thank you
cor-el
  • Top 10 Contributor
  • Moderator
16657 solutions 150560 answers

You can use this code in the command line in the Browser Console to export the names and passwords to a file in JSON format. You need to set devtools.chrome.enabled to true on the about:config page to enable the command line.

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

You need to open the Browser Console.

  • "3-bar" menu button or Tools -> Web Developer
  • paste the JavaScript code in the editor area
  • click Run to run the JavaScript code
  • click Inspect to inspect the result

The default file name is firefox-logins.json


/* export the names and passwords in JSON format to firefox-logins.json */
var tokendb = Cc["@mozilla.org/security/pk11tokendb;1"].createInstance(Ci.nsIPK11TokenDB);
var token = tokendb.getInternalKeyToken();

try {token.login(true)} catch(e) {Cu.reportError(e)}

if (!token.needsLogin() || token.isLoggedIn()) {
 var passwordmanager = Cc["@mozilla.org/login-manager;1"] .getService(Ci.nsILoginManager);
 var signons = passwordmanager.getAllLogins({});
 var json = JSON.stringify(signons, null, 1);

 var ps = Services.prompt;
 var txt = 'Logins: ' + signons.length;
 var obj = new Object; obj.value = json;

 if (ps.prompt(null, 'Logins - JSON', txt, obj, null, {})){
 var fp=Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
 fp.init(window,"",Ci.nsIFilePicker.modeSave);
 fp.defaultString = "firefox-logins.json";

 fp.open((rv) => {
 if (rv == Ci.nsIFilePicker.returnOK || rv == Ci.nsIFilePicker.returnReplace) {
 var fos = Cc['@mozilla.org/network/file-output-stream;1'].createInstance(Ci.nsIFileOutputStream);
 fos.init(fp.file, 0x02 | 0x08 | 0x20, 0666, 0);
 var converter = Cc['@mozilla.org/intl/converter-output-stream;1'].createInstance(Ci.nsIConverterOutputStream);

 converter.init(fos, 'UTF-8', 0, 0);
 converter.writeString(json);
 converter.close();
}})
}}

You can open this firefox-logins.json file in a Firefox tab. You can paste this code in command line in the Web Console.

  • "3-bar" menu button or Tools -> Web Developer

In case the builtin JSON viewer opens go to the Raw tab in the viewer or use the view-source: prefix (view-source:file://) in the location/address bar to get the raw code.


json = document.querySelector("pre").textContent;
var signons = JSON.parse(json);
var names = "";
for (var i=0; SG=signons[i]; i++) {
try {
 var host = SG.hostname||"";
 var user = SG.username||"";
 var pass = SG.password||"";
 names += "<tr><td>"+ (i+1) + "<td>" + host + "<td>" + user + "<td>" + pass;
} catch(e){}
}
var body = '<table border="1" cellspacing="0">\n'+
'<tr class="head">\n'+
'<td>#\n'+
'<td><b>Host</b>\n'+
'<td><b>User name</b>\n'+
'<td><b>Password</b>\n'+
names+
'</table>\n';
document.body.innerHTML = body;
You can use this code in the command line in the <u>Browser Console</u> to export the names and passwords to a file in JSON format. You need to set <b>devtools.chrome.enabled</b> to true on the <b>about:config</b> page to enable the command line. *https://developer.mozilla.org/en/Tools/Browser_Console You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue. *http://kb.mozillazine.org/about:config You need to open the Browser Console. *"3-bar" menu button or Tools -> Web Developer *paste the JavaScript code in the editor area *click Run to run the JavaScript code *click Inspect to inspect the result The default file name is firefox-logins.json ---- <pre><nowiki> /* export the names and passwords in JSON format to firefox-logins.json */ var tokendb = Cc["@mozilla.org/security/pk11tokendb;1"].createInstance(Ci.nsIPK11TokenDB); var token = tokendb.getInternalKeyToken(); try {token.login(true)} catch(e) {Cu.reportError(e)} if (!token.needsLogin() || token.isLoggedIn()) { var passwordmanager = Cc["@mozilla.org/login-manager;1"] .getService(Ci.nsILoginManager); var signons = passwordmanager.getAllLogins({}); var json = JSON.stringify(signons, null, 1); var ps = Services.prompt; var txt = 'Logins: ' + signons.length; var obj = new Object; obj.value = json; if (ps.prompt(null, 'Logins - JSON', txt, obj, null, {})){ var fp=Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); fp.init(window,"",Ci.nsIFilePicker.modeSave); fp.defaultString = "firefox-logins.json"; fp.open((rv) => { if (rv == Ci.nsIFilePicker.returnOK || rv == Ci.nsIFilePicker.returnReplace) { var fos = Cc['@mozilla.org/network/file-output-stream;1'].createInstance(Ci.nsIFileOutputStream); fos.init(fp.file, 0x02 | 0x08 | 0x20, 0666, 0); var converter = Cc['@mozilla.org/intl/converter-output-stream;1'].createInstance(Ci.nsIConverterOutputStream); converter.init(fos, 'UTF-8', 0, 0); converter.writeString(json); converter.close(); }}) }} </nowiki></pre> ----- You can open this firefox-logins.json file in a Firefox tab. You can paste this code in command line in the <u>Web Console</u>. *"3-bar" menu button or Tools -> Web Developer In case the builtin JSON viewer opens go to the Raw tab in the viewer or use the view-source: prefix (view-source:file://) in the location/address bar to get the raw code. ---- <pre><nowiki>json = document.querySelector("pre").textContent; var signons = JSON.parse(json); var names = ""; for (var i=0; SG=signons[i]; i++) { try { var host = SG.hostname||""; var user = SG.username||""; var pass = SG.password||""; names += "<tr><td>"+ (i+1) + "<td>" + host + "<td>" + user + "<td>" + pass; } catch(e){} } var body = '<table border="1" cellspacing="0">\n'+ '<tr class="head">\n'+ '<td>#\n'+ '<td><b>Host</b>\n'+ '<td><b>User name</b>\n'+ '<td><b>Password</b>\n'+ names+ '</table>\n'; document.body.innerHTML = body; </nowiki></pre>

Modified by cor-el

the-edmeister
  • Top 25 Contributor
  • Moderator
5313 solutions 39443 answers

rxtomsn said

WHAT happened to SIMPLe printscrn to capture logins and paswords then use paint to print...that used to work but has problems now? the above solution instructs to do something that is not understandable to average user. please try to find and provide a solution for all of us dummies?

Print Screen works for me in Firefox 43.0, to capture an image of the Login Manager panel.

''rxtomsn [[#answer-834690|said]]'' <blockquote> WHAT happened to SIMPLe printscrn to capture logins and paswords then use paint to print...that used to work but has problems now? the above solution instructs to do something that is not understandable to average user. please try to find and provide a solution for all of us dummies? </blockquote> Print Screen works for me in Firefox 43.0, to capture an image of the Login Manager panel.
rxtomsn 0 solutions 29 answers

Yes, 43 does capture but I get the WHOLE desktop screen,with it . I only want/need the logins and passwords. any suggestions?

Yes, 43 does capture but I get the WHOLE desktop screen,with it . I only want/need the logins and passwords. any suggestions?
rxtomsn 0 solutions 29 answers

THANKS A LOT...I will try it right away and let you know my results!

THANKS A LOT...I will try it right away and let you know my results!
rxtomsn 0 solutions 29 answers

Co-rel, I have been trying to copy/paste the code you sent but have not been able to PASTE in browser console.. I cleared console so it would only have pasted code but it refuses to accept paste! what am I doing wrong??? ireally thank you for trying to help such a dummy..

Co-rel, I have been trying to copy/paste the code you sent but have not been able to PASTE in browser console.. I cleared console so it would only have pasted code but it refuses to accept paste! what am I doing wrong??? ireally thank you for trying to help such a dummy..
cor-el
  • Top 10 Contributor
  • Moderator
16657 solutions 150560 answers

Did you enable the command line in the Browser Console?

You can set devtools.chrome.enabled to true on the about:config page to enable this command line.

You may have to type some text to allow to paste text.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

Did you enable the command line in the Browser Console? You can set <b>devtools.chrome.enabled</b> to true on the <b>about:config</b> page to enable this command line. *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line You may have to type some text to allow to paste text. You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I'll be careful" to continue. *http://kb.mozillazine.org/about:config