From 39218372162f492a2d76522deb51a1e16af24cfe Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 14 Jan 2023 10:14:43 +0000 Subject: [PATCH] Update 10 files - /system/usr/lib/firefox/distribution/policies.json - /software.yml - /home/dot_local/firefox/prefs.js - /home/dot_local/firefox/firefox.cfg - /home/dot_local/firefox/defaults/pref/autoconfig.js - /home/dot_local/firefox/distribution/policies.json - /home/dot_local/firefox/profiles.ini - /home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl - /home/.chezmoidata.yaml - /docs/TODO.md --- docs/TODO.md | 2 +- home/.chezmoidata.yaml | 3 + .../run_onchange_after_40-firefox.tmpl | 64 ++++++++ .../firefox/defaults/pref/autoconfig.js | 2 + .../firefox/distribution/policies.json | 74 +++++++++ home/dot_local/firefox/firefox.cfg | 102 +++++++++++++ home/dot_local/firefox/prefs.js | 144 ++++++++++++++++++ home/dot_local/firefox/profiles.ini | 19 +++ software.yml | 5 + .../lib/firefox/distribution/policies.json | 66 +++++++- 10 files changed, 478 insertions(+), 3 deletions(-) create mode 100644 home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl create mode 100644 home/dot_local/firefox/defaults/pref/autoconfig.js create mode 100644 home/dot_local/firefox/distribution/policies.json create mode 100644 home/dot_local/firefox/firefox.cfg create mode 100644 home/dot_local/firefox/prefs.js create mode 100644 home/dot_local/firefox/profiles.ini diff --git a/docs/TODO.md b/docs/TODO.md index 92d1640c..2070f58c 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -4,7 +4,7 @@ add to PATH: '%ProgramFiles(x86)%\mitmproxy\bin' '%ProgramFiles(x86)%\juju' - +# https://github.com/graysky2/profile-cleaner ### POSSIBLY USEFUL SOFTWARE https://hackjutsu.com/Lepton/ * Incorporate /home/linuxbrew/.linuxbrew/etc/bash_completion.d diff --git a/home/.chezmoidata.yaml b/home/.chezmoidata.yaml index 65022d2b..7f3ddae4 100644 --- a/home/.chezmoidata.yaml +++ b/home/.chezmoidata.yaml @@ -21,6 +21,8 @@ colors: color16: '#FFFFFF' config: gpg: https://raw.githubusercontent.com/drduh/config/master/gpg.conf +firefoxAddOns: + - decentraleyes fonts: main: Montserrat Bold grub: @@ -133,6 +135,7 @@ softwareGroups: - exa - fcp - fd + - firefox-profile - fkill - fzf - git diff --git a/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl new file mode 100644 index 00000000..d5d8b19d --- /dev/null +++ b/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl @@ -0,0 +1,64 @@ +{{- if ne .host.distro.family "windows" -}} +#!/usr/bin/env bash + +{{ includeTemplate "universal/profile" }} +{{ includeTemplate "universal/logg" }} + +### Add Firefox enterprise profile +# TODO - figure out how to do this for other installations like Flatpak and macOS +for FIREFOX_DIR in '/usr/lib/firefox' '/usr/lib/firefox-esr' '/Applications/Firefox.app/Contents/Resources'; do + if [ -d "$FIREFOX_DIR" ] && [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/firefox" ] && command -v rsync > /dev/null; then + sudo rsync -artvu "${XDG_DATA_HOME:-$HOME/.local/share}/firefox" "$FIREFOX_DIR" + fi +done + +### Initiatize Firefox default profiles +if command -v org.mozilla.firefox > /dev/null; then + if [ ! -d "$HOME/.var/app/org.mozilla.firefox" ]; then + logg info 'Running Firefox headlessly to generate default profiles' + firefox --headless & + FIREFOX_PID=$! + sleep 5 + kill "$FIREFOX_PID" + logg info 'Finished running Firefox headlessly' + fi + logg info 'Renaming default profile folders and assigning them human-readable profile names' + DEFAULT_RELEASE_PROFILE="$(find "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox" -mindepth 1 -maxdepth 1 -name "*.default-release")" + mv "$DEFAULT_RELEASE_PROFILE" "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/profile.default" + DEFAULT_PROFILE="$(find "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox" -mindepth 1 -maxdepth 1 -name "*.default")" + mv "$DEFAULT_PROFILE" "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/profile.primary" + logg info 'Adding a secondary profile' + cp -rf "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/profile.primary" "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/profile.secondary" + logg info "Copying "${XDG_DATA_HOME:-$HOME/.local/share}/firefox/profiles.ini" to profile directory" + cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/firefox/profiles.ini" "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/profiles.ini" +fi + +### Install Firefox addons (using list declared in .chezmoidata.yaml) +if command -v org.mozilla.firefox > /dev/null; then + for FIREFOX_PLUGIN in "{{ list .firefoxAddOns | join '" "' }}"; do + logg info 'Ensuring `'"$FIREFOX_PLUGIN"'` is installed' + PLUGIN_HTML="$(mktemp)" + curl --silent "https://addons.mozilla.org/en-US/firefox/addon/$FIREFOX_PLUGIN/" > "$PLUGIN_HTML" + PLUGIN_TMP="$(mktemp)" + cat "$PLUGIN_HTML" | htmlq '#redux-store-state' | sed 's/^//' | sed 's/<\/script>$//' > "$PLUGIN_TMP" + PLUGIN_ID="$(jq '.addons.bySlug.'"$FIREFOX_PLUGIN" "$PLUGIN_TMP")" + if [ "$PLUGIN_ID" != 'null' ]; then + PLUGIN_FILE_ID="$(jq '.addons.byID["'"$PLUGIN_ID"'"].guid' "$PLUGIN_TMP")" + if [ "$PLUGIN_FILE_ID" != 'null' ]; then + PLUGIN_URL="$(cat "$PLUGIN_HTML" | htmlq '.InstallButtonWrapper-download-link' --attribute href)" + PLUGIN_FILENAME="${PLUGIN_FILE_ID}.xpi" + if [ ! -d "$HOME/.var/app/org.mozilla.firefox/.mozilla/extensions/$PLUGIN_FILENAME" ]; then + logg info 'Downloading plugin file for `'"$PLUGIN_FILENAME"'`' + curl "$PLUGIN_URL" -o "$HOME/.var/app/org.mozilla.firefox/.mozilla/extensions/$PLUGIN_FILENAME" + logg success 'Finished downloading plugin file for `'"$PLUGIN_FILENAME"'`' + fi + else + logg warn 'A null Firefox add-on filename was detected for `'"$FIREFOX_PLUGIN"'`' + fi + else + logg warn 'A null Firefox add-on ID was detected for `'"$FIREFOX_PLUGIN"'`' + fi + done +fi + +{{ end -}} diff --git a/home/dot_local/firefox/defaults/pref/autoconfig.js b/home/dot_local/firefox/defaults/pref/autoconfig.js new file mode 100644 index 00000000..e4ea1564 --- /dev/null +++ b/home/dot_local/firefox/defaults/pref/autoconfig.js @@ -0,0 +1,2 @@ +pref("general.config.filename", "firefox.cfg"); +pref("general.config.obscure_value", 0); \ No newline at end of file diff --git a/home/dot_local/firefox/distribution/policies.json b/home/dot_local/firefox/distribution/policies.json new file mode 100644 index 00000000..e1f04a2e --- /dev/null +++ b/home/dot_local/firefox/distribution/policies.json @@ -0,0 +1,74 @@ +{ + "policies": { + "DisplayMenuBar": true, + "DisableFirefoxAccounts": false, + "DisableFormHistory": true, + "DisableBuiltinPDFViewer": false, + "DisableTelemetry": true, + "DisableFirefoxStudies": true, + "DisablePocket": false, + "DontCheckDefaultBrowser": true, + "EnableTrackingProtection": { + "Cryptomining": true, + "Fingerprinting": true, + "Locked": false, + "Value": true + }, + "Homepage": { + "Locked": false, + "StartPage": "previous-session", + "URL": "http://install.doctor" + }, + "NoDefaultBookmarks": true, + "OfferToSaveLogins": false, + "OverrideFirstRunPage": "", + "PasswordManagerEnabled": false, + "NetworkPrediction": false, + "CaptivePortal": false, + "DNSOverHTTPS": { + "Enabled": false + }, + "ExtensionSettings": { + "uBlock0@raymondhill.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi", + "installation_mode": "normal_installed" + }, + "jid1-MnnxcxisBPnSXQ@jetpack": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi", + "installation_mode": "normal_installed" + }, + "CanvasBlocker@kkapsner.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/canvasblocker/latest.xpi", + "installation_mode": "normal_installed" + }, + "https-everywhere@eff.org": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/https-everywhere/latest.xpi", + "installation_mode": "normal_installed" + }, + "ClearURLs@kevinr": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/clearurls/latest.xpi", + "installation_mode": "normal_installed" + }, + "CookieAutoDelete@kennydo.com": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/cookie-autodelete/latest.xpi", + "installation_mode": "normal_installed" + }, + "Decentraleyes@ThomasRientjes": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/decentraleyes/latest.xpi", + "installation_mode": "normal_installed" + }, + "FirefoxMulti-AccountContainers@mozilla.org": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/multi-account-containers/latest.xpi", + "installation_mode": "normal_installed" + }, + "TemporaryContainers@stoically": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/temporary-containers/latest.xpi", + "installation_mode": "normal_installed" + }, + "uMatrix@raymondhill.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/umatrix/latest.xpi", + "installation_mode": "normal_installed" + } + } + } +} diff --git a/home/dot_local/firefox/firefox.cfg b/home/dot_local/firefox/firefox.cfg new file mode 100644 index 00000000..fa6bc3e2 --- /dev/null +++ b/home/dot_local/firefox/firefox.cfg @@ -0,0 +1,102 @@ +// IMPORTANT: Start your code on the 2nd line +pref("app.normandy.api_url", ""); +pref("app.normandy.enabled", false); +pref("app.shield.optoutstudies.enabled", false); +pref("app.update.auto", false); +pref("beacon.enabled", false); +pref("breakpad.reportURL", ""); +pref("browser.aboutConfig.showWarning", false); +pref("browser.cache.offline.enable", false); +pref("browser.crashReports.unsubmittedCheck.autoSubmit", false); +pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); +pref("browser.crashReports.unsubmittedCheck.enabled", false); +pref("browser.newtab.preload", false); +pref("browser.newtabpage.enhanced", false); +pref("browser.newtabpage.introShown", true); +pref("browser.safebrowsing.appRepURL", ""); +pref("browser.safebrowsing.blockedURIs.enabled", false); +pref("browser.safebrowsing.downloads.enabled", false); +pref("browser.safebrowsing.downloads.remote.enabled", false); +pref("browser.safebrowsing.downloads.remote.url", ""); +pref("browser.safebrowsing.enabled", false); +pref("browser.safebrowsing.malware.enabled", false); +pref("browser.safebrowsing.phishing.enabled", false); +pref("browser.selfsupport.url", ""); +pref("browser.send_pings", false); +pref("browser.sessionstore.privacy_level", 0); +pref("browser.shell.checkDefaultBrowser", false); +pref("browser.startup.homepage_override.mstone", "ignore"); +pref("browser.tabs.crashReporting.sendReport", false); +pref("browser.toolbarbuttons.introduced.pocket-button", true); +pref("browser.urlbar.groupLabels.enabled", false); +pref("browser.urlbar.quicksuggest.enabled", false); +pref("browser.urlbar.trimURLs", false); +pref("datareporting.healthreport.service.enabled", false); +pref("datareporting.healthreport.uploadEnabled", false); +pref("datareporting.policy.dataSubmissionEnabled", false); +pref("device.sensors.ambientLight.enabled", false); +pref("device.sensors.enabled", false); +pref("device.sensors.motion.enabled", false); +pref("device.sensors.orientation.enabled", false); +pref("device.sensors.proximity.enabled", false); +pref("dom.battery.enabled", false); +pref("dom.event.clipboardevents.enabled", false); +pref("dom.webaudio.enabled", false); +pref("experiments.activeExperiment", false); +pref("experiments.enabled", false); +pref("experiments.manifest.uri", ""); +pref("experiments.supported", false); +pref("extensions.CanvasBlocker@kkapsner.de.whiteList", ""); +pref("extensions.ClearURLs@kevinr.whiteList", ""); +pref("extensions.Decentraleyes@ThomasRientjes.whiteList", ""); +pref("extensions.FirefoxMulti-AccountContainers@mozilla.whiteList", ""); +pref("extensions.TemporaryContainers@stoically.whiteList", ""); +pref("extensions.autoDisableScopes", 14); +pref("extensions.getAddons.cache.enabled", false); +pref("extensions.getAddons.showPane", false); +pref("extensions.greasemonkey.stats.optedin", false); +pref("extensions.greasemonkey.stats.url", ""); +pref("extensions.shield-recipe-client.api_url", ""); +pref("extensions.shield-recipe-client.enabled", false); +pref("extensions.webservice.discoverURL", ""); +pref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"); +pref("media.autoplay.default", 0); +pref("media.autoplay.enabled", true); +pref("media.eme.enabled", false); +pref("media.gmp-widevinecdm.enabled", false); +pref("media.navigator.enabled", false); +pref("media.video_stats.enabled", false); +pref("network.IDN_show_punycode", true); +pref("network.allow-experiments", false); +pref("network.captive-portal-service.enabled", false); +pref("network.cookie.cookieBehavior", 1); +pref("network.http.referer.spoofSource", true); +pref("privacy.donottrackheader.enabled", true); +pref("privacy.donottrackheader.value", 1); +pref("privacy.query_stripping", true); +pref("privacy.trackingprotection.cryptomining.enabled", true); +pref("privacy.trackingprotection.enabled", true); +pref("privacy.trackingprotection.fingerprinting.enabled", true); +pref("privacy.trackingprotection.pbmode.enabled", true); +pref("privacy.usercontext.about_newtab_segregation.enabled", true); +pref("security.ssl.disable_session_identifiers", true); +pref("services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsoredTopSite", false); +pref("signon.autofillForms", false); +pref("toolkit.telemetry.archive.enabled", false); +pref("toolkit.telemetry.bhrPing.enabled", false); +pref("toolkit.telemetry.cachedClientID", ""); +pref("toolkit.telemetry.enabled", false); +pref("toolkit.telemetry.firstShutdownPing.enabled", false); +pref("toolkit.telemetry.hybridContent.enabled", false); +pref("toolkit.telemetry.newProfilePing.enabled", false); +pref("toolkit.telemetry.prompted", 2); +pref("toolkit.telemetry.rejected", true); +pref("toolkit.telemetry.reportingpolicy.firstRun", false); +pref("toolkit.telemetry.server", ""); +pref("toolkit.telemetry.shutdownPingSender.enabled", false); +pref("toolkit.telemetry.unified", false); +pref("toolkit.telemetry.unifiedIsOptIn", false); +pref("toolkit.telemetry.updatePing.enabled", false); +pref("webgl.disabled", true); +pref("webgl.renderer-string-override", " "); +pref("webgl.vendor-string-override", " "); \ No newline at end of file diff --git a/home/dot_local/firefox/prefs.js b/home/dot_local/firefox/prefs.js new file mode 100644 index 00000000..ae07f09f --- /dev/null +++ b/home/dot_local/firefox/prefs.js @@ -0,0 +1,144 @@ +user_pref("app.normandy.api_url", ""); +user_pref("app.normandy.enabled", false); +user_pref("app.shield.optoutstudies.enabled", false); +user_pref("app.update.auto", false); +user_pref("app.update.enabled", false); +user_pref("beacon.enabled", false); +user_pref("breakpad.reportURL", ""); +user_pref("browser.aboutConfig.showWarning", false); +user_pref("browser.cache.offline.enable", false); +user_pref("browser.crashReports.unsubmittedCheck.autoSubmit", false); +user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); +user_pref("browser.crashReports.unsubmittedCheck.enabled", false); +user_pref("browser.dom.window.dump.enabled", true); +user_pref("browser.download.manager.showWhenStarting", false); +user_pref("browser.EULA.3.accepted", true); +user_pref("browser.EULA.override", true); +user_pref("browser.link.open_external", 2); +user_pref("browser.link.open_newwindow", 2); +user_pref("browser.newtab.preload", false); +user_pref("browser.newtabpage.enhanced", false); +user_pref("browser.newtabpage.introShown", true); +user_pref("browser.offline", false); +user_pref("browser.safebrowsing.appRepURL", ""); +user_pref("browser.safebrowsing.blockedURIs.enabled", false); +user_pref("browser.safebrowsing.downloads.enabled", false); +user_pref("browser.safebrowsing.downloads.remote.enabled", false); +user_pref("browser.safebrowsing.downloads.remote.url", ""); +user_pref("browser.safebrowsing.enabled", false); +user_pref("browser.safebrowsing.malware.enabled", false); +user_pref("browser.safebrowsing.phishing.enabled", false); +user_pref("browser.search.update", false); +user_pref("browser.selfsupport.url", ""); +user_pref("browser.send_pings", false); +user_pref("browser.sessionstore.privacy_level", 0); +user_pref("browser.sessionstore.resume_from_crash", false); +user_pref("browser.shell.checkDefaultBrowser", false); +user_pref("browser.startup.homepage_override.mstone", "ignore"); +user_pref("browser.startup.page", 0); +user_pref("browser.tabs.crashReporting.sendReport", false); +user_pref("browser.tabs.warnOnClose", false); +user_pref("browser.tabs.warnOnOpen", false); +user_pref("browser.toolbarbuttons.introduced.pocket-button", true); +user_pref("browser.urlbar.groupLabels.enabled", false); +user_pref("browser.urlbar.quicksuggest.enabled", false); +user_pref("browser.urlbar.trimURLs", false); +user_pref("datareporting.healthreport.service.enabled", false); +user_pref("datareporting.healthreport.uploadEnabled", false); +user_pref("datareporting.policy.dataSubmissionEnabled", false); +user_pref("device.sensors.ambientLight.enabled", false); +user_pref("device.sensors.enabled", false); +user_pref("device.sensors.motion.enabled", false); +user_pref("device.sensors.orientation.enabled", false); +user_pref("device.sensors.proximity.enabled", false); +user_pref("devtools.errorconsole.enabled", true); +user_pref("dom.battery.enabled", false); +user_pref("dom.disable_open_during_load", false); +user_pref("dom.event.clipboardevents.enabled", false); +user_pref("dom.max_script_run_time", 30); +user_pref("dom.webaudio.enabled", false); +user_pref("experiments.activeExperiment", false); +user_pref("experiments.enabled", false); +user_pref("experiments.manifest.uri", ""); +user_pref("experiments.supported", false); +user_pref("extensions.autoDisableScopes", 14); +user_pref("extensions.blocklist.enabled", false); +user_pref("extensions.CanvasBlocker@kkapsner.de.whiteList", ""); +user_pref("extensions.ClearURLs@kevinr.whiteList", ""); +user_pref("extensions.Decentraleyes@ThomasRientjes.whiteList", ""); +user_pref("extensions.FirefoxMulti-AccountContainers@mozilla.whiteList", ""); +user_pref("extensions.getAddons.cache.enabled", false); +user_pref("extensions.getAddons.showPane", false); +user_pref("extensions.greasemonkey.stats.optedin", false); +user_pref("extensions.greasemonkey.stats.url", ""); +user_pref("extensions.logging.enabled", true); +user_pref("extensions.shield-recipe-client.api_url", ""); +user_pref("extensions.shield-recipe-client.enabled", false); +user_pref("extensions.TemporaryContainers@stoically.whiteList", ""); +user_pref("extensions.update.enabled", false); +user_pref("extensions.update.notifyUser", false); +user_pref("extensions.webservice.discoverURL", ""); +user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"); +user_pref("javascript.options.showInConsole", true); +user_pref("media.autoplay.default", 0); +user_pref("media.autoplay.enabled", true); +user_pref("media.eme.enabled", false); +user_pref("media.gmp-widevinecdm.enabled", false); +user_pref("media.navigator.enabled", false); +user_pref("media.video_stats.enabled", false); +user_pref("network.allow-experiments", false); +user_pref("network.captive-portal-service.enabled", false); +user_pref("network.cookie.cookieBehavior", 1); +user_pref("network.http.max-connections-per-server", 10); +user_pref("network.http.phishy-userpass-length", 255); +user_pref("network.http.referer.spoofSource", true); +user_pref("network.IDN_show_punycode", true); +user_pref("network.manage-offline-status", false); +user_pref("offline-apps.allow_by_default", true); +user_pref("privacy.donottrackheader.enabled", true); +user_pref("privacy.donottrackheader.value", 1); +user_pref("privacy.query_stripping", true); +user_pref("privacy.trackingprotection.cryptomining.enabled", true); +user_pref("privacy.trackingprotection.enabled", true); +user_pref("privacy.trackingprotection.fingerprinting.enabled", true); +user_pref("privacy.trackingprotection.pbmode.enabled", true); +user_pref("privacy.usercontext.about_newtab_segregation.enabled", true); +user_pref("prompts.tab_modal.enabled", false); +user_pref("security.fileuri.origin_policy", 3); +user_pref("security.fileuri.strict_origin_policy", false); +user_pref("security.ssl.disable_session_identifiers", true); +user_pref("security.warn_entering_secure.show_once", false); +user_pref("security.warn_entering_secure", false); +user_pref("security.warn_entering_weak.show_once", false); +user_pref("security.warn_entering_weak", false); +user_pref("security.warn_leaving_secure.show_once", false); +user_pref("security.warn_leaving_secure", false); +user_pref("security.warn_submit_insecure", false); +user_pref("security.warn_viewing_mixed.show_once", false); +user_pref("security.warn_viewing_mixed", false); +user_pref("services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsoredTopSite", false); +user_pref("signon.autofillForms", false); +user_pref("signon.rememberSignons", false); +user_pref("startup.homepage_welcome_url", "about:blank"); +user_pref("toolkit.networkmanager.disable", true); +user_pref("toolkit.telemetry.archive.enabled", false); +user_pref("toolkit.telemetry.bhrPing.enabled", false); +user_pref("toolkit.telemetry.cachedClientID", ""); +user_pref("toolkit.telemetry.enabled", false); +user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); +user_pref("toolkit.telemetry.hybridContent.enabled", false); +user_pref("toolkit.telemetry.newProfilePing.enabled", false); +user_pref("toolkit.telemetry.prompted", 2); +user_pref("toolkit.telemetry.rejected", true); +user_pref("toolkit.telemetry.reportingpolicy.firstRun", false); +user_pref("toolkit.telemetry.server", ""); +user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); +user_pref("toolkit.telemetry.unified", false); +user_pref("toolkit.telemetry.unifiedIsOptIn", false); +user_pref("toolkit.telemetry.updatePing.enabled", false); +user_pref("webdriver_accept_untrusted_certs", true); +user_pref("webdriver_assume_untrusted_issuer", true); +user_pref("webdriver_enable_native_events", true); +user_pref("webgl.disabled", true); +user_pref("webgl.renderer-string-override", " "); +user_pref("webgl.vendor-string-override", " "); diff --git a/home/dot_local/firefox/profiles.ini b/home/dot_local/firefox/profiles.ini new file mode 100644 index 00000000..d21323dc --- /dev/null +++ b/home/dot_local/firefox/profiles.ini @@ -0,0 +1,19 @@ +[Profile2] +Name=Secondary +IsRelative=1 +Path=profile.secondary + +[Profile1] +Name=Primary +IsRelative=1 +Path=profile.primary +Default=1 + +[Profile0] +Name=Default +IsRelative=1 +Path=profile.default-release + +[General] +StartWithLastProfile=1 +Version=2 diff --git a/software.yml b/software.yml index 218272cc..76b91849 100644 --- a/software.yml +++ b/software.yml @@ -331,6 +331,11 @@ softwarePackages: flatpak: com.google.AndroidStudio snap: android-studio yay: android-studio + firefox-profile: + _bin: firefox-profile + _github: https://github.com/saadtazi/firefox-profile-js + _name: Firefox Profile CLI + npm: firefox-profile angular-cli: _bin: ng _desc: null diff --git a/system/usr/lib/firefox/distribution/policies.json b/system/usr/lib/firefox/distribution/policies.json index 26a020a0..1f9f901e 100644 --- a/system/usr/lib/firefox/distribution/policies.json +++ b/system/usr/lib/firefox/distribution/policies.json @@ -1,6 +1,12 @@ { "policies": { + "DisplayMenuBar": true, + "DisableFirefoxAccounts": false, + "DisableFormHistory": true, + "DisableBuiltinPDFViewer": false, "DisableTelemetry": true, + "DisableFirefoxStudies": true, + "DisablePocket": false, "DontCheckDefaultBrowser": true, "EnableTrackingProtection": { "Cryptomining": true, @@ -11,11 +17,67 @@ "Homepage": { "Locked": false, "StartPage": "previous-session", - "URL": "http://betelgeuse.home" + "URL": "http://install.doctor" }, "NoDefaultBookmarks": true, "OfferToSaveLogins": false, "OverrideFirstRunPage": "", - "PasswordManagerEnabled": false + "PasswordManagerEnabled": false, + "NetworkPrediction": false, + "CaptivePortal": false, + "DNSOverHTTPS": { + "Enabled": false + }, + "ExtensionSettings": { + "uBlock0@raymondhill.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi", + "installation_mode": "normal_installed" + }, + "jid1-MnnxcxisBPnSXQ@jetpack": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi", + "installation_mode": "normal_installed" + }, + "CanvasBlocker@kkapsner.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/canvasblocker/latest.xpi", + "installation_mode": "normal_installed" + }, + "https-everywhere@eff.org": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/https-everywhere/latest.xpi", + "installation_mode": "normal_installed" + }, + "ClearURLs@kevinr": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/clearurls/latest.xpi", + "installation_mode": "normal_installed" + }, + "CookieAutoDelete@kennydo.com": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/cookie-autodelete/latest.xpi", + "installation_mode": "normal_installed" + }, + "Decentraleyes@ThomasRientjes": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/decentraleyes/latest.xpi", + "installation_mode": "normal_installed" + }, + "FirefoxMulti-AccountContainers@mozilla.org": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/multi-account-containers/latest.xpi", + "installation_mode": "normal_installed" + }, + "TemporaryContainers@stoically": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/temporary-containers/latest.xpi", + "installation_mode": "normal_installed" + }, + "uMatrix@raymondhill.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/umatrix/latest.xpi", + "installation_mode": "normal_installed" + } + } } } + +{ + "policies": { + + + + + } +} \ No newline at end of file