V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Get Google Chrome
Vimium · 在 Chrome 里使用 vim 快捷键
Features
V2EX  ›  Chrome

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

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

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

    --allow-file-access-from-files

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

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

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

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

    2 条回复    2023-10-29 14:55:09 +08:00
    Puteulanus
        1
    Puteulanus  
       182 天前   ❤️ 1
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
    把这个二进制文件挪一下,建一个同名的 bash 脚本调它,带上需要的参数,脚本 chmod +x 给执行权限
    windyskr
        2
    windyskr  
       182 天前   ❤️ 1
    先 command+q 强制退出 Chrome ,再在终端里运行 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3068 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:10 · PVG 22:10 · LAX 07:10 · JFK 10:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.