This is my customized firefox build, using autoconfig.js and myfox.cfg to set and lock preferences in firefox. This is not a complete build, as it is missing a number of extensions and other preferences/settings. This is just my own configuration, which I use on my own VMs and setups.
Firefox preferences can be configured by using two configuration files: the autoconfig.js and a configuration (*.cfg). The location of these files can vary depending the OS. More info can be found in the myfox.cfg file.
You can find online an endless library of configurations and methods for Firefox. Most of them will use the user.js file to make the changes per user profile. Since the user.js is soon-to-be deprecated, I adapted arkenfox's user.js to the AutoConf format, which allows me to configure Firefox on multiple VMs and different OSs. The original file was extremely detailed, so I didn't need to make many changes. It also streamlined my configuration to fit my wants/needs.
- Do not modify the contents of the
autoconfig.js, except if you wish to change the name frommyconf.cfgto something else. - All the preferences are explained in detail in the
myconf.cfgfile. All credit goes to arkenfox - In Ubuntu and other Debian-based systems (i.e. Kali) the firefox default installation directory (not esr) is under
/usr/lib/firefox/. You should put theautoconfig.jsfile under.../firefox/defaults/pref/and themyfox.cfgin the root dir (/usr/lib/firefox/).
The available resources on how to configure firefox are endless. For more information on the configuration parameters, you can follow the links provided by arkenfox and also what's inside the template.