fichiers de config policies.json dans /etc/firefox/policies/policies.json user.pref dans ~/.mozilla/profile/XXXX/user.pref
/etc/firefox/syspref.js (obsolete → policies.json)
- syspref.js
// This file can be used to configure global preferences for Firefox // Example: Homepage //pref("browser.startup.homepage", "http://www.weebls-stuff.com/wab/"); # PREFERENCE GENERAL # not working here # pref("browser.contentblocking.category","strict"); // Désactive l'affichage de 'Connaître vos droits' au premier lancement pref("browser.rights.3.shown", true); pref("browser.download.useDownloadDir",false); #not working here pref("pref.browser.language.disable_button.up",false); # pref("intl.accept_languages","fr-fr,fr,en-us,en"); # supprimer cookies en fin de session 2 - simple 0 pref("network.cookie.lifetimePolicy",0); pref("privacy.donottrackheader.enabled",true); #pref("privacy.trackingprotection.enabled",true); #pref("privacy.trackingprotection.socialtracking.enabled",true); # THEME # Desactiver la barre de titres pref("browser.tabs.inTitlebar", 1); #pref("browser.tabs.drawInTitlebar",true); # densite compacte pref("browser.uidensity",1); # Dark theme #pref("ui.systemUsesDarkTheme",1); #pref("browser.in-content.dark-mode",true); # theme dark not working like this pref("extensions.activeThemeID","firefox-compact-dark@mozilla.org"); # autres modif via sebsauvage.net # fenetre avertissement #pref("browser.tabs.warnOnClose",false); #pref("browser.tabs.closeWindowWithLastTab",false); # Desactiver prefetch / vie privee # 1 pas de telechargement en avance pref("network.prefetch-next",false); # 2 pas de DNS en avance pref("network.dns.disablePrefetch",true); # Accelerer firefox en utilisant la ram de preference pref("browser.cache.memory.capacity",256000); pref("browser.cache.memory.max_entry_size",50000); pref("browser.cache.disk.enable",false); # desactivation pocket pref("extensions.pocket.enabled",false); # Securite # eviter le phishing avec unicode en affichant les codes pref("network.IDN_show_punycode",true); # afficher url completes pref("browser.urlbar.trimURLs", false); # zoom sur les pages pref("browser.ui.zoom.force-user-scalable", true); # desactiver autorefresh pref("accessibility.blockautorefresh", true); # desactiver acces presse papier par sites pref("dom.event.clipboardevents.enabled", false); # Reduction frequence sauvegarde pref("browser.sessionstore.interval",120000); # desactiver pop-up mise en plein ecran pref("full-screen-api.warning.timeout",0); # desactiver autoplay des videos pref("media.autoplay.enabled.user-gestures-needed",true); pref("media.autoplay.allow-muted",false); # Ne pas utiliser dossier de téléchargement pref("browser.download.useDownloadDir", false); # Cacher des raccourcis sponso pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); # Startup page pref("startup.homepage_override_url",""); # Desactiver qu'est-ce qu'il y a de nouveau pref("browser.messaging-system.whatsNewPanel.enabled", false); # Desactiver bonjour pref("browser.aboutwelcome.enabled", false); # Desactiver + a propos de mozilla pref("browser.preferences.moreFromMozilla", false);
forcer fr-fr dans /usr/lib/firefox/distribution/distribution.ini en ajoutant
pref.browser.language.disable_button.up=false intl.accept_languages="fr-FR,fr,en-us,en"
et modifier
intl.locale.requested="fr,en-US"
Reste à trouver comment mettre le mode de blocage strict et le thème sombre
extensions
À mettre :
- ublock origin (et adblock pour virer le non utile suivant les besoins)
- privacy badger
- decentraleye (pour éviter de récupérer les données inutiles)
- facebook container
- https everywhere
Moins de blabla
- decentraleye : core/main.js commenter chrome.runtimeblablabla
- privacy badger
Pour pouvoir les désinstaller par la suite /usr/lib/firefox/distribution/extensions
Pour bloquer la désinstallation par la suite /usr/lib/firefox/browser/extensions
/etc/firefox/policies
Policies
about:policies /etc/firefox/policies/policies.json /usr/lib/firefox/distribution/policies.json https://github.com/mozilla/policy-templates/blob/master/README.md désactiver page d'update en indiquant une url vide
{ "policies": { "DisableAppUpdate": true, "OverridePostUpdatePage": "", "DisableFirefoxStudies": true, "DisableTelemetry": true, "UserMessaging": { "WhatsNew": false, "ExtensionRecommendations": false, "FeatureRecommendations": false, "SkipOnboarding": true } } }
- policies.json
{ "policies": { "DisableAppUpdate": true, "Homepage": { "URL": "http://desclicks.net" }, "Preferences": { "browser.policies.loglevel": { "Value": "debug", "Status": "locked" }, "browser.tabs.warnOnClose": { "Value": false, "Status": "default" }, "browser.uidensity": { "Value": 1 }, "browser.tabs.inTitlebar": { "Value": 1 } }, "DisablePocket": true, "DisableTelemetry": true, "FirefoxHome": { "Search": true, "TopSites": false, "SponsoredTopSites": false, "Highlights": false, "Pocket": false, "SponsoredPocket": false, "Snippets": false, "Locked": false }, "NoDefaultBookmarks": true, "OfferToSaveLogins": false, "OverrideFirstRunPage": "", "OverridePostUpdatePage": "", "UserMessaging": { "WhatsNew": false, "ExtensionRecommendations": false, "FeatureRecommendations": false, "UrlbarInterventions": false, "SkipOnboarding": true, "MoreFromMozilla":false }, "DisableFeedbackCommands": true, "DisableFirefoxAccounts": true, "DisableBuiltinPDFViewer": true, "SanitizeOnShutdown": true, "ShowHomeButton": true, "RequestedLocales": ["fr-FR", "fr"], "PromptForDownloadLocation": true, "UseSystemPrintDialog": true, "Extensions": { "Install": ["https://addons.mozilla.org/firefox/downloads/latest/dictionnaire-francais1", "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock", "https://addons.mozilla.org/firefox/downloads/latest/decentraleyes", "https://addons.mozilla.org/firefox/downloads/latest/facebook-container", "https://addons.mozilla.org/firefox/downloads/latest/grammalecte-fr"] }, "ExtensionSettings" : { "uBlock0@raymondhill.net": { "installation_mode": "normal_installed", "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi" } }, "3rdparty": { "Extensions": { "uBlock0@raymondhill.net": { "adminSettings": { "selectedFilterLists": [ "ublock-privacy", "ublock-badware", "ublock-filters", "ublock-badlists", "user-filters", "ublock-quick-fixes", "ublock-abuse", "ublock-unbreak", "adguard-generic", "adguard-mobile", "easylist", "adguard-spyware", "adguard-spyware-url", "block-lan", "easyprivacy", "urlhaus-1", "curben-phishing", "curben-pup", "adguard-annoyance", "adguard-social", "fanboy-thirdparty_social", "fanboy-cookiemonster", "fanboy-annoyance", "fanboy-social", "ublock-social", "ublock-annoyances", "dpollock-0", "plowe-0", "ara-0", "DEU-0", "FRA-0" ] } } } } } }
"SearchEngines": { "Add": [ { "Name": "StartPage fr", "URLTemplate": "https://startpage.com/fr", "Method": "POST", "IconURL": "https://www.startpage.com/sp/cdn/favicons/apple-touch-icon-57x57--default.png", "Alias": "SP", "Description": "Startpage, Le moteur de recherche le plus privé au monde." } ] },
https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig