Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How do I print off my Usernames and Passwords as I was able to do in the past. I do NOT like this new account.

  • 4 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 cor-el

more options

All I want to do is make a hard copy of my UserNames and Passwords. It used to be easy but not anymore.

All I want to do is make a hard copy of my UserNames and Passwords. It used to be easy but not anymore.

被采纳的解决方案

Cor-el, This is way too much trouble. It used to be easy and now it's too complicated for me.

Thanks for your response. I will just let it go for now.

Pat

定位到答案原位置 👍 0

所有回复 (4)

more options

Hi vegaspatt, I don't think there was ever a built-in feature to print saved logins. How were you doing it before?

Currently you would need to use one of the "export" methods to archive your list. That's not built-in either, but you can find options in the following thread:

https://support.mozilla.org/questions/1258644

more options

See also this thread:

more options

选择的解决方案

Cor-el, This is way too much trouble. It used to be easy and now it's too complicated for me.

Thanks for your response. I will just let it go for now.

Pat

more options

That is a bit older code.

All you need to do is to paste this code in the Browser Console and copy the login data to the clipboard. You need to enable the command line in the Browser Console to be able to paste this code. You probably need to type some text to allow pasting.

To enable the command line in the Console. Open the Web Console and press F1 to go to the settings page.

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

Select "Enable browser chrome and add-on debugging toolboxes" in the developer tools settings


Paste this code in the Browser Console.

logins = await Services.logins.getAllLogins();
prompt("Logins",JSON.stringify(logins));

You can either save this JSON data to a text file or on beforehand create a new bookmark (bookmarklet) and paste the below posted code in its location field where you normally place a website link. If you have saved JSON login data to the clipboard then click this bookmark on an empty (about:blank) page and paste the clipboard content when prompted. The bookmarklet also works if you open a text file with JSON login data in a Firefox tab. Give the file a .txt file extension to prevent opening the JSON viewer.


javascript:(function(){
try{json = document.querySelector("pre").textContent;}
catch(e){json=prompt(e+"\n\nPaste JSON data","")}
var logins = JSON.parse(json), LG;
var names = "";
for (var i=0; LG=logins[i]; i++) {
try {
 var host = LG.hostname||"";
 var user = LG.username||"";
 var pass = LG.password||"";
 names += "<tr><td>"+ (i+1) + "<td>" + host + "<td>" + user + "<td>" + pass;
} catch(e){}
}
var body = '<table border="0" 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;
})()