{
  # Arkenfox user.js - SHUTDOWN & SANITIZING
  # Version: 140 (14 August 2025)

  # 2810: enable Firefox to clear items on shutdown
  "privacy.sanitize.sanitizeOnShutdown" = false;

  # 2811: set/enforce clearOnShutdown items (FF128+)
  "privacy.clearOnShutdown_v2.cache" = true;
  "privacy.clearOnShutdown_v2.historyFormDataAndDownloads" = true;

  # 2812: set/enforce clearOnShutdown items (FF136+)
  "privacy.clearOnShutdown_v2.browsingHistoryAndDownloads" = true;
  "privacy.clearOnShutdown_v2.downloads" = true;
  "privacy.clearOnShutdown_v2.formdata" = true;

  # 2815: set "Cookies" and "Site Data" to clear on shutdown (FF128+)
  "privacy.clearOnShutdown_v2.cookiesAndStorage" = false;

  # 2820: set manual "Clear Data" items (FF128+)
  "privacy.clearSiteData.cache" = true;
  "privacy.clearSiteData.cookiesAndStorage" = false;
  "privacy.clearSiteData.historyFormDataAndDownloads" = true;

  # 2821: set manual "Clear Data" items (FF136+)
  "privacy.clearSiteData.browsingHistoryAndDownloads" = true;
  "privacy.clearSiteData.formdata" = true;

  # 2830: set manual "Clear History" items (FF128+)
  "privacy.clearHistory.cache" = true;
  "privacy.clearHistory.cookiesAndStorage" = false;
  "privacy.clearHistory.historyFormDataAndDownloads" = true;

  # 2831: set manual "Clear History" items (FF136+)
  "privacy.clearHistory.browsingHistoryAndDownloads" = true;
  "privacy.clearHistory.formdata" = true;

  # 2840: set "Time range to clear" for "Clear Data" and "Clear History"
  "privacy.sanitize.timeSpan" = 0;

  # Legacy shutdown settings (deprecated but may still be used by some versions)
  "privacy.clearOnShutdown.cache" = true;
  "privacy.clearOnShutdown.downloads" = true;
  "privacy.clearOnShutdown.formdata" = true;
  "privacy.clearOnShutdown.history" = true;
  "privacy.clearOnShutdown.cookies" = true;
  "privacy.clearOnShutdown.offlineApps" = true;
  "privacy.clearOnShutdown.sessions" = false;
  "privacy.cpd.sessions" = true;

  # Privacy headers
  "privacy.donottrackheader.enabled" = true;
  "privacy.globalprivacycontrol.enabled" = true;

  # History
  "places.history.enabled" = false;
}
