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

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

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

Post by Rickkins »

Is there a way...??

Thanks.
Rickkins
Posts: 522
Joined: January 12th, 2004, 3:25 pm

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

Post by Rickkins »

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

http://forums.mozillazine.org/viewtopic ... &t=3071953
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

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

Post by morat »

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-lo ... x-lockwise

Reference
http://searchfox.org/mozilla-release/se ... xportAsCSV

Edit:

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

nsILoginManager
http://developer.mozilla.org/docs/Mozil ... ginManager

nsILoginInfo
http://developer.mozilla.org/docs/Mozil ... ILoginInfo

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: 522
Joined: January 12th, 2004, 3:25 pm

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

Post by Rickkins »

Thanks, I'll give that a whirl....
Rickkins
Posts: 522
Joined: January 12th, 2004, 3:25 pm

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

Post by Rickkins »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

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

Post by morat »

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: 522
Joined: January 12th, 2004, 3:25 pm

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

Post by Rickkins »

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.
Post Reply