From 4dbe0cd4f0310915aee1097a80b6e1579d0ae2cd Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Sat, 11 Dec 2021 23:23:50 +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/Rewrite/Block/Advertising.conf | 1 + Quantumult/Rewrite/Block/AdvertisingPlus.conf | 5 +++-- Surge/Module/Block/Advertising.sgmodule | 1 + Surge/Module/Block/AdvertisingPlus.sgmodule | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Quantumult/Rewrite/Block/Advertising.conf b/Quantumult/Rewrite/Block/Advertising.conf index 3bc8a39..b1778e9 100644 --- a/Quantumult/Rewrite/Block/Advertising.conf +++ b/Quantumult/Rewrite/Block/Advertising.conf @@ -46,6 +46,7 @@ hostname = -lark-frontier-hl.snssdk.com,api.21jingji.com,service.4gtv.tv,app.58. # B # > ByteDance ^https?:\/\/[\w-]+\.(amemv|musical|snssdk|tiktokv)\.(com|ly)\/(api|motor)\/ad\/ url reject +^https?:\/\/[\w-]+\.amemv\.com\/aweme\/v\d\/ad\/ url reject ^https?:\/\/[\w-]+\.snssdk\.com\/.+_ad\/ url reject ^https?:\/\/[\w-]+\.snssdk\.com\/motor\/operation\/activity\/display\/config\/V2\/ url reject ^https?:\/\/.+?\/img\/ad\.union\.api\/ url reject diff --git a/Quantumult/Rewrite/Block/AdvertisingPlus.conf b/Quantumult/Rewrite/Block/AdvertisingPlus.conf index e98a099..c176ef3 100644 --- a/Quantumult/Rewrite/Block/AdvertisingPlus.conf +++ b/Quantumult/Rewrite/Block/AdvertisingPlus.conf @@ -2,8 +2,9 @@ hostname = api.weibo.cn,mapi.weibo.com,*.uve.weibo.com,www.zhihu.com,api.zhihu.c # ---(By Choler)--- # > Douyin(<= 16.2.0) - api*.amemv.com,aweme.snssdk.com -^https?:\/\/api.*\.amemv\.com\/aweme\/v\d\/(?!(comment|namek|series|shop)) url request-header ^GET \/aweme\/v\d\/(.+\r\n)Host:.+(\r\n) request-header GET /aweme/v1/$1Host: aweme.snssdk.com$2 -^https?:\/\/api.*\.amemv\.com\/aweme\/v[12]\/((|follow\/|nearby\/)feed|aweme\/post|hot\/search\/video\/list|mix\/aweme|aweme\/detail)\/\? url script-response-body https://raw.githubusercontent.com/Choler/Surge/master/Script/douyin.js +https?:\/\/(.+?)\.amemv\.com\/aweme\/v2\/feed\/ url request-header GET \/aweme\/v\d\/(.+\r\n) request-header GET /aweme/v1/$1 + +https?:\/\/(.+?)\.amemv\.com\/aweme\/v\d\/feed\/ url script-response-body https://raw.githubusercontent.com/Choler/Surge/master/Script/douyin.js # ------ # ---(By yichahucha)--- diff --git a/Surge/Module/Block/Advertising.sgmodule b/Surge/Module/Block/Advertising.sgmodule index 70e8a08..4829b4a 100644 --- a/Surge/Module/Block/Advertising.sgmodule +++ b/Surge/Module/Block/Advertising.sgmodule @@ -46,6 +46,7 @@ URL-REGEX,^https?:\/\/api\.m\.jd.com\/client\.action\?functionId=start,REJECT-TI # B # > ByteDance ^https?:\/\/[\w-]+\.(amemv|musical|snssdk|tiktokv)\.(com|ly)\/(api|motor)\/ad\/ - reject +^https?:\/\/[\w-]+\.amemv\.com\/aweme\/v\d\/ad\/ - reject ^https?:\/\/[\w-]+\.snssdk\.com\/.+_ad\/ - reject ^https?:\/\/[\w-]+\.snssdk\.com\/motor\/operation\/activity\/display\/config\/V2\/ - reject ^https?:\/\/.+?\/img\/ad\.union\.api\/ - reject diff --git a/Surge/Module/Block/AdvertisingPlus.sgmodule b/Surge/Module/Block/AdvertisingPlus.sgmodule index 98f10ad..a82266a 100644 --- a/Surge/Module/Block/AdvertisingPlus.sgmodule +++ b/Surge/Module/Block/AdvertisingPlus.sgmodule @@ -3,7 +3,7 @@ [URL Rewrite] # > Douyin(<= 16.2.0) By Choler -^https?:\/\/api.*\.amemv\.com\/aweme\/v\d\/(?!(comment|namek|series|shop)) https://aweme.snssdk.com/aweme/v1/ header +^https?:\/\/api.*\.amemv\.com\/aweme\/v2\/feed\/ https://aweme.snssdk.com/aweme/v1/feed/ header [Map Local] # ---(By blackmatrix7)--- @@ -13,7 +13,7 @@ [Script] # ---(By Choler)--- # > Douyin(<= 16.2.0) - api*.amemv.com, aweme.snssdk.com -douyin = type=http-response,pattern=^https?:\/\/aweme\.snssdk\.com\/aweme\/v[12]\/((|follow\/|nearby\/)feed|aweme\/post|hot\/search\/video\/list|mix\/aweme|aweme\/detail)\/\?,requires-body=1,script-path=https://raw.githubusercontent.com/Choler/Surge/master/Script/douyin.js +douyin = type=http-response,pattern=^https?:\/\/aweme\.snssdk\.com\/aweme\/v\d\/feed\/,requires-body=1,script-path=https://raw.githubusercontent.com/Choler/Surge/master/Script/douyin.js # ------ # ---(By yichahucha)---