V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Rebron1900
V2EX  ›  分享发现

Chromium 浏览器便携化启动工具

  •  
  •   Rebron1900 · 128 天前 · 880 次点击
    这是一个创建于 128 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Edge 广告泛滥

    前些日子听朋友吐槽 Edge 浏览器最近的更新可谓是如何如何不当人,经常刷到的新闻也都是说强制弹广告、升级之类的负面新闻,刚出来的那个大家都喜欢的、如白纸般的 Edge 早已经不复存在了,如今的人们可谓是苦 Edge 久矣。

    当然,这种情况自然是不能惯着,找替代品,必须找替代品给他替代了。

    不过第三方 Chromium 换皮浏览器如今可是太多太多了,比如我就在使用的国产百分浏览器,虽然百分浏览器 2022 年 12 月奇迹般的更新了一次,但是时隔一年又归于沉寂,内核还依旧停留在 Chromium 102.0.5005.167 ,过旧的内核导致了一些前端框架特性、新浏览器特性无法使用,但是目前国内其他毒瘤大厂各种魔改的浏览器我又不想使用,所以又花了一番心思寻找。

    去花里胡哨 Chromium 版本

    最终,我在 Github 找到了 Hibbiki 修改的 Chromium-win64 ,去掉了一些花里胡哨的功能,且有「含 Google 服务版本」和「无 Google 服务版本」,最大程度上把选择权交给用户。

    但是默认情况下 Chromium 启动后数据会存放在系统用户文件夹中,这样偶尔重装系统如果不注意可能会出现数据丢失的情况,当然你可以通过创建快捷方式,并附带启动命令指定用户目录解决这个问题:

    chrome.exe --disable-encryption --disable-machine-id --user-data-dir="目录"
    

    Chromium 启动器

    但是这样操作更新会比较麻烦,所以我在 Github 上找到了Chrlauncher ,这是一款小巧、便携的 Chromium 启动、更新工具,具有以下特性:

    • 开源:https://github.com/henrypp/chrlauncher
    • 浏览器下载:支持多个 Github 上热门的 Chromium 浏览器,通过配置文件可以十分方便的切换浏览器版本(目前支持了7 种 Chromium 修改版本)。
    • 更新:支持自动检测目前浏览器是否有更新,自动下载。
    • 便携化启动:可以自定义浏览器用户文件夹,便携启动。

    使用方法

    Release 页面下载适用于自己系统版本的 Chrlauncher ,解压在任意目录后打开 Chrlauncher 目录内 8664 文件夹内的配置文件 chrlauncher.ini ,配置内容如下:

    [chrlauncher]
    
    # Custom Chromium update URL (string):
    #ChromiumUpdateUrl=https://chromium.woolyss.com/api/v3/?os=windows&bit=%d&type=%s&out=string
    
    # Chromium 启动命令 / Command line for Chromium (string):
    # See here: https://peter.sh/experiments/chromium-command-line-switches/
    ChromiumCommandLine=--flag-switches-begin --user-data-dir=..\profile --no-default-browser-check --flag-switches-end
    
    # 自定义 Chromium 可执行文件位置 / Chromium executable file name (string):
    ChromiumBinary=chrome.exe
    
    # 自定义 Chromium 程序目录 / Chromium binaries directory (string):
    # Relative (to chrlauncher directory) or full path (env. variables supported).
    ChromiumDirectory=.\bin
    
    # Set Chromium binaries architecture (integer):
    #
    # 0		-> 	autodetect (default)
    # 64	-> 64-bit
    # 32	-> 32-bit
    ChromiumArchitecture=0
    
    # Auto download updates if found (boolean)
    #
    # false	-> show tray tip if update found, downloading manually (default)
    # true	-> auto download update and install it!
    ChromiumAutoDownload=false
    
    # Bring chrlauncher window when download started (boolean)
    #
    # false	-> don't bring main window to front automatically
    # true	-> bring chrlauncher window to front when download started (default)
    ChromiumBringToFront=true
    
    # Set download in foreground mode (boolean):
    #
    # false	-> start browser and check/download/install update in background
    # true	-> start browser only when check/download/install update complete (default)
    ChromiumWaitForDownloadEnd=true
    
    # Use chrlauncher as updater, but does not start Chromium (boolean):
    #
    # false	-> update & start Chromium (default)
    # true	-> download & install Chromium update without start
    ChromiumUpdateOnly=false
    
    # 支持的 Chromium 版本 / Type of Chromium builds:
    #
    # dev-official
    #	Official development builds from snapshots repository
    #	"storage.googleapis.com/chromium-browser-snapshots/index.html" (32/64 bit)
    #
    # stable-codecs-sync
    #	Unofficial stable builds with codecs
    #	"github.com/Hibbiki/chromium-win64/releases" (64 bit)
    #	"github.com/Hibbiki/chromium-win32/releases" (32 bit)
    #
    # dev-nosync
    #	Unofficial development builds without Google services
    #	"github.com/RobRich999/Chromium_Clang/releases" (32/64 bit)
    #
    # dev-codecs-sync
    #	Unofficial development builds with codecs and without Google services
    #	"github.com/macchrome/winchrome/releases" (64 bit)
    #
    # dev-codecs-nosync
    #	Unofficial development builds with codecs and without Google services
    #	"github.com/macchrome/winchrome/releases" (64 bit)
    #
    # ungoogled-chromium
    #	Unofficial builds without Google integration and enhanced privacy (based on Eloston project)
    #	"github.com/macchrome/winchrome/releases/" (32/64 bit)
    #	"github.com/Eloston/ungoogled-chromium"
    #
    # stable-codecs-nosync
    #	Unofficial stable builds with codecs and without google services
    #	!!! DISCONTINUED since June 2018 !!!
    ChromiumType=stable-codecs-sync
    
    # 更新检测频率 / Check for new Chromium version once in X days (integer):
    #
    # 2	-> check updates once in a X days (default)
    # 0	-> disable update checking
    # -1	-> force update checking
    ChromiumCheckPeriod=2
    
    # Last cached update checking timestamp (integer):
    ChromiumLastCheck=1703065267
    
    #
    # Internal settings (SDK)
    #
    
    # 自定义 UserAgent / Set custom useragent (string):
    #UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.0.0 Safari/537.36
    [chrlauncher\window]
    Position=1086,530
    

    其中79 行设置你要使用的 Chromium 版本,支持 7 种 Github 上的开源版本。当然你也可以设置8 行、11 行、15 行,使用自己电脑内的 Chrome ,并自定义启动明亮。

    如无特殊要求,更改 ChromiumType 为想要使用的开源版本后,执行配置文件同目录下chrlauncher.exe 程序即可自动下载设置好的 Chromium 版本,且浏览器会自动安装在同目录下bin 文件夹内,且启动完成会在同目录下生成用户资料文件夹 profile

    Enjoy !😊

    原文地址: https://1900.live/portable-launcher-for-chromium-browser/

    7 条回复    2024-03-30 21:32:06 +08:00
    jasonyang9
        1
    jasonyang9  
       128 天前
    非常好,我用 Firefox 。。。

    PS 好奇 OP 是怎么把原文中的 “并自定义启动命令” 复制粘贴成 “并自定义启动明亮” 的。哈哈
    zhangleijuly
        2
    zhangleijuly  
       128 天前
    我用的是 Hibbiki 的 Chromium 和 Chrome++,目前还算满意,等百分更新。
    Rebron1900
        3
    Rebron1900  
    OP
       128 天前
    @jasonyang9 原文打错字拉,只把原文改了,这边没动。hhh
    miaomiao888
        4
    miaomiao888  
       128 天前
    浏览器倒是挺多的,但是:
    大厂没有节操
    小厂更新乏力
    要么就是这那的问题
    最近想转用快赶上日更、支持 win7 、支持禁用 dw 渲染的猫眼,但发现不支持某个谷歌加密组件,有些视频会看不了,且由于是基于 Brave 源码构建,同步系统也用不了谷歌。

    想找个舒湖的浏览器可太难了,目前百分将就着。
    chinni
        5
    chinni  
       128 天前
    MyChrome 挺好用啊
    loveqianool
        6
    loveqianool  
       123 天前
    希望有能力的大佬给它加上使用 socks 代理更新,不然我在这边根本更新不了。
    willm
        7
    willm  
       28 天前
    请问具体去掉了哪些花里胡哨的功能呢?
    是指 Manifest V3 ? WEI ? Safe Browsing ?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   879 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:55 · PVG 05:55 · LAX 14:55 · JFK 17:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.