X
Toque aqui para ver a versão para dispositivos móveis desse site.

Fórum de suporte

How to print out my passwords in Firefox?

Postado

Of all the updates and features that Firefox has added to its repertoire over the years, the one item I keep hoping for never seems to be present: The ability to simply print out a hard copy of my logins (username and password). Is that asking too much? Or is that feature present, and I'm just too dumb to find it?

Of all the updates and features that Firefox has added to its repertoire over the years, the one item I keep hoping for never seems to be present: The ability to simply print out a hard copy of my logins (username and password). Is that asking too much? Or is that feature present, and I'm just too dumb to find it?

Solução escolhida

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list.

Preparation: Enable Advanced Features of the Browser Console

This needs to be done once:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste DEVT and pause while the list is filtered

(3) Double-click the devtools.chrome.enabled preference to switch the value from false to true

If you plan to turn this off afterwards, you can keep this tab open.

Running the Script

(1) Select and copy the following script:

try {
  signons = Services.logins.getAllLogins();
  var csv = '"Site","Username","Password"';
  for (var i=0; i<signons.length; i++){
    csv += '\n';
    csv += signons[i].httpRealm ? 
      ('"' + signons[i].hostname + ' (' + signons[i].httpRealm + ')","') : 
      '"' + signons[i].hostname + '","';
    csv += signons[i].username + '","' + signons[i].password + '"';
  }
  console.log(csv);
} catch (err) {
  console.log('Problem reading or outputting logins: '+err);
}

(2) Open Firefox's separate Browser Console window using either:

  • "3-bar" menu button > Web Developer > Browser Console
  • (menu bar) Tools > Web Developer > Browser Console
  • (Windows) Ctrl+Shift+j

(3) Paste the script next to the caret (») -- this is below any messages that appear in the console -- and press Enter to run it. If you use a Master Password, Firefox may require you to enter it now.

Firefox should list out your user names and passwords in CSV format for easy copy/pasting.

There's a similar method in this thread that generates a JSON file: https://support.mozilla.org/questions/1077630

Ler esta resposta 0

Detalhes avançados do sistema

Extensões instaladas

  • Shockwave Flash 32.0 r0

Aplicativo

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Mais informações

jscher2000
  • Top 10 Contributor
8880 soluções 72665 respostas

Solução escolhida

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list.

Preparation: Enable Advanced Features of the Browser Console

This needs to be done once:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste DEVT and pause while the list is filtered

(3) Double-click the devtools.chrome.enabled preference to switch the value from false to true

If you plan to turn this off afterwards, you can keep this tab open.

Running the Script

(1) Select and copy the following script:

try {
  signons = Services.logins.getAllLogins();
  var csv = '"Site","Username","Password"';
  for (var i=0; i<signons.length; i++){
    csv += '\n';
    csv += signons[i].httpRealm ? 
      ('"' + signons[i].hostname + ' (' + signons[i].httpRealm + ')","') : 
      '"' + signons[i].hostname + '","';
    csv += signons[i].username + '","' + signons[i].password + '"';
  }
  console.log(csv);
} catch (err) {
  console.log('Problem reading or outputting logins: '+err);
}

(2) Open Firefox's separate Browser Console window using either:

  • "3-bar" menu button > Web Developer > Browser Console
  • (menu bar) Tools > Web Developer > Browser Console
  • (Windows) Ctrl+Shift+j

(3) Paste the script next to the caret (») -- this is below any messages that appear in the console -- and press Enter to run it. If you use a Master Password, Firefox may require you to enter it now.

Firefox should list out your user names and passwords in CSV format for easy copy/pasting.

There's a similar method in this thread that generates a JSON file: https://support.mozilla.org/questions/1077630

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list. '''Preparation: Enable Advanced Features of the Browser Console''' This needs to be done once: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''DEVT''' and pause while the list is filtered (3) Double-click the '''devtools.chrome.enabled''' preference to switch the value from false to true ''If you plan to turn this off afterwards, you can keep this tab open.'' '''Running the Script''' (1) Select and copy the following script: <pre> try { signons = Services.logins.getAllLogins(); var csv = '"Site","Username","Password"'; for (var i=0; i&lt;signons.length; i++){ csv += '\n'; csv += signons[i].httpRealm ? ('"' + signons[i].hostname + ' (' + signons[i].httpRealm + ')","') : '"' + signons[i].hostname + '","'; csv += signons[i].username + '","' + signons[i].password + '"'; } console.log(csv); } catch (err) { console.log('Problem reading or outputting logins: '+err); } </pre> (2) Open Firefox's separate Browser Console window using either: * "3-bar" menu button > Web Developer > Browser Console * (menu bar) Tools > Web Developer > Browser Console * (Windows) Ctrl+Shift+j (3) Paste the script next to the caret (&raquo;) -- this is below any messages that appear in the console -- and press Enter to run it. If you use a Master Password, Firefox may require you to enter it now. Firefox should list out your user names and passwords in CSV format for easy copy/pasting. There's a similar method in this thread that generates a JSON file: https://support.mozilla.org/questions/1077630
jscher2000
  • Top 10 Contributor
8880 soluções 72665 respostas

Votos como útil

Or if you prefer to use a pre-packaged program, this article lists two options for extracting logins and presumably then you could print them:

https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/

Or if you prefer to use a pre-packaged program, this article lists two options for extracting logins and presumably then you could print them: https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/

Autor da pergunta

Thank you. I wonder why something so simple and convenient as a print option would be left out? Some kind of security issue?

Thank you. I wonder why something so simple and convenient as a print option would be left out? Some kind of security issue?
jscher2000
  • Top 10 Contributor
8880 soluções 72665 respostas

Most settings and data can't be printed out. Just something that not a lot of people asked for?

Most settings and data can't be printed out. Just something that not a lot of people asked for?