From 08e8dc7206dd8524dfa7bf6dee35c01972a9b564 Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Wed, 19 Aug 2020 13:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Quantumult/Global.conf | 28 +++++++++++++++++++++++++ Quantumult/Rewrite/Unlock/TikTokJP.conf | 4 ++-- Quantumult/Rewrite/Unlock/TikTokKR.conf | 4 ++-- Quantumult/Rewrite/Unlock/TikTokTW.conf | 4 ++-- Quantumult/Rewrite/Unlock/TikTokUK.conf | 4 ++-- Surge/Global.conf | 10 +++++---- Surge/Module/Unlock/TikTokJP.sgmodule | 4 ++-- Surge/Module/Unlock/TikTokKR.sgmodule | 4 ++-- Surge/Module/Unlock/TikTokTW.sgmodule | 4 ++-- Surge/Module/Unlock/TikTokUK.sgmodule | 4 ++-- 10 files changed, 50 insertions(+), 20 deletions(-) diff --git a/Quantumult/Global.conf b/Quantumult/Global.conf index 5d8a37c..0fcd1b4 100644 --- a/Quantumult/Global.conf +++ b/Quantumult/Global.conf @@ -90,6 +90,11 @@ address=/mtalk.google.com/108.177.125.188 # SSID 策略根据网络环境的不同指向服务器。 ;ssid=policy-name-4, Sample-A, Sample-B, LINK_22E171:Sample-B, LINK_22E172:Sample-C +# resource-tag-regex 及 server-tag-regex 仅适用于 static、available 和 round-robin 类型的策略。 +;static=policy-name-5, resource-tag-regex=^sample, server-tag-regex=^example, img-url=http://example.com/icon.png +;available=policy-name-6, resource-tag-regex=^sample, server-tag-regex=^example +;round-robin=policy-name-7, resource-tag-regex=^sample, server-tag-regex=^example + static=Final, proxy, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Final.png static=Streaming, proxy, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Streaming.png static=StreamingSE, direct, proxy, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/StreamingSE.png @@ -170,6 +175,7 @@ https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrit # chacha20-ietf-poly1305 和 chacha20-poly1305 在 VMess 配置中具有相同的效果。 # # 可选字段 tls13 仅用于:shadowsocks obfs=wss / vmess obfs=over-tls and obfs=wss / http over-tls=true / trojan over-tls=true +# [server_local] 完整示例请查看「示例」 [filter_local] # Local Area Network 局域网 @@ -186,8 +192,30 @@ ip-cidr, 224.0.0.0/24, direct final, Final [rewrite_local] +# [rewrite_local] 完整示例请查看「示例」 [task_local] +# +# $task.fetch() 组成一个 HTTP 请求并处理响应,只支持 text body。如果您想要 serial requests 而不是 current requests,可以将 $task.fetch() 嵌入到另一个 $task.fetch() 的完成处理程序中。 +# +# 脚本应保存在本地「我的 iPhone - Quantumult X - Scripts」或「iCloud Drive - Quantumult X - Scripts」中。示例:https://github.com/crossutility/Quantumult-X/blob/master/sample-task.js +# +# 默认的 HTTP 请求超时是 10 秒。 +# +# 支持 5 或 6 个 cron 字段,不包括命令字段。 +# + +# [task_local] 完整示例请查看「示例」 + +[http_backend] +# +# 部署一个本地 HTTP 服务器,并使用 JavaScript 进行数据处理。 +# 输入变量为:$reqeust.url、$reqeust.path、$reqeust.headers、$reqeust.body。 +# 使用 $done 输出像 $done({status:"HTTP/1.1 200 OK"}, headers:{}, body:"here is a string") 这样的返回响应。 +# 此外,您还可以使用签名或任何其他验证方法来验证请求是否合法。 +# 部署后您应该通过 http://127.0.0.1:9999/your-path/your-api/. 进行访问。服务器默认监听端口为 9999,您可以在UI中进行更改。 +# +# [http_backend] 完整示例请查看「示例」 [mitm] # diff --git a/Quantumult/Rewrite/Unlock/TikTokJP.conf b/Quantumult/Rewrite/Unlock/TikTokJP.conf index da40385..5cdc8d7 100644 --- a/Quantumult/Rewrite/Unlock/TikTokJP.conf +++ b/Quantumult/Rewrite/Unlock/TikTokJP.conf @@ -2,5 +2,5 @@ hostname = *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com # TikTok By wzw1997007 & Choler (?<=_region=)CN(?=&) url 307 JP -(?<=&app_version=)17..(?=.?.?&) url 307 1 -(?<=\?version_code=)17..(?=.?.?&) url 307 1 \ No newline at end of file +(?<=&app_version=)1[6-9]..(?=.?.?&) url 307 1 +(?<=\?version_code=)1[6-9]..(?=.?.?&) url 307 1 \ No newline at end of file diff --git a/Quantumult/Rewrite/Unlock/TikTokKR.conf b/Quantumult/Rewrite/Unlock/TikTokKR.conf index b76bb3c..63e187d 100644 --- a/Quantumult/Rewrite/Unlock/TikTokKR.conf +++ b/Quantumult/Rewrite/Unlock/TikTokKR.conf @@ -2,5 +2,5 @@ hostname = *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com # TikTok By wzw1997007 & Choler (?<=_region=)CN(?=&) url 307 KR -(?<=&app_version=)17..(?=.?.?&) url 307 1 -(?<=\?version_code=)17..(?=.?.?&) url 307 1 \ No newline at end of file +(?<=&app_version=)1[6-9]..(?=.?.?&) url 307 1 +(?<=\?version_code=)1[6-9]..(?=.?.?&) url 307 1 \ No newline at end of file diff --git a/Quantumult/Rewrite/Unlock/TikTokTW.conf b/Quantumult/Rewrite/Unlock/TikTokTW.conf index bc37152..b140a8e 100644 --- a/Quantumult/Rewrite/Unlock/TikTokTW.conf +++ b/Quantumult/Rewrite/Unlock/TikTokTW.conf @@ -2,5 +2,5 @@ hostname = *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com # TikTok By wzw1997007 & Choler (?<=_region=)CN(?=&) url 307 TW -(?<=&app_version=)17..(?=.?.?&) url 307 1 -(?<=\?version_code=)17..(?=.?.?&) url 307 1 \ No newline at end of file +(?<=&app_version=)1[6-9]..(?=.?.?&) url 307 1 +(?<=\?version_code=)1[6-9]..(?=.?.?&) url 307 1 \ No newline at end of file diff --git a/Quantumult/Rewrite/Unlock/TikTokUK.conf b/Quantumult/Rewrite/Unlock/TikTokUK.conf index a521cea..6211a63 100644 --- a/Quantumult/Rewrite/Unlock/TikTokUK.conf +++ b/Quantumult/Rewrite/Unlock/TikTokUK.conf @@ -2,5 +2,5 @@ hostname = *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com # TikTok By wzw1997007 & Choler (?<=_region=)CN(?=&) url 307 UK -(?<=&app_version=)17..(?=.?.?&) url 307 1 -(?<=\?version_code=)17..(?=.?.?&) url 307 1 \ No newline at end of file +(?<=&app_version=)1[6-9]..(?=.?.?&) url 307 1 +(?<=\?version_code=)1[6-9]..(?=.?.?&) url 307 1 \ No newline at end of file diff --git a/Surge/Global.conf b/Surge/Global.conf index 2360e07..38d35bb 100644 --- a/Surge/Global.conf +++ b/Surge/Global.conf @@ -194,6 +194,10 @@ mtalk.google.com = 108.177.125.188 [Header Rewrite] # CUSTOM HEADER + +# 如果你解锁了「模块」功能可以使用 sgmodule 后删除以下 Rewrite 几 MitM 部分 +# 建议必选使用 General.sgmodule + [URL Rewrite] # Redirect Google Search Service ^(http|https):\/\/(www.)?(g|google)\.cn https://www.google.com 302 @@ -262,8 +266,8 @@ mtalk.google.com = 108.177.125.188 # TikTok (By wzw1997007) - *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com # (?<=_region=)CN(?=&) JP 307 -# (?<=&app_version=)17..(?=.?.?&) 1 307 -# (?<=\?version_code=)17..(?=.?.?&) 1 307 +# (?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 +# (?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 #Resso (By JO2EY) - api.resso.app # (?<=(carrier|account|sys|sim)_region=)cn in 307 @@ -271,8 +275,6 @@ mtalk.google.com = 108.177.125.188 # AbeamTV - api.abema.io ^(http|https):\/\/api\.abema\.io\/v\d\/ip\/check - reject -# 如果你解锁了「模块」功能可以使用 Block-Ads.sgmodule 后删除以下 Rewrite 部分 - # 0~9 # > 21st Century Business Herald - api.21jingji.com ^(http|https):\/\/api\.21jingji\.com\/ad\/ - reject diff --git a/Surge/Module/Unlock/TikTokJP.sgmodule b/Surge/Module/Unlock/TikTokJP.sgmodule index 7431de1..3e0dc6e 100644 --- a/Surge/Module/Unlock/TikTokJP.sgmodule +++ b/Surge/Module/Unlock/TikTokJP.sgmodule @@ -4,8 +4,8 @@ [URL Rewrite] (?<=_region=)CN(?=&) JP 307 -(?<=&app_version=)17..(?=.?.?&) 1 307 -(?<=\?version_code=)17..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 [MITM] hostname = %INSERT% *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com \ No newline at end of file diff --git a/Surge/Module/Unlock/TikTokKR.sgmodule b/Surge/Module/Unlock/TikTokKR.sgmodule index 788c560..4e7cf07 100644 --- a/Surge/Module/Unlock/TikTokKR.sgmodule +++ b/Surge/Module/Unlock/TikTokKR.sgmodule @@ -4,8 +4,8 @@ [URL Rewrite] (?<=_region=)CN(?=&) KR 307 -(?<=&app_version=)17..(?=.?.?&) 1 307 -(?<=\?version_code=)17..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 [MITM] hostname = %INSERT% *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com \ No newline at end of file diff --git a/Surge/Module/Unlock/TikTokTW.sgmodule b/Surge/Module/Unlock/TikTokTW.sgmodule index 7dc23dc..1843616 100644 --- a/Surge/Module/Unlock/TikTokTW.sgmodule +++ b/Surge/Module/Unlock/TikTokTW.sgmodule @@ -4,8 +4,8 @@ [URL Rewrite] (?<=_region=)CN(?=&) TW 307 -(?<=&app_version=)17..(?=.?.?&) 1 307 -(?<=\?version_code=)17..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 [MITM] hostname = %INSERT% *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com \ No newline at end of file diff --git a/Surge/Module/Unlock/TikTokUK.sgmodule b/Surge/Module/Unlock/TikTokUK.sgmodule index 9dede9d..c8327f8 100644 --- a/Surge/Module/Unlock/TikTokUK.sgmodule +++ b/Surge/Module/Unlock/TikTokUK.sgmodule @@ -4,8 +4,8 @@ [URL Rewrite] (?<=_region=)CN(?=&) UK 307 -(?<=&app_version=)17..(?=.?.?&) 1 307 -(?<=\?version_code=)17..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 +(?<=&app_version=)1[6-9]..(?=.?.?&) 1 307 [MITM] hostname = %INSERT% *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com \ No newline at end of file