搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

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 有這個問題
  • 1 次檢視
  • 最近回覆由 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;
})()