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

197 天前
 Features

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

--allow-file-access-from-files

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

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

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

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

733 次点击
所在节点    Chrome
2 条回复
Puteulanus
197 天前
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
把这个二进制文件挪一下,建一个同名的 bash 脚本调它,带上需要的参数,脚本 chmod +x 给执行权限
windyskr
197 天前
先 command+q 强制退出 Chrome ,再在终端里运行 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/986413

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX