MozillaZine


Import all pass/logins from Palemoon...??

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Rickkins
 
Posts: 519
Joined: January 12th, 2004, 3:25 pm

Post Posted February 27th, 2021, 8:53 am

Is there a way...??

Thanks.

Rickkins
 
Posts: 519
Joined: January 12th, 2004, 3:25 pm

Post Posted February 27th, 2021, 2:55 pm

Here is the link to my Firefox General post, kinda explains my situation a little fuller...

viewtopic.php?f=7&t=3071953

morat
 
Posts: 4693
Joined: February 3rd, 2009, 6:29 pm

Post Posted February 28th, 2021, 9:19 am

Maybe you could use the following code snippet to export login data in Pale Moon, then import login data from a file into Firefox.

Code: Select all
(function () {
  try {
    var signons = Services.logins.getAllLogins();
    console.log(signons);
    var csv = '"url","username","password","httpRealm","formActionOrigin",' +
      '"guid","timeCreated","timeLastUsed","timePasswordChanged"';
    for (var i = 0; i < signons.length; i++) {
      csv += '\n' + '"';
      csv += signons[i].origin              + '","';
      csv += signons[i].username            + '","';
      csv += signons[i].password            + '","';
      csv += signons[i].httpRealm           + '","';
      csv += signons[i].formActionOrigin    + '","';
      csv += signons[i].guid                + '","';
      csv += signons[i].timeCreated         + '","';
      csv += signons[i].timeLastUsed        + '","';
      csv += signons[i].timePasswordChanged + '"';
    }
    csv = csv.replace(/"null"/g, "");
    console.log(csv);
  } catch (e) {
    console.log(e);
  }
})();

More info
http://support.mozilla.org/questions/1253828

Import login data from a file
http://support.mozilla.org/kb/import-login-data-file

Export login data from Firefox Lockwise
http://support.mozilla.org/kb/export-login-data-firefox-lockwise

Reference
http://searchfox.org/mozilla-release/search?q=exportAsCSV

Edit:

Here are the old doc pages. (not actively maintained)

nsILoginManager
http://developer.mozilla.org/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsILoginManager

nsILoginInfo
http://developer.mozilla.org/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsILoginInfo

I don't know what Gecko version your Pale Moon is based on.
Last edited by morat on February 28th, 2021, 3:44 pm, edited 1 time in total.

Rickkins
 
Posts: 519
Joined: January 12th, 2004, 3:25 pm

Post Posted February 28th, 2021, 1:14 pm

Thanks, I'll give that a whirl....

Rickkins
 
Posts: 519
Joined: January 12th, 2004, 3:25 pm

Post Posted March 1st, 2021, 7:55 am

Ok, I'm just gonna admit that I have no idea how to use that code. My coding skills are limited to, sadly, copy and paste.

I have managed to save my pale moon passwords intl an xml file. Anything there...??

Thanks.

morat
 
Posts: 4693
Joined: February 3rd, 2009, 6:29 pm

Post Posted March 1st, 2021, 8:39 am

There was an old addon to export logins, but I doubt the format is the same as the about:logins logins.csv file.

Password Exporter (obsolete)
http://addons.mozilla.org/thunderbird/addon/2848

Sorry, I don't know of a solution.

Rickkins
 
Posts: 519
Joined: January 12th, 2004, 3:25 pm

Post Posted March 1st, 2021, 7:10 pm

morat wrote:There was an old addon to export logins, but I doubt the format is the same as the about:logins logins.csv file.

Password Exporter (obsolete)
http://addons.mozilla.org/thunderbird/addon/2848

Sorry, I don't know of a solution.


been reading a lot over the past couple, seems this a bit of an issue...

Thanks.

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: No registered users and 1 guest