TGViewer
Cool Scripts Cool Scripts @cool_scripts · 16.3K subscribers
Post #282 19.6K
#Surge #httpAPI #Shortcuts

Surge 兼容模式

某些 App 会检测代理,通过使用快捷指令的自动化功能,可以在开关这些 App 的同时,开关 Surge 的兼容模式。

⚠️注意:HTTP API 不能直接切换兼容模式,需要通过控制模块开关实现,所以必须得创建1⃣️中的模块。

⚠️注意:请注意使用,配置不当的情况下有可能导致长期开着兼容模式,会导致Surge把所有流量当成tcp处理,作用于http的高级功能会消失。有这种情况下请手动关闭兼容模式的模块

注:需订阅至 Surge 包含 HTTP API 功能。快捷指令App自动化需要iOS 14以上。

使用方法:
1⃣️ 创建Tun Only模块,复制以下内容到模块创建本地模块:

#!name=Tun Only
#!desc=兼容模式
#!system=ios

[General]
compatibility-mode = 3

2⃣️ 安装快捷指令:

https://www.icloud.com/shortcuts/242e0f8281994bdba80eb42112502788

https://www.icloud.com/shortcuts/d982afccbc0e4dc794df24a9b8a06776

3⃣️ 配置文件配置好 HTTP API 如:

[General]
http-api = mieq@0.0.0.0:6166

并填入快捷指令对应栏目。

4⃣️创建快捷指令App自动化,打开和关闭app时,分别执行打开/关闭兼容模式的快捷指令。

5⃣️注意第一次运行的时候要给网络和通知权限。

开发不易,点个✨吧~
如果发现有bug,欢迎反馈。
🔔频道: Cool Scripts
🧑🏻‍💻作者: @mieqq
  • 👍 5
  • ❤ 1
More from @cool_scripts
  1. Oct 7, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.42.3 🌐 前端: 2.34.0 ▎调整 sing-box TLS certificate_sha256 相关逻辑 sing-…
  2. Sep 27, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.42.0 🌐 前端: 2.34.0 ▎使用 shoutrrr-ts Docker 版也移除了 shoutrrr 二进制 感谢 D…
  3. Sep 26, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.41.1 🌐 前端: 2.34.0 ▎调整 sing-box SSH 密钥逻辑 感谢群友 shica 的反馈 ▎调整 SS UR…
  4. Sep 23, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.41.0 🌐 前端: 2.34.0 ▎📦 sing-box WireGuard/Tailscale 支持一些 sing-box…
  5. Sep 19, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.39.9 🌐 前端: 2.32.2 ▎🎈 Loon 支持 server-dns 用于指定解析节点服务器域名的 DNS Loon…
  6. Sep 12, 2026🔗 Sub-Store 更新 ⚙️ 后端: 2.39.6 🌐 前端: 2.32.2 ▎🐿️ Egern 支持转换 ip-version 感谢群友 shica 的反馈 自动转换…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →