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

相关推荐
紫微AI1 天前
WebMCP:开启 Agentic Web 新时代——Chrome 新 API 的特性与前瞻
前端·chrome
JamesYoung79712 天前
第一部分 — 基础知识 MV3 心智模型(实际发生了什么变化)
chrome
JamesYoung79713 天前
第一部分 — 基础知识 项目框架与文件布局
前端·chrome
nanbiandehe3 天前
openclaw配置第三方api记录
chrome·ai编程·openclaw
JamesYoung79713 天前
本书简介Chrome Manifest V3
chrome
L-李俊漩3 天前
手机端的google chrome 浏览器 怎么看响应的日志和请求报文
前端·chrome·智能手机
武帝为此3 天前
【Shell变量替换与测试】
前端·chrome
wsad05324 天前
Shell 脚本中的多行注释和 Here Document 语法解析
前端·chrome
Nanhuiyu4 天前
Shell编程从入门到精通-第二章 基础语法入门
chrome
REDcker6 天前
Media Source Extensions (MSE) 详解
前端·网络·chrome·浏览器·web·js