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

相关推荐
Pixeler24 分钟前
[特殊字符] Selenium 实战教程:等待与表单元素操作
chrome·selenium·测试工具
命运之光8 小时前
【最新】ChromeDriver最新版本下载安装教程,ChromeDriver版本与Chrome不匹配问题
前端·chrome
裤裤兔16 小时前
python爬取pdf文件并保存至本地
chrome·爬虫·python·pdf·网络爬虫
bitbrowser18 小时前
实操总结:如何高效导入Chrome书签到指纹浏览器?
前端·chrome·python
serve the people2 天前
HTML Document Loaders in LangChain
chrome·langchain·html
凄戚3 天前
bash和命令
开发语言·chrome·bash
Evan芙3 天前
Bash 变量命名规则与类型使用
linux·运维·开发语言·chrome·bash
wyjcxyyy3 天前
polar靶场-MISC,WEB(中等)
前端·chrome
女生寝室0383 天前
《Chrome》 [142.0.7444.60][绿色便携版] 下载
前端·chrome
CS_浮鱼3 天前
【Linux】基础IO
linux·运维·chrome