Brave - 最强优化设定
@ModNeko February 09, 2025
Brave - 最强优化设定 @ModNeko https://www.taikun-room.com/2022/02/best-web-browser-brave.html 以下是我整理的 Brave 浏览器 Flag 设置,主要目的是在不破坏网站功能的前提下提升速度,并关闭 Brave 自带的一些服务或内容,并在HI-FI音质上优化。这些内容主要来源于其他网友的分享,具体来源链接会附在文章末尾。 💬 文章需要:一定动手能力 简要:我开始注意到 Brave 浏览器的原因,是因为 Rust 语言开发的广告拦截器(Rust语言在效能、安全听说很出色)和两篇Brave对于自家的广告拦截器研究(并不停加强)再加上我自己对音质的追求,于是你就看到这篇文章的诞生了 技术细节1 - 技术细节2 - 技术细节3
一些心得: 基于 Brave Rust 的广告拦截器,实际上可以搭配 Ublock Origin使用,将核心、最常用的规则放在Brave广告拦截器,将Ublock Origin 作为规则补全的手段(原因是 Brave 尽管在技术方面十分高超,但少部分情况,有些网站会遗漏,或是没关照的地方) 如果需要两个搭配请点我(O) 搭配方式:在网址列输入:brave://settings/shields/filters 开启 EasyList Cookie、Fanboy"s uBo Annoyances、FanBoys、 Mobile Notifications、Brave Experimental Adblock Rules 其他都关闭或是和个人网址列开启: brave://flags/ 默认关闭 - 关闭所有列表选项 (搜索后看到的都关闭)
brave-rewards brave-ads brave-wallet brave-news brave-ai brave-ntp brave-super Defaults Opened - Opened ALL List Options 默认开启 - 开启所有列表选项 (搜索后看到的都开启) enable-quic - 更高下载速度 brave-module-filename-patch - 替换 Chrome.exe 补丁 enable-parallel-downloading - 同时多进程下载 打开Brave,浏览器的资料夹文件夹目录中,将 Brave 文件名更改为 chrome.exe 以加快速度,但每次更新时都必须改名字
在设置中关闭更多 brave 垃圾 - 设置 >> Brave Shield & Privacy >> 自动发送诊断报告 - 设置 >> Brave Shield & Privacy >> 自动发送每日使用数据至 Brave - 设置 >> Brave Shield & Privacy >> Solana 名称服务 - 设置 >> Brave Shield & Privacy >> 以太坊名称服务 - 设置 >> 隐私报告 >> 隐私报告 - 设置 >> 隐私报告 >> 隐私报告通知 - 设置 >> 外观 >> Brave 奖励图标 - 设置 >> 外观 >> Brave 广告 - 设置 >> 背景图像 >> 显示背景图像 - 设置 >> 背景图像 >> 显示赞助图像**安全浏览** - 安全浏览 > 关闭 - 使用安全 DNS > (我建议选择 MullVad DNS) - 推荐使用VPN > (我推荐 Proton VPN 题外话) - 允许 p3a > 关闭 - 指纹识别 > 严格 - WebRTC > 禁用非代理 UDP - 允许网站检查付款 > 关闭 - 所有社交 > 关闭 - 密码 > 关闭 - 网站设置 > 一切阻止或先询问 - 视讯播放 > 关闭 - 网页简化视图 > 开启 (可用于绕过某些付费墙) - 付款方式和地址 > 关闭 - 阻止追踪者和广告 > 严格 - 自动重定向 AMP 页面 > 开启 - 两个 HTTPS 设置 > 均开启 我可能还有遗漏的设置。 --- 禁用选项 - 禁用 “Make Brave Better” 的两个选项,即“发送诊断报告”和“发送产品洞察” - 在主页底部,点击“X”关闭 Brave News - 关闭 Brave V*N 的广告 - 在隐私报告中,禁用“隐私报告通知” - 在外观设置中,禁用“显示 Brave 奖励” - 在新标签页中,禁用“显示赞助图像”(这总是会推送广告) - 在 Brave Shield 中,禁用“自动发送每日使用数据至 Brave” --- **阻止广告和自动播放广告的更多设置** - 设置 >> 网站设置 >> 自动播放(阻止自动播放) - 添加/订阅自定义过滤器列表,打开 `brave://adblock` 或 `chrome://adblock` 或者 - 打开设置 >> Brave Shield & Privacy >> 内容过滤 - 使用 https://filterlists.com 作为参考过滤列表。 目前,其他一些 Brave 的功能,如奖励、新闻和 VPN 无法完全移除,因为 Brave 锁定了这些设置破坏性设置 - 可以选择或不选择(尚未确认重复性) Use rounded corners on main content areas Smooth Scrolling Overlay Scrollbars GPU rasterization Tab Scrolling | Enabled - tabs shrink to a medium width Tab Scrolling Buttons | Enabled - to the left of the tabstrip Tab Scrolling With Dragging | Enabled - tabs scrolling with constant speed Tab Scrolling Overflow Indicator | Enabled - Fade Windows Scrolling Personality Enables Display Compositor to use a new gpu thread. Enable the ability to configure how aggressive Memory Saver is. Touch UI Layout On my PC, I make use of my 3060 Ti with these chrome://flags/#enable-gpu-rasterization [Enabled] chrome://flags/#enable-zero-copy [Enabled] chrome://flags/#ignore-gpu-blocklist [Enabled] chrome://flags/#canvas-oop-rasterization [Enabled] chrome://flags/#disable-accelerated-2d-canvas [Disabled] chrome://flags/#use-angle [OpenGL] (this setting is better with nvidia cards) overall these give me much more CPU headroom for more tabs or other things. e- 开启 d- 关闭 Restrict WebSockets pool-e Enables local data collection for notification ad timing (brave-federated)-d Override software rendering list-d Future V8 VM features-e enable Vulkan-e Back-forward cache-d Prerender2-e Throttle non-visible cross-origin iframes-e Persistent client hints-d HIFI 设置 - 可以选或不选(会涉及一些安全设置 从2020年开始,我就成了个耳机发烧友。作为计算机工程师,我对音频保真背后的技术特别着迷,尤其是数字音频部分。我试过无损格式(FLAC、DSD 这些),也爱折腾各种配置,比如调缓冲区大小、用 ASIO 这种高级音频输出协议,总之就是想尽办法提升音质。 除了听音乐,我也想在 Hi-Fi 设备上看电影、追剧(Netflix、YouTube 这些),而且这些其实占了我大部分时间。所以我就开始研究怎么把浏览器调教成最适合音频体验的状态,同时结合我在电脑上做的一些调整(主要是调缓冲区大小、给进程调优先级、精简后台服务等)。 今天主要说说浏览器的调整,因为这个简单,大家都能跟着做。我用的浏览器是 Brave(Chrome 内核的),所以 Chrome 里的那些高级选项,Brave 基本上也都能用。通过一些设置标志,可以调出一些隐藏的音频相关选项,我觉得音质确实有提升。 折腾了好几年,现在终于调到一个挺满意的状态,所以想分享给大家。 1. 针对 Windows 用户的操作: 改路径:在下面的代码里,把你浏览器的安装路径改一下(Chrome 也适用)。 2. 保存脚本 保存脚本:把代码保存成文本文件,把文件后缀改成 .ps1。 3. 运行脚本 双击这个 .ps1 文件,就能用这些设置启动浏览器了。 4. 固定到任务栏 设置完成后,可以右键任务栏上的浏览器图标,把目标路径改成你脚本的位置。 5. 文件关联: 系统默认会用 PowerShell 打开 .ps1 文件,不过双击基本就能运行。 如果你是Beta、Nightly,或是移动位置(就需要改文件目录) WINDOWS: ### Copy starting from below ## First making the powershell with admin permissions (because some flags used requried admin persmissions to work) if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Start-Process PowerShell -Verb RunAs "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`""; exit; } ## Starting the browser with flags. Change the path to your browser from here & "C:\Program Files\BraveSoftware\Brave-Browser\Application\chrome.exe" --enable-exclusive-audio --audio-process-high-priority --audio-buffer-size=0 --alsa-output-buffer-size=0 --minimize_resampling --allow_all_sample_rates --fifo_size=0 --DecreaseProcessingAudioFifoSize --use-r16-texture --ForceHardwareAudioDecoders --disable-audio-input --mse-audio-buffer-size-limit-mb=0M --audio-output-channels=2 --no-sandbox-and-elevated --none_and_elevated --renderer-process-limit=0 --disable-renderer-backgrounding --mixer-source-audio-ready-threshold-ms=0 --mixer-source-input-queue-ms=0 --no-service-autorun --no-system-proxy-config-service --enable-gpu-memory-buffer-video-frames --video-threads=16 --process-per-tab=1 --enable-background-thread-pool --in-process-broker --in-process-gpu MAC: 水果电脑系统 <path to your browser> --enable-exclusive-audio --audio-process-high-priority --audio-buffer-size=0 --alsa-output-buffer-size=0 --minimize_resampling --allow_all_sample_rates --fifo_size=0 --DecreaseProcessingAudioFifoSize --use-r16-texture --ForceHardwareAudioDecoders --disable-audio-input --mse-audio-buffer-size-limit-mb=0M --audio-output-channels=2 --no-sandbox-and-elevated --none_and_elevated --renderer-process-limit=0 --disable-renderer-backgrounding --mixer-source-audio-ready-threshold-ms=0 --mixer-source-input-queue-ms=0 --no-service-autorun --no-system-proxy-config-service --enable-gpu-memory-buffer-video-frames --video-threads=16 --process-per-tab=1 --enable-background-thread-pool --in-process-broker --in-process-gpu 引用来源: https://www.reddit.com/r/brave_browser/comments/1c5k54r/removedisable_android_brave_bloat/ https://www.reddit.com/r/brave_browser/comments/1f8q2tn/what_brave_flags_are_guys_using/ https://www.reddit.com/r/brave_browser/comments/1h8nzrq/rumor_change_braveexe_name_to_chromeexe_can/ https://www.reddit.com/r/browsers/comments/107cj5b/what_are_your_top_chromeflags_or_braveflags/ https://community.brave.com/t/some-brave-flags-tweaks-for-better-performance-and-faster-browser/542006 https://www.reddit.com/r/privacy/comments/wq00wy/brave_browser_android_configuration_more_privacy/ https://www.reddit.com/r/audiophile/comments/1792nbo/attempt_to_make_youtube_netflix_sound_as_hifi_as/https://habr.com/ru/companies/yandex/articles/721374/ 延伸阅读 ProtonVPN - 世界上最好的 VPN、隐私、高度安全、完全免费,你值得拥有它