7 ms·
Betterfox: User.js to harden Firefox and optimize privacy, security, and speed
- rattlesnakedave 3y agoI'm always incredibly skeptical of any set of tweaks that is supposed to take off-the-shelf software and make it more private (how?) or secure (from what?). I'm sure some of these tweaks do that, but can't help but think they increase your attack surface over all (unless you have the time to read and think carefully about each settings change- in which case, you probably could have just changed the settings yourself).
- ygjb 3y agoThey do modify the attack surface, but since these prefs cover code that ships in the release version of Firefox, they should be reasonably well tested. Most of the preferences in this will actually reduce the target-able attack surface, and disable some features that could be footguns, but at the same time disable some optimizations that aim to reduce cognitive load on users (which in turns reduces the likelihood that mistakes will be made).
- bzmrgonz 3y agoAdditionally, do keep in mind that browser dev's, in addition to their ulterior harvesting agenda, have the burden of universal appeal/usability, which makes niche installs impossible. If this is a NixOS-type of configure-your-own-browser, I'm all for it. This is the reason why Consumer wireless-Router configuration sucks, because manufacturers are trying to appeal to the masses and don't want to generate a call-for-support nightmare. So yeah, if we can *nixify(I'm claiming coinage here) all things produced in bulk and for the masses, by all means!!!
- mattstir 3y ago> Most of the preferences in this will actually reduce the target-able attack surface Can you point to anything specific that reduces the attack surface? When looking at the "securefox" config, it does a bunch of strange things, like enabling embedded TikTok links (https://github.com/yokoffing/Betterfox/blob/443710b0738ebc8f45296a4f63c0bf362512d72f/Securefox.js#L60 https://github.com/yokoffing/Betterfox/blob/443710b0738ebc8f...) and disabling UITour (https://github.com/yokoffing/Betterfox/blob/443710b0738ebc8f45296a4f63c0bf362512d72f/Securefox.js#L158 https://github.com/yokoffing/Betterfox/blob/443710b0738ebc8f...) which Firefox uses to highlight menus and is only accessible by approved Mozilla domains (https://searchfox.org/mozilla-central/source/browser/app/permissions https://searchfox.org/mozilla-central/source/browser/app/per...). It's a very strange mix of configs.
- autoexec 3y ago> Can you point to anything specific that reduces the attack surface? I haven't had a chance to dig though those configs yet, but disabling things like service workers, webgl, normandy/experiments, pocket, and webrtc would be a good start at reducing attack surface
- throwaway290 3y agoAll of that also makes you easier to fingerprint. How many people disable WebGL?
- Beldin 3y agoEnabling WebGL makes you a lot more fingerprintable than having it disabled. See e.g. How gullible are web measurement tools? A case study analysing and strengthening OpenWPM’s reliability. B. Krumnow, H. Jonker and S. Karsch. In Proc. 18th International Conference on emerging Networking EXperiments and Technologies (CoNEXT’22). ACM, pp. 171–186, 2022. (Table 3).
- yokoffing 3y agoThe section "Securefox" should probably be renamed "Privatefox", but labels are misleading. It's best to read the project files to understand the balance taken with security, privacy, and functionality. Let's make it simple: Want a mix of speed and privacy, while retaining functionality? Use Betterfox user.js. Want more privacy and security at the expense of site functionality? Use Arkenfox user.js. Want Tor prefs but without using its nodes/relays? Use Mullvad Browser. Want anonymity? Use Tor Browser.
- belinder 3y agoAnother way to look at it is, you may not be aware of all the settings out there, and a set like this will help you discover them
- 1vuio0pswjnm7 3y agoAnother way to illustrate the point: Do you read other peoples' code before you run it, or do you just blindly run it.
- hkt 3y agoPeople who install Betterfox without reading the code are only blindly trusting one more piece of code than everyone else, really.
- altairprime 3y agoFor specific example, this particular one disables the bookmarks toolbar, reader mode, Firefox Sync, and screen reader accessibility. Opinionated does not imply “Better”, even if the name claims otherwise.
- mst 3y agoI appreciated that the accessibility thing is called out as the top entry on the list of changes it makes you may want to override. If it's genuinely just munching CPU if you don't use it, then turning it off by default with a warning that it's going to do that seems pretty reasonable. (I've not tried their user.js and probably won't, but "realising the accessibility tools thing was important enough to go at the top even if the vast majority of users will care more about other entries in the list" seems like an indication that at least some thought has gone into this)
- yokoffing 3y agoThe first two prefs are commented out (using //) and are not in the user.js itself, and the latter two are in the user.js but are 1) easy to re-enable and 2) the repo indicates how to enable them if you need them. Please read the Github page.
- altairprime 3y agoThere’s two user js files. One has all four. The other has two of four. Note the comments at the top if you’d like to distinguish between them, though certainly others will not. I also see a disable for 0RTT; why? (Probably for the same reason that disabling TLS 1.2 was popular a few years ago.) Webrender is force-enabled; anyone that this causes startup crashes for is out of luck. Autofill and password saving is disabled; hope you migrated to a third-party app before using this. I reiterate: Opinionated does not mean Better. It just means opinionated.
- lillywastaken 3y agoThis is generally the case imo. Installing hardening tweaks/extensions/... to make yourself "more secure" and "more private" often just ends in increasing the viable attack surface and making yourself more identifiable (because such extensions/settings are very uncommon)
- autoexec 3y agoIt's okay to have a unique fingerprint when it changes all the time. It's far better to always show up as someone new than to try to blend in with the crowd and pray that none of the countless and ever-changing ways to ID you individually doesn't give you away.
- Beldin 3y agoIn this case, it only toggles settings already baked in to the original software. That should not increase your attack surface unless the settings are poorly tested. Moreover, it would not decrease your privacy unless: 1. The number of people messing with the setting is very small, AND 2. The default for the setting gives you at least as much privacy as flipping it does. The second point is not often the case. For example, turning off WebGL provides 1 bit of info ("turned off WebGL"). Leaving WebGL on allows a website to measure your WebGL setup, which is typically far more revealing. Not everyone uses the same GPU hardware and screen, after all. In general, flipping a setting to off reveals 1 bit of information - but it might indeed be 1 bit that few others know of, thereby reducing your anonymity group in that respect. Leaving a setting on allows a website to probe you further and find out things related to the setting. See for example amIunique.org -- it tests 4 WebGL parameters, which, for me, have a similarity ratio of 1.17%, 0.94%, 2.68%, and 0.53%. Those are quite horrible numbers and would likely identify me uniquely unless they almost completely overlap.
- lakomen 3y agoTook the words right out my mouth, as I wanted to post a very similar comment beginning with I'm always skeptical. Is it because we've seen so many let downs? Probably. Can't trust anything or anyone anymore.
- yazzku 3y agoI think it's justified in this case. Mozilla suffers from a schizophrenic existence where they are simultaneously non-profit and for-profit, and Firefox privacy-friendly and unfriendly. For example, Firefox supports HTTPS-only mode and DNS over HTTPS, but they are not on by default. It also ships with DuckDuckGo and other search engines in the setting drop-down, but alas, that $10M/year or whatever they get from Google is too good, so fuck your privacy. You then have to manually turn all that shit on, because they won't, to the point where installing a fresh Firefox on a system now requires a bit of a rite of passage before you can get a useful browser. Do all these things I mentioned really increase your attack surface? Also, mandatory mention: https://librewolf.net/ https://librewolf.net/
- marcosdumay 3y agoI wonder if you are on the group that think that DNS over HTTPS is obviously and unambiguously a benefit for security and privacy, and of course nobody disagrees; or in the group that thinks that it is obviously and unambiguously a threat for security and privacy, and of course nobody disagrees.
- yazzku 3y agoNeither? That setting is perhaps not a clear default among the ones I mentioned, especially because I personally wouldn't want to send my DNS requests to fucking Cloudflare or something based in the US. But I still stand by my comment that Firefox's defaults suck. At the very least they could have a useful one-time wizard that doesn't just ask you to import your bookmarks from Chrome.
- Nezteb 3y agoHow does this differ from LibreWolf? https://librewolf.net https://librewolf.net
- tmottabr 3y agolibre wolf is an fork of firefox.. this is a set of parameters you adjust in firefox..
- rovr138 3y agoIt’s a fork of Firefox around privacy and security. So, the question is about comparing the settings on both. Settings for libre wolf are here, https://gitlab.com/librewolf-community/settings https://gitlab.com/librewolf-community/settings
- ygjb 3y agoThere is a crucial difference between a config file that changes options within Firefox, and something that adds new code. Unless something has changed dramatically, the Firefox team (and other teams) test and fuzz Firefox extensively - obviously default prefs and features will get more coverage. An actual fork like LibreWolf that adds or removes code and ships a different build fundamentally changes how the software is built and invalidates a significant portion of the security work that has been done by the Firefox security team. I am not arguing that Librewolf or any of the other forks of Firefox[1] are necessarily worse for security, just that browsers are ridiculously complex pieces of software and making claims about security requires more than just gutting or adding features. [1] other than Palemoon, because screw those guys; when I challenged them on the security program for Palemoon, their loopy leader tried to harass me and other former Mozilla folks. Given their propensity for instability I wouldn't trust them at all.
- Nezteb 3y agoThat's a good point, thanks! I should have rephrased my question to: "How do the levels of privacy/security/speed differ between Firefox+Betterfox and LibreWolf?" I'm sure both have their tradeoffs, but I was just curious if anyone has tried and extensively compared both.
- robin_reala 3y ago…assuming you don’t use assistive technology: https://github.com/yokoffing/Betterfox/blob/443710b0738ebc8f45296a4f63c0bf362512d72f/user.js#L148 https://github.com/yokoffing/Betterfox/blob/443710b0738ebc8f...
- apazzy 3y agoI mean yeah it says that: Assumptions Apply preferences from the common overrides sticky if you want to revert the following behavior: - Firefox Accessibility Service is disabled to improve resource utilization and security. Override this if you use assistive software.
- Capricorn2481 3y agoWhat about Arkenfox?
- Liquix 3y agoArkenfox can be both heavy-handed (disables search from URL bar, restore tabs from previous session, etc) and hard to digest (1200 lines). By comparison, Betterfox is 250 lines and looks to be more "sane" out of the box.
- DerekBickerton 3y ago> disables search from URL bar Set keyword searches to true: user_pref("keyword.enabled", true); That way it uses your default search engine when searching from the address bar.
- yokoffing 3y agoThere are substantial differences in Betterfox compared to Arkenfox. Betterfox causes less breakage and is appropriate for everyday use cases.
- getcrunk 3y agoDoes this turn off dns leaking in ff when it doesn’t find a domain. And does this turn off wasm or web gpu?
- kevingadd 3y agoFor turning off wasm you're probably better off with something like noscript or umatrix, turning it off globally will cause mysterious problems with an increasing number of websites
- hdjjhhvvhga 3y agoThis is probably what I would want - I'd prefer to know them and never visit them again except for a chosen few. (Wasm has many legitimate uses and I'm happy it exists but being old enough to see the evolution of the web I'm 100% sure it will be abused also in the ways we have no idea about yet.)
- yokoffing 3y agoDo you mean DoH? Not everyone uses DoH or even the same DoH provider, so no, it cannot make this change universally for everyone. You can make DoH strict by adding user_pref("network.trr.mode", 3); to your user.js. Or you can also go to about:config in the address bar, searching for network.trr.mode, and changing the value to 3.
- Jaxkr 3y agoMeanwhile I modify my Firefox to be less secure (allow unsigned extensions) so I can continue using my beloved TabMixPlus. Once you taste multiple rows of tabs you’ll never go back.
- romland 3y agoI've been using the Firefox addon called "Tree Style Tab" for quite a few years now. I'm quite pleased with it since I have more width than height on my screen anyway. Just a heads up!
- eropple 3y agoI used to use Tree Style Tabs, but I moved to Sidebery a couple years ago and I'm pretty happy with it. Now somebody else can inform me about the newest one.
- muppetman 3y agoI love sidebury but how do you cope with two lots of tabs? Do you use tweaks to remove the top line?
- kkzz99 3y agoNot OP, but I use tst too and I have around 7000 tabs open. I use a userStyle to hide the sidebar-header like this. #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { display: none; }
- botanical 3y agoI use Tree Style Tabs with it set to autohide, makes for even more screen space
- Alifatisk 3y ago”- Firefox Sync and Firefox View are disabled.” No, that’s one of the best features!
- mrob 3y agoView mode is potentially risky because it disables content filtering, e.g. with uBlock Origin.
- Liquid_Fire 3y agoAre you confusing Firefox View with Reader view?
- mrob 3y agoYes, I meant Reader View.
- zo1 3y agoWhat that tells me is that this is more of an "opinionated" list than they let on.
- yokoffing 3y agoBetterfox configs provide with a clean and simple interface that lets users focus on their desktop browsing experience. The overrides are there for users who want to retain features like Sync. Edit: The project aims to have the minimum amount of needed changes, but everyone will have a different opinion on what is needed. No one can please everyone, so you have to draw the line somewhere. Perhaps Betterfox can post a poll and get feedback on how important it is for users.
- willywanker 3y agoOr just use Pale Moon, which is privacy respecting out of the box and doesn't need any hardening bullshit because it doesn't have any analytics, telemetry, third party crap like Pocket or anything else built in. It is what Firefox would've been if they didn't discard their original powerful XUL extension system and epic customization that doesn't need you to only dick around with userChrome.css (though you can if you want). And with Firefox, the point is not that you can disable these features in about:config (until they remove that ability a few versions later) - the point is why the hell should you have to do any of this for a browser that keeps claiming to be privacy respecting?
- bkazez 3y agoOn a Mac, command-tabbing to FF takes easily half a second when you have a few tabs open. Any fixes for that?
- timwis 3y agoI thought I was crazy! Would love a fix for this
- kuschkufan 3y agoHad to login to counter with my experience. I'm on MacOS and there is no delay at all when tabbing to Firefox. It's as instant as tabbing to any other app. Also, I'm not ashamed to say that I have more than a few tabs open.
- clipjokingly 3y agoRelevant: Mullvad Browser https://mullvad.net/en/browser https://mullvad.net/en/browser
- yokoffing 3y agoThere are substantial differences in Betterfox compared to Mullvad, Arkenfox, and Librewolf. The latter three use almost the same configs, each with their own minor differences, while Betterfox causes less breakage and is appropriate for everyday use cases — as long as you learn how to apply a user.js.