Basic configuration and default behaviour control for Firefox browser.

Extensions

  • uBlock Origin
  • Violentmonkey
  • Stylus

Advanced Preferences

The Configuration Editor (about:config page) lists Firefox settings known as preferences that are read from the prefs.js and user.js files in the Firefox profile and from application defaults. 1

Fonts

Set CJK Fonts.

NameValue
font.name.monospace.jaSarasa Mono J
font.name.monospace.koSarasa Mono K
font.name.monospace.zh-CNSarasa Mono SC
font.name.monospace.zh-HKSarasa Mono HC
font.name.monospace.zh-TWSarasa Mono TC
font.name.sans-serif.jaSarasa Gothic J
font.name.sans-serif.koSarasa Gothic K
font.name.sans-serif.zh-CNSarasa Gothic SC
font.name.sans-serif.zh-HKSarasa Gothic HC
font.name.sans-serif.zh-TWSarasa Gothic TC
font.name.serif.jaSarasa Gothic J
font.name.serif.koSarasa Gothic K
font.name.serif.zh-CNSarasa Gothic SC
font.name.serif.zh-HKSarasa Gothic HC
font.name.serif.zh-TWSarasa Gothic TC

Privacy & Security

NameValue
privacy.donottrackheader.enabledtrue
signon.rememberSignonsfalse
extensions.formautofill.addresses.enabledfalse
extensions.formautofill.creditCards.enabledfalse
security.dialog_enable_delay0

Policies

To implement this policy support, a policies.json file needs to be created. This file goes into a directory called distribution within the Firefox installation directory. 2

My policies.json:

{
    "policies": {
        "AppAutoUpdate": false,
        "BackgroundAppUpdate": false,
        "DisableAppUpdate": true,
        "DisableDefaultBrowserAgent": true,
        "DisablePocket": true,
        "DisableSetDesktopBackground": true,
        "DisableTelemetry": true,
        "DontCheckDefaultBrowser": true,
        "Extensions": {
            "Uninstall": [
                "[email protected]"
            ]
        },
        "ManualAppUpdateOnly": true,
        "Preferences": {
            "browser.region.update.enabled": {
                "Value": false,
                "Status": "locked"
            },
            "browser.search.region": {
                "Value": "US",
                "Status": "locked"
            }
        }
    }
}
  • Automatic updates and checks are disabled, because my firefox is managed via Scoop.
  • Localization services are locked in the US for avoiding garbage sponsored content (Weibo, Zhihu, etc.) or I don’t needs (Amazon.cn search engine).

The latest information about policies is available in the README on this GitHub repository.