Chapter 7. Firefox

  1. Make Firefox the default

    If necessary: sudo update-alternatives --set gnome-www-browser /usr/bin/firefox

  2. Sync

    Set up Firefox sync.

  3. Configuration

    Copy preference file to profile. cp ~/Dropbox/Basic/new_machine/linux/firefox/user.js ~/.config/mozilla/firefox/PROFILE_DIR/

    Note

    ~/.config/mozilla/firefox/PROFILE_DIR/user.js source

    // Mozilla User Preferences
    
    // user.js overrides
    
    user_pref("browser.aboutConfig.showWarning", false);
    user_pref("browser.bookmarks.addedImportButton", false);
    user_pref("browser.bookmarks.restore_default_bookmarks", false);
    user_pref("browser.ml.chat.enabled", false);
    user_pref("browser.ml.chat.hideLocalhost", false);
    user_pref("browser.ml.chat.menu", false);
    user_pref("browser.ml.chat.page", false);
    user_pref("browser.ml.chat.page.footerBadge", false);
    user_pref("browser.ml.chat.page.menuBadge", false);
    user_pref("browser.ml.chat.sidebar", false);
    user_pref("browser.ml.enable", false);
    user_pref("browser.ml.linkPreview.enabled", false);
    user_pref("browser.tabs.groups.smart.userEnabled", false);
    user_pref("browser.termsofuse.prefMigrationCheck", true);
    user_pref("browser.toolbarbuttons.introduced.sidebar-button", true);
    user_pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[],\"nav-bar\":[\"sidebar-button\",\"back-button\",\"forward-button\",\"stop-reload-button\",\"customizableui-special-spring1\",\"vertical-spacer\",\"urlbar-container\",\"customizableui-special-spring2\",\"downloads-button\",\"fxa-toolbar-menu-button\",\"unified-extensions-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"firefox-view-button\",\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"vertical-tabs\":[],\"PersonalToolbar\":[\"import-button\",\"personal-bookmarks\"]},\"seen\":[\"developer-button\",\"screenshot-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"vertical-tabs\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":23,\"newElementCount\":2}");
    user_pref("browser.urlbar.shortcuts.actions", false);
    user_pref("browser.urlbar.shortcuts.bookmarks", false);
    user_pref("browser.urlbar.shortcuts.history", false);
    user_pref("browser.urlbar.shortcuts.tabs", false);
    user_pref("browser.urlbar.showSearchTerms.enabled", false);
    user_pref("browser.urlbar.suggest.engines", false);
    user_pref("browser.urlbar.suggest.history", false);
    user_pref("browser.urlbar.suggest.quickactions", false);
    user_pref("browser.urlbar.suggest.quicksuggest.all", false);
    user_pref("browser.urlbar.suggest.searches", false);
    user_pref("browser.urlbar.suggest.topsites", false);
    user_pref("datareporting.healthreport.uploadEnabled", false);
    user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
    user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1770182756222");
    user_pref("datareporting.usage.uploadEnabled", false);
    user_pref("trailhead.firstrun.didSeeAboutWelcome", true);
    user_pref("browser.enable_automatic_image_resizing", false);
    user_pref("browser.link.open_newwindow.restriction", 0);
    user_pref("browser.search.context.loadInBackground", true);
    user_pref("browser.tabs.groups.smart.enabled", false);
    user_pref("dom.webnotifications.enabled", false);
    
  4. Recover the home page

    Changing new windows and tabs to use a blank page, and, just in case, turning off the privacy-compromising settings in Firefox Home Content. TODO: try to get all of these settings into user.js

  5. Go through config and disable all of the bad settings, including (as of 2025-09):

    1. Use AI to suggest tabs and a name for tab groups OFF

    2. Play DRM-controlled content OFF

    3. ¿Enable link previews?

    4. For Search, change engine to DuckDuckGo, disable suggestions, turn off most of Firefox Suggest, disable the worst search engines

    5. In Privacy & Security, turn off Send Technical and interaction data to Mozilla and related. Make sure Allow websites to perform privacy-preserving ad measurement is OFF.

  6. Note that Firefox tends to spam syslog, so we installed auditd along with the other debian packages; it segregates all apparmor messages and calms down the logs.

  7. Install Extensions

    Extensions may come over automatically from sync, but this is inconsistent. If necessary, load them manually: Ctrl+Shift+A

    • UBlock Origin

    • Unhook (youtube comments)

    • Noscript

    • Firefox Multi-Account Containers

    • Tree Style Tab (laptop only)

  8. TODOs for Firefox