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應用程式(加上啟動參數)

相关推荐
小码吃趴菜16 小时前
Shell脚本编程
前端·chrome
jarreyer17 小时前
【AI编程】claudecode插件配置记录和trae软件相关配置
前端·chrome·ai编程
木斯佳18 小时前
周末杂谈:Chrome CSS 2025-声明式Web的革命之年
前端·css·chrome
烟锁池塘柳01 天前
【已解决】Google Chrome 浏览器报错 STATUS_ACCESS_VIOLATION 的解决方案
前端·chrome
Trouvaille ~1 天前
【Linux】进程间通信(二):命名管道与进程池架构实战
linux·c++·chrome·架构·进程间通信·命名管道·进程池
John_ToDebug2 天前
Chrome Safe Browsing:浏览器安全背后的全局防护机制解析
chrome·安全
万邦科技Lafite2 天前
小红书评论数据一键获取,item_reviewAPI接口讲解
大数据·前端·数据库·chrome·电商开放平台
呃m3 天前
更好地使用Google Chrome
前端·chrome
John Song4 天前
Linux机器怎么查看进程内存占用情况
linux·运维·chrome
weixin_438732104 天前
ChromeDriver谷歌驱动下载
linux·chrome·selenium·自动化·mac·chrome devtools·chromedriver