您的当前位置:首页正文

Mac Chrome添加启动参数

来源:要发发知识网

忽略跨域参数

  1. 打开Terminal cd "/Applications/Google Chrome.app/Contents/MacOS/"
  2. 重命名的启动脚本 sudo mv "Google Chrome" Google.real
  3. 将下面的代码复制到文本, 保存为Google Chrome.
    并且复制到/Applications/Google Chrome.app/Contents/MacOS/
  4. 給你新的脚本添加执行权限: sudo chmod u+x "Google Chrome"
#!/bin/bash
cd "/Applications/Google Chrome.app/Contents/MacOS"
"/Applications/Google Chrome.app/Contents/MacOS/Google.real" --args --disable-web-security --user-data-dir