|
/*
|
|
* name: Personal Arkenfox User.js Overrides
|
|
* date: 07 Jul 2023
|
|
*/
|
|
|
|
/*** [SECTION 0000]: CUSTOM UNDEFINED SETTINGS ***/
|
|
|
|
/* Allow for loading of userChrome.css and userContent.css */
|
|
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
|
|
|
/* Fill SVG Color */
|
|
user_pref("svg.context-properties.content.enabled", true);
|
|
|
|
/* CSS Blur Filter - 88 Above */
|
|
user_pref("layout.css.backdrop-filter.enabled", true);
|
|
|
|
/* 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 0800]: LOCATION BAR / SEARCH BAR / SUGGESTIONS / HISTORY / FORMS ***/
|
|
|
|
/* 0801: disable location bar using search */
|
|
user_pref("keyword.enabled", true); // Easier searching in the omnibar
|
|
|
|
|
|
/*** [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", 0); // Breaks some sites, Use default always (may try 1 in the future)
|
|
|
|
/*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC ***/
|
|
/* 2022: disable all DRM content (EME: Encryption Media Extension) */
|
|
user_pref("media.eme.enabled", true); // Enable for DRM streaming site, such as Netflix, YoutubeTV, etc.
|
|
|
|
|
|
/*** [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+] */
|
|
// Still using the arkenfox setting - causes sites to be unable to detect system theme (dark vs light) and timezone
|
|
// This causes twitch to not allow login due to unsupported browser. Uncomment, login, and comment out again when needed
|
|
// user_pref("privacy.resistFingerprinting", false);
|
|
|
|
/* 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)
|