_: {
  programs.librewolf.profiles.main.settings = {
    "browser.tabs.allow_transparent_browser" = true;
    "widget.use-xdg-desktop-portal.file-picker" = 1;
    "widget.use-xdg-desktop-portal.location" = 1;
    "widget.use-xdg-desktop-portal.mime-handler" = 1;
    "widget.use-xdg-desktop-portal.open-uri" = 1;
    "widget.use-xdg-desktop-portal.settings" = 1;

    "zen.welcome-screen.seen" = true;
    "zen.watermark.enabled" = false;
    "browser.ml.chat.enabled" = false;
    "extensions.ml.enabled" = false;
    "browser.ml.linkPreview.enabled" = false;
    "browser.tabs.groups.smart.enabled" = false;
    "browser.tabs.groups.smart.userEnabled" = false;
    # Derived from https://github.com/arcnmx/home/blob/9eb1cd4dd43883e1a0c6a2a55c00d7c3bede1776/cfg/firefox/default.nix#L7
    # and https://git.ztn.sh/zotan/snowleopard/src/branch/dev/assets/prefs.js
    "services.sync.engine.prefs" = false;
    "services.sync.engine.prefs.modified" = false;
    "services.sync.engine.passwords" = false;
    "services.sync.declinedEngines" = "passwords,adblockplus,prefs";
    "media.eme.enabled" = true; # whee drm
    "gfx.webrender.all.qualified" = true;
    "gfx.webrender.all" = true;
    "webgl.enable-draft-extensions" = true;
    "layers.acceleration.force-enabled" = true;
    "gfx.canvas.azure.accelerated" = true;
    "browser.ctrlTab.recentlyUsedOrder" = false;
    "privacy.resistFingerprinting.block_mozAddonManager" = true;
    "extensions.webextensions.restrictedDomains" = "";
    "browser.shell.checkDefaultBrowser" = false;
    "spellchecker.dictionary" = "en-CA";
    "ui.context_menus.after_mouseup" = true;
    "browser.warnOnQuit" = false;
    "browser.quitShortcut.disabled" = true;
    "browser.startup.homepage" = "about:blank";
    "browser.contentblocking.category" = "standard"; # change for adnauseum: 2025-12-04
    "browser.discovery.enabled" = false;
    "browser.tabs.multiselect" = true;
    "browser.tabs.remote.separatedMozillaDomains" = "";
    "browser.tabs.remote.separatePrivilegedContentProcess" = false;
    "browser.tabs.remote.separatePrivilegedMozillaWebContentProcess" = false;
    "browser.tabs.unloadOnLowMemory" = true;
    "browser.tabs.closeWindowWithLastTab" = false;
    "browser.newtab.privateAllowed" = true;
    "browser.newtabpage.enabled" = false;
    "browser.urlbar.placeholderName" = "";
    "extensions.privatebrowsing.notification" = false;
    "browser.startup.page" = 3;
    "devtools.chrome.enabled" = true;
    #"devtools.debugger.remote-enabled" = true;
    "devtools.inspector.showUserAgentStyles" = true;
    "services.sync.prefs.sync.privacy.donottrackheader.value" = false;
    "services.sync.prefs.sync.browser.safebrowsing.malware.enabled" = false;
    "services.sync.prefs.sync.browser.safebrowsing.phishing.enabled" = false;
    "app.shield.optoutstudies.enabled" = true;
    "datareporting.healthreport.uploadEnabled" = false;
    "datareporting.policy.dataSubmissionEnabled" = false;
    "datareporting.sessions.current.clean" = true;
    "devtools.onboarding.telemetry.logged" = false;
    "toolkit.telemetry.updatePing.enabled" = false;
    "browser.ping-centre.telemetry" = false;
    "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
    "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
    "toolkit.telemetry.bhrPing.enabled" = false;
    "toolkit.telemetry.enabled" = false;
    "toolkit.telemetry.firstShutdownPing.enabled" = false;
    "toolkit.telemetry.hybridContent.enabled" = false;
    "toolkit.telemetry.newProfilePing.enabled" = false;
    "toolkit.telemetry.reportingpolicy.firstRun" = false;
    "toolkit.telemetry.shutdownPingSender.enabled" = false;
    "toolkit.telemetry.unified" = false;
    "toolkit.telemetry.server" = "";
    "toolkit.telemetry.archive.enabled" = false;
    "toolkit.telemetry.coverage.opt-out" = true;
    "toolkit.coverage.enabled" = false;
    "toolkit.coverage.endpoint.base" = "";
    "toolkit.crashreporter.infoURL" = "";
    "browser.onboarding.enabled" = false;
    "experiments.enabled" = false;
    "network.allow-experiments" = false;
    "social.directories" = "";
    "social.remote-install.enabled" = false;
    "social.toast-notifications.enabled" = false;
    "social.whitelist" = "";
    "browser.safebrowsing.malware.enabled" = false;
    "browser.safebrowsing.blockedURIs.enabled" = false;
    "browser.safebrowsing.downloads.enabled" = false;
    "browser.safebrowsing.downloads.remote.enabled" = false;
    "browser.safebrowsing.phishing.enabled" = false;
    "dom.ipc.plugins.reportCrashURL" = false;
    "breakpad.reportURL" = "";
    "beacon.enabled" = false;
    "browser.search.geoip.url" = "";
    "browser.search.region" = "CA";
    "browser.search.suggest.enabled" = true;
    "browser.search.update" = false;
    "browser.selfsupport.url" = "";
    "extensions.getAddons.cache.enabled" = false;
    "extensions.pocket.enabled" = false;
    "geo.enabled" = false;
    "geo.wifi.uri" = false;
    "keyword.enabled" = true;
    "media.getusermedia.screensharing.enabled" = false;
    "media.video_stats.enabled" = false;
    "device.sensors.enabled" = false;
    "dom.battery.enabled" = false;
    "dom.enable_performance" = false;
    "network.dns.disablePrefetch" = false;
    "network.http.speculative-parallel-limit" = 8;
    "network.predictor.cleaned-up" = true;
    "network.predictor.enabled" = true;
    "network.prefetch-next" = true;
    "security.dialog_enable_delay" = 300;
    "dom.event.contextmenu.enabled" = true;
    "reader.parse-on-load.enabled" = false;
    "media.webspeech.synth.enabled" = false;
    "privacy.trackingprotection.enabled" = true;
    "privacy.trackingprotection.fingerprinting.enabled" = true;
    "privacy.trackingprotection.cryptomining.enabled" = true;
    "privacy.trackingprotection.introCount" = 20;
    "signon.rememberSignons" = false;
    "xpinstall.whitelist.required" = false;
    "xpinstall.signatures.required" = false;
    "general.smoothScroll" = false;
    "general.warnOnAboutConfig" = false;
    "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
  };
}
