浏览器去臃肿

Hacker News Top 工具

摘要

本指南详细说明了如何使用策略文件禁用Firefox等浏览器中的不必要功能,从而清理臃肿并增强隐私保护。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/08/20 13:15

# 浏览器去臃肿指南 来源:https://www.sacredheartsc.com/blog/browser-de-slop/ 现代浏览器内置了大量臃肿功能。 您可以通过浏览器设置逐项禁用,或使用策略文件强制进行深度清理。 首先,根据您的系统发行版在对应路径创建JSON配置文件。以下是一些常见路径: 据称这些策略在Windows组策略和MacOS的`plist`文件中也受支持。不过我本人使用的是真正开源的操作系统,对此并不了解。 建议阅读官方文档(https://mozilla.github.io/policy-templates/)理解每个选项的作用。以下是我的配置方案,实现了以下定制: ```json { "policies": { "ExtensionSettings": { "[email protected]": { "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi", "installation_mode": "force_installed" } }, "3rdparty": { "Extensions": { "[email protected]": { "toOverwrite": { "filterLists": [ "user-filters", "ublock-filters", "ublock-badware", "ublock-privacy", "ublock-quick-fixes", "ublock-unbreak", "easylist", "easyprivacy", "adguard-spyware-url", "urlhaus-1", "plowe-0", "fanboy-cookiemonster", "ublock-cookies-easylist", "fanboy-thirdparty_social", "ublock-annoyances" ] }, "toAdd": { "trustedSiteDirectives": [ "intranet.example.com" ] } } } }, "UserMessaging": { "WhatsNew": false, "ExtensionRecommendations": false, "UrlbarInterventions": false, "SkipOnboarding": true }, "OverridePostUpdatePage": "", "OverrideFirstRunPage": "", "EnableTrackingProtection": { "Value": false, "Cryptomining": false, "Fingerprinting": false, "Locked": false }, "Cookies": { "Behavior": "reject-tracker-and-partition-foreign", "BehaviorPrivateBrowsing": "reject-tracker-and-partition-foreign" }, "NoDefaultBookmarks": true, "DisablePocket": true, "DisableAppUpdate": true, "CaptivePortal": false, "Certificates": { "Install": [ "/usr/local/share/certs/trusted/your-custom-root-ca.crt" ] }, "DisableFeedbackCommands": true, "DisableFirefoxAccounts": true, "DisableFirefoxStudies": true, "DisableTelemetry": true, "DontCheckDefaultBrowser": true, "OfferToSaveLoginsDefault": false, "DNSOverHTTPS": { "Enabled": false }, "SearchSuggestEnabled": false, "Homepage": { "URL": "about:home", "StartPage": "homepage" }, "SearchEngines": { "Add": [ { "Name": "ddg", "URLTemplate": "https://duckduckgo.com/?q={searchTerms}", "Method": "GET", "IconURL": "https://duckduckgo.com/favicon.ico", "Alias": "ddg", "Description": "DuckDuckGo", "SuggestURLTemplate": "https://duckduckgo.com/ac/?q={searchTerms}&type=list" } ], "Default": "ddg" }, "FirefoxHome": { "Search": true, "TopSites": false, "SponsoredTopSites": false, "Highlights": false, "Pocket": false, "SponsoredPocket": false, "Snippets": false }, "AIControls": { "Default": { "Value": "blocked", "Locked": true } }, "ExtensionUpdate": true, "Preferences": { "dom.security.https_only_mode": { "Value": true, "Status": "locked" }, "dom.push.connection.enabled": { "Value": false, "Status": "default" }, "browser.urlbar.suggest.quicksuggest.nonsponsored": { "Value": false, "Status": "locked" }, "browser.urlbar.suggest.quicksuggest.sponsored": { "Value": false, "Status": "locked" }, "browser.toolbars.bookmarks.visibility": { "Value": "newtab", "Status": "default" }, "browser.safebrowsing.malware.enabled": { "Value": false, "Status": "locked" }, "browser.safebrowsing.phishing.enabled": { "Value": false, "Status": "locked" }, "browser.safebrowsing.downloads.enabled": { "Value": false, "Status": "locked" }, "browser.newtabpage.activity-stream.feeds.section.topstories": { "Value": false, "Status": "locked" }, "browser.newtabpage.activity-stream.showSponsoredCheckboxes": { "Value": false, "Status": "locked" }, "browser.newtabpage.activity-stream.widgets.system.weather.enabled": { "Value": false, "Status": "default" }, "browser.urlbar.suggest.quicksuggest.all": { "Value": false, "Status": "locked" }, "browser.tabs.groups.smart.userEnabled": { "Value": false, "Status": "default" }, "signon.management.page.breach-alerts.enabled": { "Value": false, "Status": "locked" }, "privacy.fingerprintingProtection.pbmode": { "Value": false, "Status": "default" }, "signon.firefoxRelay.feature": { "Value": "disabled", "Status": "locked" } } } } ``` Chrome的策略配置请参考官方文档(https://chromeenterprise.google/intl/en_us/policies/),请根据实际需求调整。以下是我的配置方案: 遗憾的是,Chrome策略文件已不再支持自定义证书颁发机构(我最终采用了一种变通方案(https://github.com/cullumsmith/infrastructure/blob/master/files/usr/local/libexec/nss-trust-root-ca.common),在用户首次登录时将证书添加到`~/.pki/nssdb`中)。 ```json { "AdvancedProtectionAllowed": false, "AlternateErrorPagesEnabled": false, "AutofillCreditCardEnabled": false, "BackgroundModeEnabled": false, "BlockThirdPartyCookies": true, "BrowserGuestModeEnabled": false, "BrowserLabsEnabled": false, "BrowserNetworkTimeQueriesEnabled": false, "BrowserSignin": 0, "CloudPrintProxyEnabled": false, "CloudReportingEnabled": false, "DefaultBrowserSettingEnabled": false, "DefaultCookiesSetting": 1, "DnsOverHttpsMode": "off", "EnableAuthNegotiatePort": true, "EnableMediaRouter": false, "MetricsReportingEnabled": false, "NetworkPredictionOptions": 2, "PasswordManagerEnabled": false, "PaymentMethodQueryEnabled": false, "PrivacySandboxAdMeasurementEnabled": false, "PrivacySandboxAdTopicsEnabled": false, "PrivacySandboxPromptEnabled": false, "PrivacySandboxSiteEnabledAdsEnabled": false, "PromotionalTabsEnabled": false, "SafeBrowsingProtectionLevel": 0, "SearchSuggestEnabled": false, "SyncDisabled": true, "TranslateEnabled": false, "UrlKeyedAnonymizedDataCollectionEnabled": false, "DefaultSearchProviderEnabled": true, "DefaultSearchProviderName": "DuckDuckGo", "DefaultSearchProviderImageURL": "https://duckduckgo.com/favicon.ico", "DefaultSearchProviderEncodings": ["UTF-8"], "DefaultSearchProviderSearchURL": "https://duckduckgo.com/?q={searchTerms}", "DefaultSearchProviderSuggestURL": "https://duckduckgo.com/ac/?q={searchTerms}&type=list", "DefaultSearchProviderNewTabURL": "https://duckduckgo.com/chrome_newtab", "ExtensionSettings": { "ddkjiahejlhfcafbddmgiahcphecmpfh": { "installation_mode": "force_installed", "update_url": "https://clients2.google.com/service/update2/crx" } }, "3rdparty": { "extensions": { "ddkjiahejlhfcafbddmgiahcphecmpfh": { "disableFirstRunPage": true, "defaultFiltering": "complete", "noFiltering": [ "intranet.example.com" ], "rulesets": [ "+default", "+annoyances-cookies", "+annoyances-notifications", "+annoyances-others", "+annoyances-overlays", "+annoyances-social", "+annoyances-widgets", "+adguard-spyware-url" ] } } } } ```

相似文章

精简开源替代方案网站

Hacker News Top

debloat.dev 是一个精选网站,列出臃肿商业软件的开源替代方案,帮助用户用更简洁、社区驱动的选项替换不需要的供应商应用程序。

为未来设计Firefox

Lobsters Hottest

Mozilla宣布Project Nova,这是Firefox的重新设计,专注于隐私、速度以及更简洁、更温暖的设计,并对标签、设置和紧凑模式进行了更新。

BrowserAct

Product Hunt

BrowserAct是一款为AI代理设计的网页浏览器自动化工具,可实现自动化的网页交互。