X
Нажмите здесь, чтобы перейти на мобильную версию сайта.

Форум поддержки

setting global defaults in firefox 37.0.2

Размещено

Hey Team,

I am having issues setting the defaults of Firefox for all users within our Managed Desktop environment. I have read we can use a mozilla.cfg and a local-settings.js. THough it doesnt seem to be working. I also read about the grepref all.js file. But i cannot seem to see that on our install anywhere.

Can you please assist in helping us setup default preferences for all users who connect across our terminal servers. The links i have used as references are below: http://ilias.ca/blog/2005/03/locking-mozilla-firefox-settings/ http://kb.mozillazine.org/Locking_preferences

Any help would be great.

Regards Buddy Davies MHA Cloud Computing New Zealand

Hey Team, I am having issues setting the defaults of Firefox for all users within our Managed Desktop environment. I have read we can use a mozilla.cfg and a local-settings.js. THough it doesnt seem to be working. I also read about the grepref all.js file. But i cannot seem to see that on our install anywhere. Can you please assist in helping us setup default preferences for all users who connect across our terminal servers. The links i have used as references are below: http://ilias.ca/blog/2005/03/locking-mozilla-firefox-settings/ http://kb.mozillazine.org/Locking_preferences Any help would be great. Regards Buddy Davies MHA Cloud Computing New Zealand

Выбранное решение

You can make the changes in Firefox via the user interface or directly on about:config and then check the prefs.js file after closing Firefox.

You can copy the user_pref lines to mozilla.cfg and change user_pref() to lockPref() calls. The mozilla.cfg file is run as a JavaScript file with full chrome privileges and thus can contain more than pref settings, but any error in the file will throw an exception and abort.

The mozilla.cfg file needs to start with a comment line (//) (this first line will be skipped).

use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

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

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes
Прочитайте этот ответ в контексте 3

Дополнительные сведения о системе

Установленные плагины

  • Adobe PDF Plug-In For Firefox and Netscape 15.7.20033
  • GEPlugin
  • Google Update
  • Intel web components for Intel® Identity Protection Technology
  • Intel web components updater - Installs and updates the Intel web components
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 11.45.2 for Mozilla browsers
  • The plugin allows you to have a better experience with Microsoft Lync
  • The plugin allows you to have a better experience with Microsoft SharePoint
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Shockwave Flash 17.0 r0
  • Adobe Shockwave for Director Netscape plug-in, version 12.1.8.158
  • 5.1.30514.0
  • iTunes Detector Plug-in

Приложение

  • User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0

Дополнительная информация

cor-el
  • Top 10 Contributor
  • Moderator
17481 решений 157977 ответов
Размещено

Выбранное решение

You can make the changes in Firefox via the user interface or directly on about:config and then check the prefs.js file after closing Firefox.

You can copy the user_pref lines to mozilla.cfg and change user_pref() to lockPref() calls. The mozilla.cfg file is run as a JavaScript file with full chrome privileges and thus can contain more than pref settings, but any error in the file will throw an exception and abort.

The mozilla.cfg file needs to start with a comment line (//) (this first line will be skipped).

use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

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

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes
You can make the changes in Firefox via the user interface or directly on about:config and then check the prefs.js file after closing Firefox. You can copy the user_pref lines to mozilla.cfg and change user_pref() to lockPref() calls. The mozilla.cfg file is run as a JavaScript file with full chrome privileges and thus can contain more than pref settings, but any error in the file will throw an exception and abort. The mozilla.cfg file needs to start with a comment line (//) (this first line will be skipped). use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values. Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg. pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0); These functions can be used in the mozilla.cfg file: defaultPref(); // set new default value pref(); // set pref, allow changes in current session lockPref(); // lock pref, disallow changes