Skip to content

Instantly share code, notes, and snippets.

@Iksas
Last active June 8, 2023 15:23
Show Gist options
  • Save Iksas/e370b0ce9cbec2185b4405ee4ffa6624 to your computer and use it in GitHub Desktop.
Save Iksas/e370b0ce9cbec2185b4405ee4ffa6624 to your computer and use it in GitHub Desktop.
Firefox user.js

My Firefox user.js

Type about:profiles into the URL bar to display the profile folder path.

Copy the user.js file to the default profile's root folder.

After restarting Firefox, about:config can be used to check if the settings have been applied correctly.

// disable disk caching to reduce wear on SSD
user_pref("browser.cache.disk.enable", false);
// view PDF documents in the browser without downloading
user_pref("browser.download.open_pdf_attachments_inline", true);
// remove garbage from new tabs
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
// use native macOS full screen for videos
user_pref("full-screen-api.macos-native-full-screen", true);
// disable full screen warning
user_pref("full-screen-api.warning.timeout", 0);
user_pref("full-screen-api.warning.delay", 0);
// disable promos
user_pref("browser.promo.focus.enabled", false);
user_pref("browser.promo.pin.enabled", false);
user_pref("browser.vpn_promo.enabled", false);
// disable "what's new" page
user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
user_pref("startup.homepage_override_url", "about:blank");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment