Surge Mac 更新日志
- UDP 整体架构进行重构,UDP 相关功能可能出现问题,如有遇到请回报。
- shadowsocks 协议支持配置 udp-port 参数,用于单独指定 UDP 模式的服务端端口号,可在使用 ShadowTLS 时使用原端口号。
- UDP 整体架构进行重构,UDP 相关功能可能出现问题,如有遇到请回报。
- shadowsocks 协议支持配置 udp-port 参数,用于单独指定 UDP 模式的服务端端口号,可在使用 ShadowTLS 时使用原端口号。
• 在相关代理工具中添加重写:
https://raw.githubusercontent.com/dompling/Script/master/wsgw/index.js
• Scriptable脚本地址:
https://raw.githubusercontent.com/anker1209/Scriptable/refs/heads/main/scripts/sgcc.js
• Boxjs填写账户信息:https://raw.githubusercontent.com/Yuheng0101/X/main/Tasks/boxjs.json
免责声明
:
1. 本脚本仅用于学习与研究,不得用于任何商业用途。
2. 作者对使用本脚本引起的任何后果不承担责任。
3. 如涉及版权或侵权问题,请联系作者,验证后将及时处理。
通过导出har到捷径,生成surge重放脚本及获取重写模块。适用于只有单请求的签到接口,比如机场签到等。
#!name=智慧苏州 去广告
#!desc=去开屏, 去 banner, 去瀑布流
#!category=xream
[General]
force-http-engine-hosts = %APPEND% newapp2.szsmk.com
[MITM]
hostname = %APPEND%, newapp2.szsmk.com
[Map Local]
^https?:\/\/newapp2\.szsmk\.com\/app\/config\/queryMainAd data-type=text data='{"message":"操作成功","main_ad_list":[],"code":"000000"}' header='Content-Type:application/json'
^https?:\/\/newapp2\.szsmk\.com\/app\/config\/(queryCarousel|queryRecommendation)\/ data-type=text data='{"code":"000000","message":"操作成功","list":[]}' header='Content-Type:application/json'#!name=小爱音箱 去广告
#!desc=去开屏 去 banner
#!category=xream
[General]
force-http-engine-hosts = %APPEND% info.mina.xiaoaisound.com
[MITM]
hostname = %APPEND%, info.mina.xiaoaisound.com
[Map Local]
^https?:\/\/info\.mina\.xiaoaisound\.com\/(advertise|payGuide)\/ data-type=text data='{ "code": 0, "message": "Success", "data": [] }' header='Content-Type:application/json'#!name=催眠大师 去广告
#!desc=去开屏
#!category=xream
[General]
force-http-engine-hosts = %APPEND% cmds.omesoft.com
[MITM]
hostname = %APPEND%, cmds.omesoft.com
[Body Rewrite]
http-response ^https?:\/\/cmds\.omesoft\.com\/HypnotistWS\.asmx '<GetADResult>.*?</GetADResult>' '<GetADResult>{"ret":0,"msg":"正常","err_code":0,"data":{"ad":[]}}</GetADResult>'#!name=粉象生活 去广告
#!desc=先去个开屏玩玩(JQ 版)
#!category=xream
[General]
force-http-engine-hosts = %APPEND% api.fenxianglife.com
[MITM]
hostname = %APPEND%, api.fenxianglife.com
[Body Rewrite]
http-response-jq ^https?:\/\/api\.fenxianglife\.com\/njia\/index\/popup\/v2 '.data.list = []'#!name=Reddit 去广告
#!desc=过滤推广, 关 NSFW 提示(JQ 版)
#!category=xream
[General]
force-http-engine-hosts = %APPEND% gql.reddit.com, gql-fed.reddit.com
[MITM]
hostname = %APPEND%, gql.reddit.com, gql-fed.reddit.com
[Body Rewrite]
http-response-jq ^https?:\/\/gql(-fed)?\.reddit\.com 'walk( if type == "object" then (if .isNsfw == true then .isNsfw = false else . end) | (if .isNsfwMediaBlocked == true then .isNsfwMediaBlocked = false else . end) | (if .isNsfwContentShown == false then .isNsfwContentShown = true else . end) | (if (.commentsPageAds | type == "array") then (.commentsPageAds = []) else . end) | (if ( (.node | type == "object") and (.node.cells | type == "array") and (.node.cells | any(.__typename? == "AdMetadataCell" or .isAdPost? == true)) ) then empty else . end) | (if (.node | type == "object") and (.node.adPayload | type == "object") then empty else . end) | (if .__typename == "AdPost" then empty else . end) else . end)'#!name = Reddit 去广告
#!desc = 过滤推广, 关 NSFW 提示(JQ 版)
#!openUrl = https://apps.apple.com/app/id1064216828
#!author = xream[https://github.com/xream]
#!tag = 去广告
#!system =
#!system_version =
#!loon_version = 3.2.4(769)
#!homepage = https://github.com/luestr/ProxyResource/blob/main/README.md
#!icon = https://raw.githubusercontent.com/luestr/IconResource/main/App_icon/120px/Reddit.png
#!date = 2024-10-26 03:35:00
[Rewrite]
^https?:\/\/gql(-fed)?\.reddit\.com response-body-json-jq 'walk( if type == "object" then (if .isNsfw == true then .isNsfw = false else . end) | (if .isNsfwMediaBlocked == true then .isNsfwMediaBlocked = false else . end) | (if .isNsfwContentShown == false then .isNsfwContentShown = true else . end) | (if (.commentsPageAds | type == "array") then (.commentsPageAds = []) else . end) | (if ( (.node | type == "object") and (.node.cells | type == "array") and (.node.cells | any(.__typename? == "AdMetadataCell" or .isAdPost? == true)) ) then empty else . end) | (if (.node | type == "object") and (.node.adPayload | type == "object") then empty else . end) | (if .__typename == "AdPost" then empty else . end) else . end)'
[MitM]
hostname = gql.reddit.com, gql-fed.reddit.com
2.14.276
MAIN 分支
└─ Surge
└─ Official
└─ Beta