Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

How To Make mozilla.cfg, override.ini, all-companyname.js, Files To Work Once And For All For All Users

more options

I'm currently trying to apply a fix to the firefox browser (version 23.0.1) on over 250 computers. Setting default webpages, disabling annoying prompts like the default browser and importing bookmarks, and erasing the history on shutdown, or startup. This is very easily done modifying the pref.js file, but I will not edit that file, it's out of the question. Another FF update will erase or overwrite all of my modifications.

I run a computer lab in the university that is locked down using a Net Support School console. You don't need to look that up. Basically all websites are restricted except the ones the ones I whitelist. The websites we use have extensive API's for JS, CSS, Java, PHP, etc... We utilize technology in order for students to use graphing calculators, video's, and taking module test from these white-listed websites, like Pearson, or Aleks. Now with that said, cookies, and stored profile history become a problem, and on some day's up to 25% of the students using the computers need their entire history deleted in order for a page to load. I think I fixed this problem permanently by whitelisting backend sites importing plugins, and API's etc, that I found from the developers console. Whatever. What I've learned from all of this is that Firefox can be very customizable utilizing the "...\Mozilla Firefox\mozilla.cfg" and the "...\Mozilla Firefox\defaults\prefs\all-companyname.js" (or custom.js) The problem, is no matter what I try I can't get these to work. The closest I got was here:

http://www.intrntpirate.com/?p=615

Again, even that ^^ didn't work. I followed these directions to a "T". What is wrong with the above information provided in the link? Why is firefox making harder and harder for us to optimize it for massive deployments across a corporation and a university? I'm not going to do any fancy hacks to avoid the main issue. I need mozilla.cfg, and the all-companyname.js, and the override.ini files to work, if and only if they are still relevant.

These are what my files look like so far:

name: all-lmc.js
location: C:\Program Files (x86)\Mozilla Firefox\defaults\pref\
pref("general.config.filename", "mozilla.cfg");
pref("browser.startup.homepage", "https://(some url)");

name: override.ini
location: C:\Program Files (x86)\Mozilla Firefox\
[XRE]
EnableProfileMigrator=false

name: mozilla.cfg
location: C:\Program Files (x86)\Mozilla Firefox\
//
lockPref("privacy.sanitize.sanitizeOnShutdown", true);
lockPref("privacy.sanitize.promptOnSanitize", false);
lockPref("browser.shell.checkDefaultBrowser", false);
lockPref("toolkit.telemetry.enabled", false);
lockPref("toolkit.telemetry.prompted", 2);
lockPref("toolkit.telemetry.rejected", true);

I've tried using, and not using, the automatic mozilla configurator. I've tried changing lockPref to pref. Nothing works. Not the override.ini, not the all-lmc.js, and not the mozilla.cfg. I've wasted hours reading through blogs of experts telling us to modify files that don't exist, or beating around the bush. I'm done researching. If you have the answer or want to help me figure this out just remember to keep it simple. Please. I ultimately want to package all the config files, with a how to, in a zip folder onto our shared drive. To have FF customized and ready to deploy to different departments across campus.

I'm currently trying to apply a fix to the firefox browser (version 23.0.1) on over 250 computers. Setting default webpages, disabling annoying prompts like the default browser and importing bookmarks, and erasing the history on shutdown, or startup. This is very easily done modifying the pref.js file, but I will not edit that file, it's out of the question. Another FF update will erase or overwrite all of my modifications. I run a computer lab in the university that is locked down using a Net Support School console. You don't need to look that up. Basically all websites are restricted except the ones the ones I whitelist. The websites we use have extensive API's for JS, CSS, Java, PHP, etc... We utilize technology in order for students to use graphing calculators, video's, and taking module test from these white-listed websites, like Pearson, or Aleks. Now with that said, cookies, and stored profile history become a problem, and on some day's up to 25% of the students using the computers need their entire history deleted in order for a page to load. I think I fixed this problem permanently by whitelisting backend sites importing plugins, and API's etc, that I found from the developers console. Whatever. What I've learned from all of this is that Firefox can be very customizable utilizing the "...\Mozilla Firefox\mozilla.cfg" and the "...\Mozilla Firefox\defaults\prefs\all-companyname.js" (or custom.js) The problem, is no matter what I try I can't get these to work. The closest I got was here: http://www.intrntpirate.com/?p=615 Again, even that ^^ didn't work. I followed these directions to a "T". What is wrong with the above information provided in the link? Why is firefox making harder and harder for us to optimize it for massive deployments across a corporation and a university? I'm not going to do any fancy hacks to avoid the main issue. I need mozilla.cfg, and the all-companyname.js, and the override.ini files to work, if and only if they are still relevant. These are what my files look like so far: name: all-lmc.js<br /> location: C:\Program Files (x86)\Mozilla Firefox\defaults\pref\<br /> pref("general.config.filename", "mozilla.cfg");<br /> pref("browser.startup.homepage", "https://(some url)");<br /> name: override.ini<br /> location: C:\Program Files (x86)\Mozilla Firefox\<br /> [XRE]<br /> EnableProfileMigrator=false<br /> <br /> name: mozilla.cfg<br /> location: C:\Program Files (x86)\Mozilla Firefox\<br /> //<br /> lockPref("privacy.sanitize.sanitizeOnShutdown", true);<br /> lockPref("privacy.sanitize.promptOnSanitize", false);<br /> lockPref("browser.shell.checkDefaultBrowser", false);<br /> lockPref("toolkit.telemetry.enabled", false);<br /> lockPref("toolkit.telemetry.prompted", 2);<br /> lockPref("toolkit.telemetry.rejected", true); I've tried using, and not using, the automatic mozilla configurator. I've tried changing lockPref to pref. Nothing works. Not the override.ini, not the all-lmc.js, and not the mozilla.cfg. I've wasted hours reading through blogs of experts telling us to modify files that don't exist, or beating around the bush. I'm done researching. If you have the answer or want to help me figure this out just remember to keep it simple. Please. I ultimately want to package all the config files, with a how to, in a zip folder onto our shared drive. To have FF customized and ready to deploy to different departments across campus.

Athraithe ag cor-el ar

Réiteach roghnaithe

The error console warnings are OK.

Is the general.config.obscure_value pref set to the default value 0?

You can try to save these versions of the files (open them in a Firefox tab and save them via Save Page As). Edit: Note that both files need to start with a comment line (//).


local-settings.js

data:text/plain;charset=utf-8;base64,Ly8gc3RhcnQgZmlsZSB3aXRoIGEgY29tbWVudCBsaW5lCnByZWYoImdlbmVyYWwuY29uZmlnLmZpbGVuYW1lIiwgIm1vemlsbGEuY2ZnIik7CnByZWYoImdlbmVyYWwuY29uZmlnLm9ic2N1cmVfdmFsdWUiLCAwKTsK

mozilla.cfg

data:text/plain;charset=utf-8;base64,Ly8KcHJlZigicHJpdmFjeS5zYW5pdGl6ZS5zYW5pdGl6ZU9uU2h1dGRvd24iLCB0cnVlKTsKcHJlZigicHJpdmFjeS5zYW5pdGl6ZS5wcm9tcHRPblNhbml0aXplIiwgZmFsc2UpOwpwcmVmKCJicm93c2VyLnJpZ2h0cy5vdmVycmlkZSIsIHRydWUpOwpwcmVmKCJhcHAudXBkYXRlLmF1dG8iLCBmYWxzZSk7CnByZWYoImV4dGVuc2lvbnMuYmxvY2tsaXN0LmVuYWJsZWQiLCBmYWxzZSk7CnByZWYoImV4dGVuc2lvbnMuc2hvd25TZWxlY3Rpb25VSSIsIHRydWUpOwpwcmVmKCJicm93c2VyLnNoZWxsLmNoZWNrRGVmYXVsdEJyb3dzZXIiLCBmYWxzZSk7CnByZWYoInRvb2xraXQudGVsZW1ldHJ5LmVuYWJsZWQiLCBmYWxzZSk7CnByZWYoInRvb2xraXQudGVsZW1ldHJ5LnByb21wdGVkIiwgMik7CnByZWYoInRvb2xraXQudGVsZW1ldHJ5LnJlamVjdGVkIiwgdHJ1ZSk7CnByZWYoImFwcC51cGRhdGUuYXV0byIsIGZhbHNlKTsKcHJlZigiYnJvd3Nlci5kb3dubG9hZC51c2VEb3dubG9hZERpciIsIHRydWUpOwpwcmVmKCJicm93c2VyLnNlYXJjaC51cGRhdGUiLCBmYWxzZSk7CnByZWYoInNpZ25vbi5hdXRvZmlsbEZvcm1zIiwgZmFsc2UpOwpwcmVmKCJzaWdub24ucmVtZW1iZXJTaWdub25zIiwgZmFsc2UpOwpwcmVmKCJicm93c2VyLmRvd25sb2FkLm1hbmFnZXIuc2NhbldoZW5Eb25lIiwgdHJ1ZSk7CnByZWYoImJyb3dzZXIuZm9ybWZpbGwuZW5hYmxlIiwgZmFsc2UpOwpwcmVmKCJ4cGluc3RhbGwuZW5hYmxlZCIsIHRydWUpOwo=
Read this answer in context 👍 3

All Replies (1)

more options

Hi Piercerejr, it will be easier for volunteers to assist if you keep your discussion in one thread.

  1. 1
  2. 2