1.下载chrome67,或者下载chrome71,双击dmg文件
2.将chrome拖到Application文件夹,选择保留两者,不要替换
打开应用程序,会多出一个Google Chrome2,重命名为Google Chrome69
3.制作快捷方式
- command+空格,然后搜索"脚本编辑器",然后打开脚本编辑器,如图:
![10091540-a6467cc889b23ff7.png](https://i-blog.csdnimg.cn/blog_migrate/305fb50d06764604350eca6cdc59e236.png)
2) 复制下面的代码到编辑器中:
<pre style="margin-top: 0px; margin-bottom: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important; max-width: 600px;">do shell script "/Applications/Google\ Chrome69.app/Contents/MacOS/Google\ Chrome --user-data-dir=/Users/$USER/Library/Application\ Support/Google/Chrome69 > /dev/null 2>&1 &"</pre>
如图:
![10091540-71a9ff3f7f0a20a8.png](https://i-blog.csdnimg.cn/blog_migrate/f8cb4e72eb0c19768020dc969a333707.png)
3) 另存为chromg69,保存到应用程序下,文件格式选择应用程序,如图:
![10091540-3d28ab6648f0f96f.png](https://i-blog.csdnimg.cn/blog_migrate/fb29722447a11099f08e73309fc6fc3c.png)
4. 终于完成了,用lancher找到chrome69的图标,点击即可打开:
![10091540-e7d47835988188ae.png](https://i-blog.csdnimg.cn/blog_migrate/c5d4a69c4b81419f3336f5c5c23286aa.png)
番外篇, 如何开启跨域模式: 快捷方式的脚本可以随时编辑变更:
![10091540-33d9ad83e1fa2aa6.png](https://i-blog.csdnimg.cn/blog_migrate/a1b946473f7fb08cdae990c7adb2a2a2.png)
![10091540-96c01ccff2104322.png](https://i-blog.csdnimg.cn/blog_migrate/0590e103ff4724e65d46c16fed96c688.png)
在main.scpt上点右键,选择用脚本编辑器打开即可编辑。
我编辑的是:
do shell script "/Applications/Google\\ Chrome71.app/Contents/MacOS/Google\\ Chrome --args --disable-web-security --allow-file-access-from-files --enable-webgl --ignore-gpu-blacklist --allow-file-access --remote-debugging-port=9222 --user-data-dir=/Users/$USER/Library/Application\\ Support/Google/Chrome71 > /dev/null 2>&1 &"
其中参数 --disable-web-security --allow-file-access-from-files 就是跨域用的。