Get Google Chrome
Vimium · 在 Chrome 里使用 vim 快捷键
Features
V2EX  ›  Chrome

mac 下的 chrome 怎么添加启动参数?

  •  
  •   Features · Oct 29, 2023 · 1899 views
    This topic created in 935 days ago, the information mentioned may be changed or developed.

    mac 下的 chrome 想添加如下启动参数

    --allow-file-access-from-files

    --user-data-dir="~/MyChromeUserData"

    --disable-web-security --disable-site-isolation-trials

    Google 了很多办法都不行,chatgpt 给出的方法也是不行

    大家有成功的方法可以分享一下吗?

    2 replies    2023-10-29 14:55:09 +08:00
    Puteulanus
        1
    Puteulanus  
       Oct 29, 2023   ❤️ 1
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
    把这个二进制文件挪一下,建一个同名的 bash 脚本调它,带上需要的参数,脚本 chmod +x 给执行权限
    windyskr
        2
    windyskr  
       Oct 29, 2023   ❤️ 1
    先 command+q 强制退出 Chrome ,再在终端里运行 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 22:07 · PVG 06:07 · LAX 15:07 · JFK 18:07
    ♥ Do have faith in what you're doing.