|
/*
|
|
* name: Personal Arkenfox User.js Overrides
|
|
* date: 07 Jul 2023
|
|
* modified: 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 (hasKey . "firefox") }}
|
|
/* Chezmoi defined configs */
|
|
|
|
{{ if (hasKey .firefox "bookmarks") }}
|
|
/* PREF: Export bookmarks to HTML automatically when closing Firefox (disabled) */
|
|
user_pref("browser.bookmarks.autoExportHTML", true);
|
|
user_pref("browser.bookmarks.file", {{ .firefox.bookmarks | quote }});
|
|
user_pref("browser.bookmarks.max_backups", 5);
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
/*** [SECTION 0100]: STARTUP ***/
|
|
|
|
/* 0102: set startup page [SETUP-CHROME]
|
|
* 0=blank, 1=home, 2=last visited page, 3=resume previous sessio
|
|
* [SETTING] Home>New Windows and Tabs>Homepage and new windows ***/
|
|
user_pref("browser.startup.page", 3);
|
|
|
|
/* 0103: set HOME+NEWWINDOW page
|
|
* about:home=Firefox Home (default, see 0105), custom URL, about:blank
|
|
* [SETTING] Home>New Windows and Tabs>Homepage and new windows ***/
|
|
user_pref("browser.startup.homepage", "about:home");
|
|
|
|
/* 0104: set NEWTAB page
|
|
* true=Firefox Home (default, see 0105), false=blank page
|
|
* [SETTING] Home>New Windows and Tabs>New tabs ***/
|
|
user_pref("browser.newtabpage.enabled", true);
|
|
|
|
|
|
/*** [SECTION 0800]: LOCATION BAR / SEARCH BAR / SUGGESTIONS / HISTORY / FORMS ***/
|
|
|
|
/* 0801: disable location bar using search
|
|
* Don't leak URL typos to a search engine, give an error message instead
|
|
* Examples: "secretplace,com", "secretplace/com", "secretplace com", "secret place.com"
|
|
* [NOTE] This does not affect explicit user action such as using search buttons in the
|
|
* dropdown, or using keyword search shortcuts you configure in options (e.g. "d" for DuckDuckGo)
|
|
* [SETUP-CHROME] Override this if you trust and use a privacy respecting search engine ***/
|
|
user_pref("keyword.enabled", true);
|
|
|
|
|
|
/*** [SECTION 1000]: DISK AVOIDANCE ***/
|
|
|
|
/* 1006: disable favicons in shortcuts
|
|
* URL shortcuts use a cached randomly named .ico file which is stored in your
|
|
* profile/shortcutCache directory. The .ico remains after the shortcut is deleted
|
|
* If set to false then the shortcuts use a generic Firefox icon ***/
|
|
user_pref("browser.shell.shortcutFavicons", true);
|
|
|
|
|
|
/*** [SECTION 1600]: HEADERS / REFERERS
|
|
full URI: https://example.com:8888/foo/bar.html?id=1234
|
|
scheme+host+port+path: https://example.com:8888/foo/bar.html
|
|
scheme+host+port: https://example.com:8888
|
|
[1] https://feeding.cloud.geek.nz/posts/tweaking-referrer-for-privacy-in-firefox/
|
|
***/
|
|
|
|
/* 1601: control when to send a cross-origin referer
|
|
* 0=always (default), 1=only if base domains match, 2=only if hosts match
|
|
* [SETUP-WEB] Breakage: older modems/routers and some sites e.g banks, vimeo, icloud, instagram
|
|
* If "2" is too strict, then override to "0" and use Smart Referer extension (Strict mode + add exceptions) ***/
|
|
user_pref("network.http.referer.XOriginPolicy", 0);
|
|
|
|
|
|
/*** [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]
|
|
* [NOTE] If "history" is true, downloads will also be cleared
|
|
* [NOTE] "sessions": Active Logins: refers to HTTP Basic Authentication [1], not logins via cookies
|
|
* [1] https://en.wikipedia.org/wiki/Basic_access_authentication ***/
|
|
user_pref("privacy.clearOnShutdown.cache", false); // [DEFAULT: true]
|
|
user_pref("privacy.clearOnShutdown.history", false); // [DEFAULT: true]
|
|
user_pref("privacy.clearOnShutdown.sessions", false); // [DEFAULT: true]
|
|
|
|
|
|
/** SANITIZE ON SHUTDOWN: RESPECTS "ALLOW" SITE EXCEPTIONS FF103+ ***/
|
|
/* 2815: set "Cookies" and "Site Data" to clear on shutdown (if 2810 is true) [SETUP-CHROME]
|
|
* [NOTE] Exceptions: A "cookie" block permission also controls "offlineApps" (see note below).
|
|
* serviceWorkers require an "Allow" permission. For cross-domain logins, add exceptions for
|
|
* both sites e.g. https://www.youtube.com (site) + https://accounts.google.com (single sign on)
|
|
* [NOTE] "offlineApps": Offline Website Data: localStorage, service worker cache, QuotaManager (IndexedDB, asm-cache)
|
|
* [WARNING] Be selective with what sites you "Allow", as they also disable partitioning (1767271)
|
|
* [SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow (when on the website in question)
|
|
* [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings ***/
|
|
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]
|
|
* This dialog can also be accessed from the menu History>Clear Recent History
|
|
* Firefox remembers your last choices. This will reset them when you start Firefox
|
|
* [NOTE] Regardless of what you set "downloads" to, as soon as the dialog
|
|
* for "Clear Recent History" is opened, it is synced to the same as "history" ***/
|
|
// 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);
|
|
|