a150dbfd |
/// Preferences
// about:preferences
//// General
// about:preferences#general
///// Startup
// Open previous windows and tabs
user_pref("browser.startup.page", 3);
///// Tabs
// Confirm before closing multiple tabs
user_pref("browser.tabs.warnOnClose", true);
///// Digital Rights Management (DRM) Content
// Play DRM-controlled content
user_pref("media.eme.enabled", true);
///// Browsing
// Recommend extensions as you browse
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
// Recommend features as you browse
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
///// Network Settings
// Enable DNS over HTTPS
// user_pref("doh-rollout.disable-heuristics", true);
// user_pref("network.trr.mode", 2);
// Use Provider: Cloudflare (Default)
// user_pref("network.trr.uri", "https://mozilla.cloudflare-dns.com/dns-query");
// Use Provider: Custom
// user_pref("network.trr.uri", "https://dns.quad9.net/dns-query");
// user_pref("network.trr.custom_uri", "https://dns.quad9.net/dns-query");
//// Home
// about:preferences#home
///// New Windows and Tabs
// Homepage and new windows: Blank Page
user_pref("browser.startup.homepage", "about:blank");
// New tabs: Blank Page
user_pref("browser.newtabpage.enabled", false);
///// Firefox Home Content
// Shortcuts: Sponsored shortcuts
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
//// Search
// about:preferences#search
///// Default Search Engine
// DuckDuckGo
// user_pref("browser.urlbar.placeholderName", "DuckDuckGo");
// Google
user_pref("browser.urlbar.placeholderName", "Google");
///// Search Suggestions
// Show search suggestions ahead of browsing history in address bar results
user_pref("browser.urlbar.showSearchSuggestionsFirst", false);
//// Privacy & Security
// about:preferences#privacy
///// Browser Privacy
// Enhanced Tracking Protection: Strict
user_pref("browser.contentblocking.category", "strict");
user_pref("network.cookie.cookieBehavior", 5);
user_pref("network.http.referer.disallowCrossSiteRelaxingDefault", true);
user_pref("privacy.annotate_channels.strict_list.enabled", true);
user_pref("privacy.partition.network_state.ocsp_cache", true);
user_pref("privacy.trackingprotection.enabled", true);
user_pref("privacy.trackingprotection.socialtracking.enabled", true);
// Logins and Passwords: Ask to save logins and passwords for websites
user_pref("signon.rememberSignons", false);
// Address Bar: Browsing history
user_pref("browser.urlbar.suggest.history", false);
// Address Bar: Bookmarks
user_pref("browser.urlbar.suggest.bookmark", true);
// Address Bar: Open tabs
user_pref("browser.urlbar.suggest.openpage", false);
// Address Bar: Shortcuts
user_pref("browser.urlbar.suggest.topsites", false);
// Address Bar: Search engines
user_pref("browser.urlbar.suggest.engines", false);
///// Firefox Data Collection and Use
// Allow Firefox to send technical and interaction data to Mozilla
user_pref("datareporting.healthreport.uploadEnabled", false);
// Allow Firefox to install and run studies
user_pref("app.shield.optoutstudies.enabled", false);
///// Security
// Block dangerous and deceptive content
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", false);
// HTTPS-Only Mode: Enable HTTPS-Only Mode in all windows
user_pref("dom.security.https_only_mode", true);
user_pref("dom.security.https_only_mode_ever_enabled", true);
|
3880947d |
/// Clipboard
// Disable legacy `document.execCommand()` with `"cut"` and `"copy"` arguments.
// <https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#cut>
// <https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#copy>
user_pref("dom.allow_cut_copy", false);
// Disable `document.addEventListener()` with `"cut"`, `"copy"`, and `"paste"`
// arguments.
// <https://developer.mozilla.org/en-US/docs/Web/API/Document/cut_event>
// <https://developer.mozilla.org/en-US/docs/Web/API/Document/copy_event>
// <https://developer.mozilla.org/en-US/docs/Web/API/Document/paste_event>
user_pref("dom.event.clipboardevents.enabled", false);
// Disable `window.navigator.clipboard` `read{,Text}` and `write{,Text}` async
// calls, which take/return a `ClipboardItem` (formerly `DataTransfer`). (Only
// `read` requires explicit permission from the user, not `write`.)
// <https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator>
// <https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard>
// <https://developer.mozilla.org/en-US/docs/Web/API/Clipboard>
// <https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem>
// <https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent>
// <https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem>
// <https://hg.mozilla.org/mozilla-central/rev/7ea0b5653ebeb4ccf6f697bac20698725e2b44c7>
// <https://hg.mozilla.org/mozilla-central/rev/7dedaec9dba5faa3d3549ca868ccc278e293db42>
user_pref("dom.events.asyncClipboard.dataTransfer", false);
user_pref("dom.events.asyncClipboard.clipboardItem", false);
user_pref("dom.events.asyncClipboard.readText", false);
|