爱意满满的作品展示区。
hemera

分享一个 GitHub Actions 编译的 Windows 版 ungoogled-chromium(保留 MV2 / 开启 AVX2 / 移植 Brave、Cromite、Helium 补丁)

  •  
  •   hemera · Oct 30 · 1097 views
    This topic created in 36 days ago, the information mentioned may be changed or developed.

    我目前主要使用 Windows 系统,平时大量时间在使用浏览器,想要一个干净、没有各种后台遥测和端侧 AI 扫描的 Chromium ,又离不开 MV2 版本的 uBlock Origin 。官方 Chrome 的限制越来越多,上游 ungoogled-chromium-windows 编译参数也相对保守,就自己折腾了这个构建。

    项目基于 ungoogled-chromium ,从 Brave 、Cromite 、Helium 挑选并移植了部分实用补丁,开启了 AVX2 / PGO 优化,在 GitHub Actions 的 Linux 环境下完成交叉编译。

    扩展与隐私

    • 任务栏防窥:禁止 Windows JumpList 将常访和关闭的网页写盘,右键菜单保持干净。
    • 关掉多余后台探测:移除启动时的杀软 WMI 扫描,停用 Blink 端侧 AI 启发式特征扫描与 PEPC 页面提权标签。

    性能与交互

    • x64 开启 AVX2 与 Wasm SIMD256 ,全局 -O3 、ThinLTO 。
    • 默认开启惰性标签恢复( Lazy Session Restore ),开几十个标签启动只加载当前激活页,启动不卡。
    • 划词多引擎搜索(可在 chrome://flags 开启),引擎多于 4 个自动折叠为二级菜单。
    • Shift + 右键强制弹出浏览器原生菜单(破除网页右键屏蔽),文本框强制允许粘贴。
    • 下载文件去除 Mark-of-the-Web (Zone.Identifier),不再触发安全锁定提示。

    具体实现

    整个流程在 Linux (Ubuntu) 下通过 Clang/LLVM + MSVC 工具链交叉编译。针对 GitHub Actions 单次 6 小时的限制,我把编译拆成了多个 Job ,打包传递中间产物来分段持续编译。

    常用扩展

    ungoogled-chromium 默认移除了谷歌服务绑定,初次使用建议先安装 Chromium Web Store 扩展,之后即可像普通 Chrome 一样直接在商店安装和管理扩展:

    常用启动参数 / Flags 配置:

    --flag-switches-begin --enable-multiple-search-engines-context-menu --extension-mime-request-handling=always-prompt-for-install --fingerprinting-canvas-image-data-noise --fingerprinting-canvas-measuretext-noise --fingerprinting-client-rects-noise --max-connections-per-host=15 --no-pings --omnibox-autocomplete-filtering=search-bookmarks-chrome --show-avatar-button=never --enable-smooth-scrolling --enable-features=ClearDataOnExit,MenuSimplification,ParallelDownloading,ReducedSystemInfo,RemoveClientHints,SetIpv6ProbeFalse --flag-switches-end
    

    项目仓库: https://github.com/vpday/ungoogled-chromium-windows
    下载页面: https://github.com/vpday/ungoogled-chromium-windows/releases

    目前提供 x64 (带 AVX2 )、x86 和 arm64 三个架构的二进制。有同样需求的朋友可以自取,遇到 bug 欢迎提 issue 。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2119 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 01:23 · PVG 09:23 · LAX 17:23 · JFK 20:23
    ♥ Do have faith in what you're doing.