Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Silently Import Bookmarks from IE to Firefox

  • 5 odpovedí
  • 1 má tento problém
  • 1 zobrazenie
  • Posledná odpoveď od Reod_Dai97

more options

I am in an enterprise environment with over 500 machines, and we are looking for a way to import users Bookmarks from IE to Firefox silently and behind the scenes without requiring user interaction.

Due to security restrictions 3rd party software is not a possibility. Most users have already been using Firefox. We do not want to delete their existing bookmarks in Firefox

I am in an enterprise environment with over 500 machines, and we are looking for a way to import users Bookmarks from IE to Firefox silently and behind the scenes without requiring user interaction. Due to security restrictions 3rd party software is not a possibility. Most users have already been using Firefox. We do not want to delete their existing bookmarks in Firefox

Vybrané riešenie

So to do this, you'll need to use Autoconfig. You can read more about it here:

https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig

Create a file called autoconfig.js and put it in the defaults/pref directory where Firefox is installed.

autoconfig.js pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false);

Then create a file called firefox.cfg where Firefox is installed.

firefox.cfg // const {classes: Cc, interfaces: Ci, utils: Cu} = Components;

let migratedBookmarks = true;

try {

 migratedBookmarks = getPref("bookmarks.migrated.ie");

} catch (e) {}

if (!migratedBookmarks) {

 Cu.import("resource:///modules/MigrationUtils.jsm");
 MigrationUtils.getMigrator("ie").then((migrator) => {
   migrator.migrate(Ci.nsIBrowserProfileMigrator.BOOKMARKS, null, null);
 });
 pref("bookmarks.migrated.ie", true);

}

This code will import bookmarks from IE and then set a pref saying they were imported so it only happens once.

Čítať túto odpoveď v kontexte 👍 0

Všetky odpovede (5)

more options

I'm looking into this.

more options

Mike Kaply said

I'm looking into this.

I'm guessing no Luck?

more options

It's on my very long list. Still looking.

more options

Vybrané riešenie

So to do this, you'll need to use Autoconfig. You can read more about it here:

https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig

Create a file called autoconfig.js and put it in the defaults/pref directory where Firefox is installed.

autoconfig.js pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false);

Then create a file called firefox.cfg where Firefox is installed.

firefox.cfg // const {classes: Cc, interfaces: Ci, utils: Cu} = Components;

let migratedBookmarks = true;

try {

 migratedBookmarks = getPref("bookmarks.migrated.ie");

} catch (e) {}

if (!migratedBookmarks) {

 Cu.import("resource:///modules/MigrationUtils.jsm");
 MigrationUtils.getMigrator("ie").then((migrator) => {
   migrator.migrate(Ci.nsIBrowserProfileMigrator.BOOKMARKS, null, null);
 });
 pref("bookmarks.migrated.ie", true);

}

This code will import bookmarks from IE and then set a pref saying they were imported so it only happens once.

more options

Hello Mike,

This worked, thank you. Also thank you for referencing the page with the AutoConfig information as I quite like the idea of being able to Centrally manage the file if needed.

1) Create a file called autoconfig.js The text in the Autoconfig.js file is: pref("general.config.filename", "firefox.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false);

2) Copy the autoconfig.js file to: "\\%pcname%\c$\Program Files\Mozilla Firefox\defaults\pref\autoconfig.js"

3) Create a file called firefox.cfg This is the text in the firefox.cfg file // const {classes: Cc, interfaces: Ci, utils: Cu} = Components; let migratedBookmarks = true; try {

migratedBookmarks = getPref("bookmarks.migrated.ie");

} catch (e) {} if (!migratedBookmarks) {

Cu.import("resource:///modules/MigrationUtils.jsm");
MigrationUtils.getMigrator("ie").then((migrator) => {
  migrator.migrate(Ci.nsIBrowserProfileMigrator.BOOKMARKS, null, null);
});
pref("bookmarks.migrated.ie", true);

}

4) Copy the firefox.cfg file to: "\\%pcname%\c$\Program Files\Mozilla Firefox\firefox.cfg"

Upravil(a) Reod_Dai97 dňa