Personalize and lock preferences for Firefox using configuration files

Few days ago I posted how configure Mozilla Firefox and lock some preferences using Group Policy, but, unfortunately, that has few options of configuration.

Is this post I will explain a way to configure Firefox and lock some preferences using configuration files.
After you do that, you could copy these files using scripts to the local computers to manage the Firefox installations.

First of all, create a new file named all-settings.js at:

C:\Program Files\Mozilla Firefox\defaults\pref (for 32 bits installation)
C:\Program Files (x86)\Mozilla Firefox\defaults\pref (for 64 bits installation)

This file must contains:

pref("general.config.filename","file.cfg");
pref("general.config.obscure_value",0);

You must replace in the first line "file.cfg" choosing the name you want for the future file that will contain the Firefox configurations.

The second file (file.cfg) must be placed at:
C:\Program Files\Mozilla Firefox\ (for 32 bits installation)
C:\Program Files (x86)\Mozilla Firefox\ (for 64 bits installation)

In this file you'll insert the lines that will enable or disable a configuration.
To see the possible lines, access http://kb.mozillazine.org/About:config_entries
Below there is an example:

//
lockPref("browser.startup.homepage","http://www.google.com");
lockPref("browser.shell.checkDefaultBrowser",false);
lockPref("app.update.enabled",false);
lockPref("extensions.update.enabled",false);
lockPref("browser.search.update",false);
lockPref("signon.rememberSignons",false);
lockPref("startup.homepage_override_url","");
lockPref("startup.homepage_welcome_url","");
lockPref("browser.rights.3.shown",true);
lockPref("dom.disable_open_during_load",false);

After you restart Mozilla Firefox, it must take the new configurations.

An example of how it applies the configurations - this example refers to the line lockPref("browser.shell.checkDefaultBrowser",false);




http://kb.mozillazine.org/About:config_entries
http://kb.mozillazine.org/Locking_preferences


Comentários

Postagens mais visitadas deste blog

Lava-louças Brastemp BLE20 - RESOLVIDO - Piscando luzes Iniciar e enxaguar/Erro ao jogar água fora

Microsoft Print to PDF não aparece na lista de impressoras nos programas