39 lines
2.2 KiB
Nix
39 lines
2.2 KiB
Nix
/*** [SECTION 0200]: GEOLOCATION / LANGUAGE / LOCALE ***/
|
|
{
|
|
/** GEOLOCATION ***/
|
|
/* 0201: disable Location-Aware Browsing
|
|
* [NOTE] Best left at default "true", fingerprintable, already behind a prompt (see 0202)
|
|
* [1] https://www.mozilla.org/firefox/geolocation/ ***/
|
|
# user_pref("geo.enabled", false);
|
|
/* 0202: set a default permission for Location (see 0201) [FF58+]
|
|
* 0=always ask (default), 1=allow, 2=block
|
|
* [NOTE] Best left at default "always ask", fingerprintable via Permissions API
|
|
* [SETTING] to add site exceptions: Ctrl+I>Permissions>Access Your Location
|
|
* [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Location>Settings ***/
|
|
# user_pref("permissions.default.geo", 2);
|
|
/* 0203: use Mozilla geolocation service instead of Google when geolocation is enabled [FF74+]
|
|
* Optionally enable logging to the console (defaults to false) ***/
|
|
"geo.provider.network.url" = "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%";
|
|
# user_pref("geo.provider.network.logging.enabled", true); // [HIDDEN PREF]
|
|
/* 0204: disable using the OS's geolocation service ***/
|
|
"geo.provider.ms-windows-location" = false; # [WINDOWS]
|
|
"geo.provider.use_corelocation" = false; # [MAC]
|
|
"geo.provider.use_gpsd" = false; # [LINUX]
|
|
/* 0207: disable region updates
|
|
* [1] https://firefox-source-docs.mozilla.org/toolkit/modules/toolkit_modules/Region.html ***/
|
|
"browser.region.network.url" = ""; # [FF78+]
|
|
"browser.region.update.enabled" = false; # [FF79+]
|
|
/* 0208: set search region
|
|
* [NOTE] May not be hidden if Firefox has changed your settings due to your region (see 0207) ***/
|
|
# user_pref("browser.search.region", "US"); // [HIDDEN PREF]
|
|
|
|
/** LANGUAGE / LOCALE ***/
|
|
/* 0210: set preferred language for displaying web pages
|
|
* [TEST] https://addons.mozilla.org/about ***/
|
|
"intl.accept_languages" = "en-US, en";
|
|
/* 0211: use US English locale regardless of the system locale
|
|
* [SETUP-WEB] May break some input methods e.g xim/ibus for CJK languages [1]
|
|
* [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=867501,1629630 ***/
|
|
"javascript.use_us_english_locale" = true; # [HIDDEN PREF]
|
|
}
|