For 2 years now, as I recommend to all my friends to use Firefox , as a browser for everyday surfing on the Internet. I love this browser for its flexibility in setting up, speed and concern for privacy. Many times in the forums I was asked about some particular cases on customization, so I decided to write an article with a detailed description of the settings, like a cheat sheet for myself and to share it, in case of new questions.
I hope it will help a little in popularizing this wonderful browser.
As soon as I had the Internet many years ago, I immediately, on the advice of my friends, began experimenting with various browsers. I do not remember exactly, but I constantly jumped between opera and firelis. And then there was chrome, which was on every corner and climbed from all the cracks. At first it was rather damp and I often spent time on firelight, having thrown the opera at all. But over time, chrome began to work faster and I finally switched only to him. And 2 years ago I worked in the same company, where I had a working laptop with 8 Gb RAM, on Ubuntu and with an obligatory virtual machine for Windows , since the company used Outlook and Skype for Business . Of course, I didn’t work in such conditions for a long time, but while I was working, everything was constantly hanging; chrome with Intellij Idea + the virtualka was eating up all my memory and going to the swap by evening was an ordinary routine until I heard about the release of the Firefox 57.0 Quantum version, rewrite parts of the Gecko engine on Rust , using the developments of the experimental Servo engine.
Since I had nothing to lose, I decided to try to return to the once-favorite browser.
And what was my surprise when the speed of Firefox ceased to give chrome. Since I did not use a lot of add-ons, I easily threw all my bookmarks onto a new browser and began to actively use it.
And here I was waiting for another surprise. My working laptop stopped going to swap every day. I was pleasantly surprised.
During the transition, I came across several articles on how to set up Firefox and did not stop wondering how much more flexible it is than chrome. I will try to describe this flexibility to you.
Before you set up something, you need to know exactly where to do it. There are several ways to customize Firefox . Perhaps let's start with the most obvious - the menu item Preferences (I have an English version of the browser language).
I will not describe this option in detail, because it is obvious and most users of the browser opened it. Therefore, there will be only a couple of interesting nuances.
General -> Fonts & Colors -> Advanced
A red tick is highlighted, and by deactivating it, your font will be used on all sites, regardless of the connected fonts there. I really enjoyed this opportunity, since I love the Hack font and using it for reading brings me pleasure. No longer saw such a setting, correct me, if not right. (May affect the correctness of the page display, thanks to ArsenAbakarov )
General -> Network Settings -> Connection settings
I can not ignore the ability to configure the proxy for the browser without additional gestures
Search -> Search Bar
Where, without an additional input field for the search, which stores the last search query
')
Privacy & security -> Permissions -> Notifications
Well, another useful checkmark to block all notifications that annoy me terribly
These were interesting and even unique settings available in the graphical user interface.
Firefox has one interesting page about about:
As you can see, this page contains links to various browser resources.
I will not go deep into each resource, I will just bring some curious and useful examples.
about:support
, user-agent, .
(Profile Directory). , . , , ( )/data/data/org.mozilla.firefox/files/mozilla/*.default
2 — * — ( ) + .default —
about:memory
, , web frontend
about:addons
, .
about:networking
, dns websockets. web .
about:config
, , —
user.js , about:support. about:config. , - , about:config? .
, about:config prefs.js . user.js. ( ), — user.js. , user.js prefs.js - , ( prefs.js), , .
, , . , Firefox user.js , . , , ().
.
about:config , .
user.js, , , javascript . :
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref — , .
, "browser.bookmarks.restore_default_bookmarks" — .
.
, , , /(true/false).
. , .
user_pref("browser.bookmarks.showMobileBookmarks", true);
, . ()
user_pref("browser.ctrlTab.previews", true);
. ()
user_pref("browser.download.autohideButton", false);
user_pref("browser.download.panel.shown", true);
, . ()
user_pref("browser.library.activity-stream.enabled", false);
user_pref("browser.newtabpage.activity-stream.feeds.places", true);
user_pref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
user_pref("browser.newtabpage.activity-stream.filterAdult", false);
user_pref("browser.newtabpage.activity-stream.prerender", false);
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
user_pref("browser.newtabpage.activity-stream.telemetry", false);
user_pref("browser.newtabpage.activity-stream.telemetry.ping.endpoint", "");
user_pref("browser.newtabpage.activity-stream.tippyTop.service.endpoint", "");
user_pref("browser.newtabpage.activity-stream.topSitesRows", 3);
user_pref("browser.newtabpage.enhanced", true);
activity-stream . "newtabpage" — . , "feeds.places", . , , "endpoint" , . , .
user_pref("browser.ping-centre.telemetry", false);
, . , , . , , . .
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
user_pref("browser.safebrowsing.downloads.enabled", false);
user_pref("browser.safebrowsing.downloads.remote.block_dangerous", false);
user_pref("browser.safebrowsing.downloads.remote.block_dangerous_host", false);
user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
user_pref("browser.safebrowsing.enabled", false);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", false);
user_pref("browser.safebrowsing.provider.google.advisoryURL", "");
user_pref("browser.safebrowsing.provider.google.gethashURL", "");
user_pref("browser.safebrowsing.provider.google.lists", "");
user_pref("browser.safebrowsing.provider.google.pver", "");
user_pref("browser.safebrowsing.provider.google.reportMalwareMistakeURL", "");
user_pref("browser.safebrowsing.provider.google.reportPhishMistakeURL", "");
user_pref("browser.safebrowsing.provider.google.reportURL", "");
user_pref("browser.safebrowsing.provider.google.updateURL", "");
user_pref("browser.safebrowsing.provider.google4.advisoryName", "");
user_pref("browser.safebrowsing.provider.google4.advisoryURL", "");
user_pref("browser.safebrowsing.provider.google4.dataSharingURL", "");
user_pref("browser.safebrowsing.provider.google4.gethashURL", "");
user_pref("browser.safebrowsing.provider.google4.lastupdatetime", "");
user_pref("browser.safebrowsing.provider.google4.lists", "");
user_pref("browser.safebrowsing.provider.google4.nextupdatetime", "");
user_pref("browser.safebrowsing.provider.google4.pver", "");
user_pref("browser.safebrowsing.provider.google4.reportMalwareMistakeURL", "");
user_pref("browser.safebrowsing.provider.google4.reportPhishMistakeURL", "");
user_pref("browser.safebrowsing.provider.google4.reportURL", "");
user_pref("browser.safebrowsing.provider.google4.updateURL", "");
user_pref("browser.safebrowsing.provider.mozilla.gethashURL", "");
user_pref("browser.safebrowsing.provider.mozilla.lists", "");
user_pref("browser.safebrowsing.provider.mozilla.pver", "");
user_pref("browser.safebrowsing.provider.mozilla.updateURL", "");
"safebrowsing" — , . .( dartraiden ) . . , , Windows, .
user_pref("browser.search.countryCode", "US");
user_pref("browser.search.geoSpecificDefaults", false);
user_pref("browser.search.geoSpecificDefaults.url", "");
user_pref("browser.search.geoip.url", "");
user_pref("browser.search.hiddenOneOffs", "Bing,Amazon.com,Twitter");
user_pref("browser.search.region", "US");
user_pref("geo.wifi.uri", "");
. US, . ("geo").
user_pref("browser.tabs.loadInBackground", false);
user_pref("browser.tabs.tabMinWidth", 30);
user_pref("browser.tabs.warnOnClose", false);
. "tabMinWidth". , , . Firefox . , , . , , .
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.urlbar.maxRichResults", 15);
user_pref("browser.urlbar.trimURLs", false);
, . https .
user_pref("datareporting.healthreport.uploadEnabled", false);
user_pref("datareporting.policy.dataSubmissionEnabled", false);
user_pref("datareporting.policy.firstRunURL", "");
Mozilla
user_pref("device.sensors.enabled", false);
user_pref("device.sensors.motion.enabled", false);
user_pref("device.sensors.orientation.enabled", false);
, - .
user_pref("devtools.aboutdebugging.showSystemAddons", true);
user_pref("devtools.onboarding.telemetry.logged", false);
user_pref("devtools.theme", "dark");
user_pref("devtools.toolbox.splitconsoleEnabled", false);
. ()
user_pref("dom.push.enabled", false);
user_pref("permissions.default.desktop-notification", 2);
user_pref("permissions.default.geo", 2);
user_pref("experiments.activeExperiment", false);
user_pref("experiments.enabled", false);
user_pref("experiments.supported", false);
. ).
user_pref("extensions.pocket.enabled", false);
user_pref("extensions.ui.dictionary.hidden", false);
user_pref("extensions.ui.experiment.hidden", true);
user_pref("extensions.ui.locale.hidden", true);
user_pref("extensions.webextensions.remote", true);
. Pocket .
user_pref("findbar.highlightAll", true);
user_pref("font.internaluseonly.changed", true);
user_pref("font.minimum-size.x-western", 10);
user_pref("font.name.monospace.x-western", "Hack");
user_pref("font.name.sans-serif.x-western", "Hack");
user_pref("font.name.serif.x-western", "Hack");
, .
user_pref("general.smoothScroll.durationToIntervalRatio", 1000);
user_pref("general.smoothScroll.lines.durationMaxMS", 100);
user_pref("general.smoothScroll.lines.durationMinMS", 100);
user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 150);
user_pref("general.smoothScroll.mouseWheel.durationMinMS", 50);
user_pref("general.smoothScroll.other", false);
user_pref("general.smoothScroll.pixels", false);
user_pref("general.smoothScroll.scrollbars.durationMaxMS", 100);
user_pref("general.smoothScroll.scrollbars.durationMinMS", 100);
, .
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/64.0");
user_pref("general.useragent.vendor", "");
user_pref("general.useragent.vendorSub", "");
User agent, ,
user_pref("general.warnOnAboutConfig", false);
about:config
user_pref("gfx.use_text_smoothing_setting", true);
user_pref("gfx.webrender.enabled", true);
user_pref("gfx.webrender.highlight-painted-layers", false);
user_pref("layers.acceleration.force-enabled", true);
.
user_pref("intl.accept_languages", "en-us,en,uk,ru");
user_pref("intl.locale.requested", "en-US");
, . .
user_pref("layout.css.devPixelsPerPx", "1.25");
user_pref("layout.css.osx-font-smoothing.enabled", true);
user_pref("layout.word_select.stop_at_punctuation", true);
"devPixelsPerPx". . "1".
user_pref("media.autoplay.enabled", false);
user_pref("media.av1.enabled", true);
, . AV1.
user_pref("network.allow-experiments", false);
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.dns.disablePrefetch", true);
user_pref("network.http.speculative-parallel-limit", 0);
user_pref("network.predictor.enabled", false);
user_pref("network.prefetch-next", false);
user_pref("network.security.esni.enabled", true);
user_pref("network.tcp.tcp_fastopen_enable", true);
user_pref("network.trr.mode", 2);
user_pref("network.trr.uri", "https://mozilla.cloudflare-dns.com/dns-query");
user_pref("network.warnOnAboutNetworking", false);
.
"dns.disablePrefetch" "predictor.enabled" , , - . , , - .
"tcp.tcp_fastopen_enable" TCP Fast Open
"trr.mode" DNS Over HTTPS. 0 DoH; 1 — DNS DoH, , ; 2 — DoH , DNS ; 3 — DoH; 4 — DoH DNS .
"trr.uri" , IP .
"security.esni.enabled" Encrypted SNI
user_pref("privacy.donottrackheader.enabled", true);
user_pref("privacy.firstparty.isolate", true);
//
user_pref("privacy.resistFingerprinting", true);
user_pref("privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts", false);
. twiddler
user_pref("privacy.userContext.enabled", true);
user_pref("privacy.userContext.longPressBehavior", 2);
user_pref("privacy.userContext.ui.enabled", true);
"userContext" Multi-Account Containers. ()
. , . , . , Multi-Account Containers, . , , , . .
user_pref("reader.color_scheme", "dark");
user_pref("reader.content_width", 12);
Firefox , , . , , .
user_pref("security.ssl.errorReporting.automatic", true);
user_pref("toolkit.identity.enabled", false);
user_pref("toolkit.telemetry.archive.enabled", false);
user_pref("toolkit.telemetry.bhrPing.enabled", false);
user_pref("toolkit.telemetry.coverage.opt-out", false);
user_pref("toolkit.telemetry.enabled", false);
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false);
user_pref("toolkit.telemetry.hybridContent.enabled", false);
user_pref("toolkit.telemetry.infoURL", "");
user_pref("toolkit.telemetry.newProfilePing.enabled", false);
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
user_pref("toolkit.telemetry.server", "");
user_pref("toolkit.telemetry.shutdownPingSender.enabled", false);
user_pref("toolkit.telemetry.unified", false);
user_pref("toolkit.telemetry.updatePing.enabled", false);
. :)
user_pref("widget.chrome.allow-gtk-dark-theme", true);
user_pref("widget.content.allow-gtk-dark-theme", true);
// user_pref("widget.content.gtk-theme-override", "Adwaita:light");
gtk .()
, input textarea, , . "widget.content.gtk-theme-override" .
, , )
ShadowFox. . . , uBlock uMatrix
, Quantum Xul WebExtentions, , . , , . , .
, , .
Source: https://habr.com/ru/post/435876/
All Articles