Skip to main content

Setup Firefox

Manual Config

  • Default Search Engine
  • (Optional) Global Scaling - Default Value

Automatic Schema

Author's recommended settings:

  1. Open Profile:

    firefox about:profiles
  2. Find the "Root Directory" line of the table corresponding to "This profile is being used" and click on "Open Directory"

  3. New a file, paste the following code and save it:

    Windows
    notepad user.js
    Unix
    vi user.js
    // After the download is complete, do not submit to Google for detection
    user_pref('browser.safebrowsing.downloads.enabled', false);
    // Select download directory each time
    user_pref('browser.download.useDownloadDir', false);
    // Lock Homepage
    user_pref('browser.startup.homepage', 'about:home');
    // Prevent Autoplay
    user_pref('media.autoplay.default', 5);
    // Search Highlight
    user_pref('findbar.highlightAll', true);
    // Allow middle click paste in the address bar
    user_pref('middlemouse.paste', true);

    // Homepage
    user_pref('browser.urlbar.suggest.searches', false);
    user_pref('browser.newtabpage.activity-stream.showSearch', false);
    user_pref('browser.newtabpage.activity-stream.showSponsoredTopSites', false);
    user_pref('browser.newtabpage.activity-stream.topSitesRows', 4);
    user_pref('browser.newtabpage.activity-stream.section.highlights.rows', 4);
    user_pref('browser.newtabpage.activity-stream.feeds.section.highlights', true);
    user_pref('browser.newtabpage.activity-stream.feeds.snippets', true);

    // HTTPS Only
    user_pref('dom.security.https_only_mode_pbm', true);
    user_pref('dom.security.https_only_mode_ever_enabled', true);
    user_pref('dom.security.https_only_mode_ever_enabled_pbm', true);

    // Automatic cloud completion of address bar
    user_pref('browser.urlbar.suggest.searches', false);

    // ECH
    user_pref('network.dns.echconfig.enabled', true);
    user_pref('network.dns.http3_echconfig.enabled', true);

    // Eliminate visual distractions
    user_pref('ui.key.menuAccessKeyFocuses', false);
    user_pref('extensions.pocket.enabled', false);
    user_pref('browser.aboutConfig.showWarning', false);
  4. Restart Firefox


Attachment: path of Windows MSIX Edition
%LOCALAPPDATA%\Packages\Mozilla.Firefox_n80bbvh6b1yt2\LocalCache\Roaming\Mozilla\Firefox\Profiles

.default-release as default

赞助作者 (Sponse me):