Edge浏览器启动插件

一个Fish shell插件,用于在macOS上启动Microsoft Edge,支持选择配置文件和版本,并可启用调试模式。

  • by scaryrawr
  • Shell
  • 本地部署
  • 更新于
在 GitHub 查看 scaryrawr/devedge.fish

使用说明

devedge.fish

一种编码的氛围 鱼壳 用于在启用/不启用调试的情况下在macOS上启动具有配置文件和口味选择的Microsoft Edge的插件。

理由

使启动edge更容易与 chrome开发工具mcp。你可以用以下方式推出边缘风味 --debug 启用mcp可以连接到的远程调试。将mcp服务器添加到您的用户mcp:

"chrome-devtools": {
  "command": "npx",
  "args": [
    "chrome-devtools-mcp@latest",
    // Make sure the port here matches what you specified, 9222 is default
    "--browser-url=http://127.0.0.1:9222"
  ]
}

我强烈建议安装多个浏览器(无论是多种边缘风格,还是边缘+其他东西)。您的默认浏览器可用于调试,但让MCP服务器利用其他浏览器会更好(在macOS上,您必须退出浏览器才能在调试模式下启动它)。

安装

使用 费希尔 (推荐)

fisher install scaryrawr/devedge.fish

依赖项

此插件需要安装以下工具:

依赖关系 目的 安装
jq公司 配置文件数据的JSON解析 brew install jq
Microsoft Edge 浏览器本身 下载
Microsoft Edge Insiders Insider构建了更多版本 下载

用法

基本用法

# Launch Microsoft Edge (stable)
edge

# Open a URL
edge https://github.com

选择口味

# Launch Edge Canary
edge --flavor 'Microsoft Edge Canary'

# Launch Edge Stable
edge

选择配置文件

# Launch with a specific profile (by email)
edge --profile user@example.com

# Combine flavor and profile
edge --flavor 'Microsoft Edge Canary' --profile work@company.com

远程调试

# Enable remote debugging on default port (9222)
edge --debug

# Enable remote debugging on a custom port
edge --debug=9229

Edge 136和更新版本需要远程调试才能使用非默认用户数据 目录。因此,每次调试启动都会在 macOS临时目录。这保护了正常的浏览器配置文件,但 临时配置文件不保留登录、Cookie、扩展或设置 在发射之间。

组合选项

edge --flavor 'Microsoft Edge Canary' --profile dev@example.com --debug

选项卡完成

该插件提供智能标签补全功能:

  • --flavor --已安装Edge风格
  • --profile --使用个人资料电子邮件完成(按所选口味过滤)
  • --debug --启用远程调试

平台支持

目前,该插件仅支持 macOS.

许可证

麻省理工学院