/* * name: Personal Arkenfox User.js Overrides * date: 07 Jul 2023 */ /*** [SECTION 0000]: CUSTOM UNDEFINED SETTINGS ***/ /* Restore Compact Mode - 89 Above */ // user_pref("browser.compactmode.show", true); /* Enable closetab to always be displayed */ user_pref("browser.tabs.tabMinWidth", 0); user_pref("browser.tabs.tabClipWidth", 0); // PREF: Don't trim HTTP off of URLs in the address bar. user_pref("browser.urlbar.trimURLs", false); // PREF: Disable Pocket user_pref("browser.pocket.enabled", false); user_pref("extensions.pocket.enabled", false); {{ if (and (hasKey . "firefox") (hasKey .firefox "bookmarks")) }} // PREF: Export bookmarks to HTML automatically when closing Firefox [HIDDEN PREF] user_pref("browser.bookmarks.autoExportHTML", true); user_pref("browser.bookmarks.file", {{ .firefox.bookmarks | quote }}); user_pref("browser.bookmarks.max_backups", 5); {{- end }} /*** [SECTION 0100]: STARTUP ***/ /* 0102: set startup page [SETUP-CHROME] */ user_pref("browser.startup.page", 3); // Resume previous session /* 0103: set HOME+NEWWINDOW page */ user_pref("browser.startup.homepage", "about:home"); // Use Firefox Home /* 0104: set NEWTAB page */ user_pref("browser.newtabpage.enabled", true); // Use New Tab page (for new tabs) /*** [SECTION 1000]: DISK AVOIDANCE ***/ /* 1006: disable favicons in shortcuts */ user_pref("browser.shell.shortcutFavicons", true); // Store actual favicons instead of using generic firefox icons /*** [SECTION 1600]: HEADERS / REFERERS ***/ /* 1601: control when to send a cross-origin referer */ user_pref("network.http.referer.XOriginPolicy", 1); // 0 - Always (FF Default), 1 - Base Domain Only, 2 - Host Only (Arkenfox Default) /*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/ /** SANITIZE ON SHUTDOWN: IGNORES "ALLOW" SITE EXCEPTIONS ***/ /* 2811: set/enforce what items to clear on shutdown (if 2810 is true) [SETUP-CHROME] */ // user_pref("privacy.clearOnShutdown.cache", false); // [DEFAULT: true] user_pref("privacy.clearOnShutdown.history", false); // [DEFAULT: true] // Keep history between sessions user_pref("privacy.clearOnShutdown.sessions", false); // [DEFAULT: true] // Keep session (for restore) /** SANITIZE ON SHUTDOWN: RESPECTS "ALLOW" SITE EXCEPTIONS FF103+ ***/ /* 2815: set "Cookies" and "Site Data" to clear on shutdown (if 2810 is true) [SETUP-CHROME] */ // user_pref("privacy.clearOnShutdown.cookies", false); // Cookies /** SANITIZE MANUAL: IGNORES "ALLOW" SITE EXCEPTIONS ***/ /* 2820: reset default items to clear with Ctrl-Shift-Del [SETUP-CHROME] */ // user_pref("privacy.cpd.cache", false); // [DEFAULT: true] // user_pref("privacy.cpd.history", false); // [DEFAULT: true] // user_pref("privacy.cpd.sessions", false); // [DEFAULT: true] // user_pref("privacy.cpd.cookies", false); /*** [SECTION 4500]: RFP (RESIST FINGERPRINTING) ***/ /* 4501: enable privacy.resistFingerprinting [FF41+] */ user_pref("privacy.resistFingerprinting", false); // Twitch will not work with this enabled /* 4504: enable RFP letterboxing [FF67+] */ // Reason: Disabled as this really makes video players and sites take up much less space // This is likely due to privacy.window.maxInnerWidth and Height needing to be manually set based on resolution user_pref("privacy.resistFingerprinting.letterboxing", false); // [HIDDEN PREF] /* 4520: disable WebGL (Web Graphics Library) */ user_pref("webgl.disabled", false); // Web games may require webgl (e.g. itch.io games)