Chrome单独配置代理的方法

Windows

Windows上单独对Chrome设置代理,需要在启动时传递参数,具体步骤如下。

  1. 在Chrome浏览器的快捷方式上右击,进入属性。
  2. 快捷方式 标签下找到 目标 项目,在最后添加
    --proxy-server="socks5://xxx.xxx.xx.xx:xxxx"
    如果要使用http代理的话内容就改成
    --proxy-server="http://xxx.xxx.xx.xx:xxxx"
  3. 修改完之后 大体上就是这样 .../chrome.exe" --proxy-server="socks5://xxx.xxx.xx.xx:xxxx" 或者 .../chrome.exe" --proxy-server="http://xxx.xxx.xx.xx:xxxx"
  4. 然后关闭所有的Chrome窗口,再从修改好的图标打开Chrome就可以了。

Mac

Mac上单独对Chrome设置代理比较麻烦,因为Mac不像Windows可以直接编辑快捷方式,需要新建一个快捷方式来替代,具体步骤如下。

  1. 打开Automator ,mac里中文名叫 自动操作

  2. 选择应用程序

  3. 在左侧选择 运行Shell脚本

  4. 修改Shell内容、点击运行,运行测试代理生效就可以保存了。我直接保存在了桌面上

shell 复制代码
open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome  --args --proxy-server=socks5://xxx.xxx.xx.xx:xxxx
  1. 修改图标的时候只需要同时打开Chrome 的简介和新创建的应用程序的简介,然后把Chrome的图标拖到新应用程序的简介里就可以了。打开简介的方法是在应用上右键-显示简介。

参考资料

单独为Google Chrome 添加代理
自定你的Chrome應用程式(加上啟動參數)

相关推荐
集成显卡1 天前
PlayWright | 初识微软出品的 WEB 应用自动化测试框架
前端·chrome·测试工具·microsoft·自动化·edge浏览器
前端掘金者H2 天前
Chrome插件实现WebPush推送通知的功能
前端·chrome
HEX9CF2 天前
【Linux】awk 命令详解及使用示例:结构化文本数据处理工具
linux·chrome·算法
会飞的鱼先生2 天前
javascript中Cookie、BOM、DOM的使用
前端·javascript·chrome
全栈陈序员2 天前
前端文件下载常用方式详解
前端·javascript·chrome·ajax·css3·html5·safari
qq_336411752 天前
【笔记】Chrome浏览器的性能调试(performance)工具使用和代码优化
前端·chrome·笔记
Sapphire~2 天前
Linux-07 ubuntu 的 chrome 启动不了
linux·chrome·ubuntu
去旅行、在路上2 天前
chrome使用手机调试触屏web
前端·chrome
waterHBO3 天前
修改 vscode 左侧导航栏的文字大小 (更新版)
ide·chrome·vscode·编辑器
鱼与宇3 天前
WebSphere(WAS)
前端·chrome