From 40441f1973c45495d4f63290122dea613cb15408 Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Sat, 12 Nov 2022 11:14:10 +0800 Subject: [PATCH 1/4] fix: missing policy --- Quantumult/Filter/Unbreak.list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quantumult/Filter/Unbreak.list b/Quantumult/Filter/Unbreak.list index 9ddd5d4..b288da8 100644 --- a/Quantumult/Filter/Unbreak.list +++ b/Quantumult/Filter/Unbreak.list @@ -14,7 +14,7 @@ DOMAIN,update.googleapis.com,DIRECT DOMAIN,dl.google.com,DIRECT DOMAIN,dl.l.google.com,DIRECT DOMAIN,update.googleapis.com,DIRECT -# >> Firebase Cloud Messaging +# >> Firebase Cloud Messaging,DIRECT DOMAIN,mtalk.google.com DOMAIN,alt1-mtalk.google.com,DIRECT DOMAIN,alt2-mtalk.google.com,DIRECT From 1bd7670d83a02af4e1eacf461f9919a260be34bf Mon Sep 17 00:00:00 2001 From: Spac <101972491+spacding@users.noreply.github.com> Date: Sat, 12 Nov 2022 11:57:33 +0800 Subject: [PATCH 2/4] fix: policy error --- Quantumult/Filter/Unbreak.list | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Quantumult/Filter/Unbreak.list b/Quantumult/Filter/Unbreak.list index b288da8..c1eda4a 100644 --- a/Quantumult/Filter/Unbreak.list +++ b/Quantumult/Filter/Unbreak.list @@ -14,8 +14,8 @@ DOMAIN,update.googleapis.com,DIRECT DOMAIN,dl.google.com,DIRECT DOMAIN,dl.l.google.com,DIRECT DOMAIN,update.googleapis.com,DIRECT -# >> Firebase Cloud Messaging,DIRECT -DOMAIN,mtalk.google.com +# >> Firebase Cloud Messaging +DOMAIN,mtalk.google.com,DIRECT DOMAIN,alt1-mtalk.google.com,DIRECT DOMAIN,alt2-mtalk.google.com,DIRECT DOMAIN,alt3-mtalk.google.com,DIRECT @@ -35,4 +35,4 @@ DOMAIN,vi.l.qq.com,DIRECT DOMAIN,analytics.strava.com,DIRECT # > Umeng DOMAIN,msg.umeng.com,DIRECT -DOMAIN,msg.umengcloud.com,DIRECT \ No newline at end of file +DOMAIN,msg.umengcloud.com,DIRECT From 210219f461ee3cb8df0b9bb3b40b4168ec33252c Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Thu, 17 Nov 2022 10:16:13 +0800 Subject: [PATCH 3/4] feat: Add Hami Video --- Clash/RuleSet/StreamingMedia/Streaming.yaml | 6 ++++++ Clash/RuleSet/StreamingMedia/Video/Hami-Video.yaml | 7 +++++++ Quantumult/Filter/StreamingMedia/Streaming.list | 5 +++++ Quantumult/Filter/StreamingMedia/Video/Hami-Video.list | 5 +++++ Surge/Ruleset/StreamingMedia/Streaming.list | 6 ++++++ Surge/Ruleset/StreamingMedia/Video/Hami-Video.list | 5 +++++ 6 files changed, 34 insertions(+) create mode 100644 Clash/RuleSet/StreamingMedia/Video/Hami-Video.yaml create mode 100644 Quantumult/Filter/StreamingMedia/Video/Hami-Video.list create mode 100644 Surge/Ruleset/StreamingMedia/Video/Hami-Video.list diff --git a/Clash/RuleSet/StreamingMedia/Streaming.yaml b/Clash/RuleSet/StreamingMedia/Streaming.yaml index 0db6b7a..f6189d5 100644 --- a/Clash/RuleSet/StreamingMedia/Streaming.yaml +++ b/Clash/RuleSet/StreamingMedia/Streaming.yaml @@ -148,6 +148,12 @@ payload: - DOMAIN-SUFFIX,encoretvb.com - DOMAIN,edge.api.brightcove.com - DOMAIN,bcbolt446c5271-a.akamaihd.net + # > Hami Video + - PROCESS-NAME,com.cht.ottPlayer + - DOMAIN-SUFFIX,ott.hinet.net + - DOMAIN-SUFFIX,hamivideo.hinet.net + - DOMAIN,hls-hichannel.cdn.hinet.net + - DOMAIN-KEYWORD,hamivideo.cdn.hinet.net # > HBO NOW & Max - PROCESS-NAME,com.hbo.hbonow - DOMAIN-SUFFIX,hbo.com diff --git a/Clash/RuleSet/StreamingMedia/Video/Hami-Video.yaml b/Clash/RuleSet/StreamingMedia/Video/Hami-Video.yaml new file mode 100644 index 0000000..3af91a5 --- /dev/null +++ b/Clash/RuleSet/StreamingMedia/Video/Hami-Video.yaml @@ -0,0 +1,7 @@ +payload: + # > Hami Video + - PROCESS-NAME,com.cht.ottPlayer + - DOMAIN-SUFFIX,ott.hinet.net + - DOMAIN-SUFFIX,hamivideo.hinet.net + - DOMAIN,hls-hichannel.cdn.hinet.net + - DOMAIN-KEYWORD,hamivideo.cdn.hinet.net \ No newline at end of file diff --git a/Quantumult/Filter/StreamingMedia/Streaming.list b/Quantumult/Filter/StreamingMedia/Streaming.list index 7646746..625ae26 100644 --- a/Quantumult/Filter/StreamingMedia/Streaming.list +++ b/Quantumult/Filter/StreamingMedia/Streaming.list @@ -148,6 +148,11 @@ USER-AGENT,encoreTVB*,Streaming DOMAIN-SUFFIX,encoretvb.com,Streaming DOMAIN,edge.api.brightcove.com,Streaming DOMAIN,bcbolt446c5271-a.akamaihd.net,Streaming +# > Hami Video +DOMAIN-SUFFIX,ott.hinet.net,Streaming +DOMAIN-SUFFIX,hamivideo.hinet.net,Streaming +DOMAIN,hls-hichannel.cdn.hinet.net,Streaming +DOMAIN-KEYWORD,hamivideo.cdn.hinet.net,Streaming # > HBO NOW & Max USER-AGENT,HBO%20NOW*,Streaming DOMAIN-SUFFIX,hbo.com,Streaming diff --git a/Quantumult/Filter/StreamingMedia/Video/Hami-Video.list b/Quantumult/Filter/StreamingMedia/Video/Hami-Video.list new file mode 100644 index 0000000..d98245d --- /dev/null +++ b/Quantumult/Filter/StreamingMedia/Video/Hami-Video.list @@ -0,0 +1,5 @@ +# > Hami Video +DOMAIN-SUFFIX,ott.hinet.net,Hami Video +DOMAIN-SUFFIX,hamivideo.hinet.net,Hami Video +DOMAIN,hls-hichannel.cdn.hinet.net,Hami Video +DOMAIN-KEYWORD,hamivideo.cdn.hinet.net,Hami Video \ No newline at end of file diff --git a/Surge/Ruleset/StreamingMedia/Streaming.list b/Surge/Ruleset/StreamingMedia/Streaming.list index 961d601..affe60c 100644 --- a/Surge/Ruleset/StreamingMedia/Streaming.list +++ b/Surge/Ruleset/StreamingMedia/Streaming.list @@ -148,6 +148,11 @@ USER-AGENT,encoreTVB* DOMAIN-SUFFIX,encoretvb.com DOMAIN,edge.api.brightcove.com DOMAIN,bcbolt446c5271-a.akamaihd.net +# > Hami Video +DOMAIN-SUFFIX,ott.hinet.net +DOMAIN-SUFFIX,hamivideo.hinet.net +DOMAIN,hls-hichannel.cdn.hinet.net +DOMAIN-KEYWORD,hamivideo.cdn.hinet.net # > HBO NOW & Max USER-AGENT,HBO%20NOW* DOMAIN-SUFFIX,hbo.com @@ -219,6 +224,7 @@ USER-AGENT,com.kktv.ios.kktv* DOMAIN-SUFFIX,kktv.com.tw DOMAIN-SUFFIX,kktv.me DOMAIN,kktv-theater.kk.stream +DOMAIN,theater-kktv.cdn.hinet.net # > LINE TV USER-AGENT,LINE%20TV* DOMAIN-SUFFIX,linetv.tw diff --git a/Surge/Ruleset/StreamingMedia/Video/Hami-Video.list b/Surge/Ruleset/StreamingMedia/Video/Hami-Video.list new file mode 100644 index 0000000..e213ec7 --- /dev/null +++ b/Surge/Ruleset/StreamingMedia/Video/Hami-Video.list @@ -0,0 +1,5 @@ +# > Hami Video +DOMAIN-SUFFIX,ott.hinet.net +DOMAIN-SUFFIX,hamivideo.hinet.net +DOMAIN,hls-hichannel.cdn.hinet.net +DOMAIN-KEYWORD,hamivideo.cdn.hinet.net \ No newline at end of file From f4d75f7d48a3f42129e030bef751d4d22bca02da Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Thu, 17 Nov 2022 10:24:07 +0800 Subject: [PATCH 4/4] feat: Update AbemaTV --- Clash/RuleSet/StreamingMedia/Streaming.yaml | 3 +++ Clash/RuleSet/StreamingMedia/Video/AbemaTV.yaml | 3 +++ Quantumult/Filter/StreamingMedia/Streaming.list | 3 +++ Quantumult/Filter/StreamingMedia/Video/AbemaTV.list | 3 +++ Quantumult/Rewrite/General.conf | 6 +++--- Surge/Module/General.sgmodule | 6 +++--- Surge/Ruleset/StreamingMedia/Streaming.list | 3 +++ Surge/Ruleset/StreamingMedia/Video/AbemaTV.list | 3 +++ 8 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Clash/RuleSet/StreamingMedia/Streaming.yaml b/Clash/RuleSet/StreamingMedia/Streaming.yaml index f6189d5..f960df6 100644 --- a/Clash/RuleSet/StreamingMedia/Streaming.yaml +++ b/Clash/RuleSet/StreamingMedia/Streaming.yaml @@ -59,8 +59,11 @@ payload: - PROCESS-NAME,tv.abema - DOMAIN-SUFFIX,abema.io - DOMAIN-SUFFIX,abema.tv + - DOMAIN-SUFFIX,abema-tv.com - DOMAIN-SUFFIX,ameba.jp - DOMAIN-SUFFIX,hayabusa.io + - DOMAIN-SUFFIX,hayabusa.media + - DOMAIN,api-abematv.bucketeer.jp - DOMAIN-KEYWORD,abematv.akamaized.net # > All 4 - PROCESS-NAME,com.channel4.ondemand diff --git a/Clash/RuleSet/StreamingMedia/Video/AbemaTV.yaml b/Clash/RuleSet/StreamingMedia/Video/AbemaTV.yaml index 2189841..a4b3297 100644 --- a/Clash/RuleSet/StreamingMedia/Video/AbemaTV.yaml +++ b/Clash/RuleSet/StreamingMedia/Video/AbemaTV.yaml @@ -3,6 +3,9 @@ payload: - PROCESS-NAME,tv.abema - DOMAIN-SUFFIX,abema.io - DOMAIN-SUFFIX,abema.tv + - DOMAIN-SUFFIX,abema-tv.com - DOMAIN-SUFFIX,ameba.jp - DOMAIN-SUFFIX,hayabusa.io + - DOMAIN-SUFFIX,hayabusa.media + - DOMAIN,api-abematv.bucketeer.jp - DOMAIN-KEYWORD,abematv.akamaized.net \ No newline at end of file diff --git a/Quantumult/Filter/StreamingMedia/Streaming.list b/Quantumult/Filter/StreamingMedia/Streaming.list index 625ae26..edb13ed 100644 --- a/Quantumult/Filter/StreamingMedia/Streaming.list +++ b/Quantumult/Filter/StreamingMedia/Streaming.list @@ -59,8 +59,11 @@ DOMAIN-SUFFIX,overcast.fm,Streaming USER-AGENT,AbemaTV*,Streaming DOMAIN-SUFFIX,abema.io,Streaming DOMAIN-SUFFIX,abema.tv,Streaming +DOMAIN-SUFFIX,abema-tv.com,Streaming DOMAIN-SUFFIX,ameba.jp,Streaming DOMAIN-SUFFIX,hayabusa.io,Streaming +DOMAIN-SUFFIX,hayabusa.media,Streaming +DOMAIN,api-abematv.bucketeer.jp,Streaming DOMAIN-KEYWORD,abematv.akamaized.net,Streaming # > All 4 USER-AGENT,All4*,Streaming diff --git a/Quantumult/Filter/StreamingMedia/Video/AbemaTV.list b/Quantumult/Filter/StreamingMedia/Video/AbemaTV.list index 36fb5bc..493ac65 100644 --- a/Quantumult/Filter/StreamingMedia/Video/AbemaTV.list +++ b/Quantumult/Filter/StreamingMedia/Video/AbemaTV.list @@ -2,6 +2,9 @@ USER-AGENT,AbemaTV*,AbemaTV DOMAIN-SUFFIX,abema.io,AbemaTV DOMAIN-SUFFIX,abema.tv,AbemaTV +DOMAIN-SUFFIX,abema-tv.com,AbemaTV DOMAIN-SUFFIX,ameba.jp,AbemaTV DOMAIN-SUFFIX,hayabusa.io,AbemaTV +DOMAIN-SUFFIX,hayabusa.media,AbemaTV +DOMAIN,api-abematv.bucketeer.jp,AbemaTV DOMAIN-KEYWORD,abematv.akamaized.net,AbemaTV \ No newline at end of file diff --git a/Quantumult/Rewrite/General.conf b/Quantumult/Rewrite/General.conf index bd698e6..5d879d4 100644 --- a/Quantumult/Rewrite/General.conf +++ b/Quantumult/Rewrite/General.conf @@ -1,4 +1,4 @@ -hostname = www.google.cn,www.firefox.com.cn,api.abema.io,app.biliintl.com,passport.biliintl.com +hostname = www.google.cn,www.firefox.com.cn,api.*.abema-tv.com,app.biliintl.com,passport.biliintl.com # Redirect Google Search Service ^https?:\/\/(www.)?(g|google)\.cn url 302 https://www.google.com @@ -72,8 +72,8 @@ hostname = www.google.cn,www.firefox.com.cn,api.abema.io,app.biliintl.com,passpo ^https?:\/\/(www.)?zbrushcn.com/ url 302 https://pixologic.com/ ^https?:\/\/(www.)?anydeskchina.cn/ url 302 https://anydesk.com/zhs -# AbeamTV -^https?:\/\/api\.abema\.io\/v\d\/ip\/check url reject-200 +# AbeamTV - api.*.abema-tv.com +^https?:\/\/api\.[\w-]+\.abema-tv\.com\/v\d\/ip\/check url reject-200 # bstar intl (^https?:\/\/app\.biliintl\.com\/(x\/)?(intl|dm|reply|history|v\d\/(fav|msgfeed)).+?)(&s_locale=zh-Hans_[A-Z]{2})(.+?)(&sim_code=\d+)(.+) url 302 $1&s_locale=zh-Hans_PH$6&sim_code=51503$8 diff --git a/Surge/Module/General.sgmodule b/Surge/Module/General.sgmodule index fc8dcdb..f22a381 100644 --- a/Surge/Module/General.sgmodule +++ b/Surge/Module/General.sgmodule @@ -85,8 +85,8 @@ tun-excluded-routes = %APPEND% 239.255.255.250/32 ^https?:\/\/(www.)?yuanchengxiezuo\.com\/ https://www.teamviewer.com/ 302 ^https?:\/\/(www.)?zbrushcn\.com\/ https://pixologic.com/ 302 -# AbeamTV - api.abema.io -^https?:\/\/api\.abema\.io\/v\d\/ip\/check - reject +# AbeamTV - api.*.abema-tv.com +^https?:\/\/api\.[\w-]+\.abema-tv\.com\/v\d\/ip\/check - reject # bstar intl (^https?:\/\/app\.biliintl\.com\/(x\/)?(intl|dm|reply|history|v\d\/(fav|msgfeed)).+?)(&s_locale=zh-Hans_[A-Z]{2})(.+?)(&sim_code=\d+)(.+) $1&s_locale=zh-Hans_PH$6&sim_code=51503$8 header @@ -100,4 +100,4 @@ bstar_login = type=http-request,pattern=^https?:\/\/passport\.biliintl\.com\/x\/ bstar_play = type=http-request,pattern=^https?:\/\/app\.biliintl\.com\/(intl\/gateway\/v\d\/app\/data\/report\/heartbeat\/mobile|x\/(history|reply)/v\d/add),requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Rewrite/bstar.js,script-update-interval=0 [MITM] -hostname = %APPEND% www.google.cn,www.firefox.com.cn,api.abema.io,app.biliintl.com,passport.biliintl.com \ No newline at end of file +hostname = %APPEND% www.google.cn,www.firefox.com.cn,api.*.abema-tv.com,app.biliintl.com,passport.biliintl.com \ No newline at end of file diff --git a/Surge/Ruleset/StreamingMedia/Streaming.list b/Surge/Ruleset/StreamingMedia/Streaming.list index affe60c..1fa6bb1 100644 --- a/Surge/Ruleset/StreamingMedia/Streaming.list +++ b/Surge/Ruleset/StreamingMedia/Streaming.list @@ -59,8 +59,11 @@ DOMAIN-SUFFIX,overcast.fm USER-AGENT,AbemaTV* DOMAIN-SUFFIX,abema.io DOMAIN-SUFFIX,abema.tv +DOMAIN-SUFFIX,abema-tv.com DOMAIN-SUFFIX,ameba.jp DOMAIN-SUFFIX,hayabusa.io +DOMAIN-SUFFIX,hayabusa.media +DOMAIN,api-abematv.bucketeer.jp DOMAIN-KEYWORD,abematv.akamaized.net # > All 4 USER-AGENT,All4* diff --git a/Surge/Ruleset/StreamingMedia/Video/AbemaTV.list b/Surge/Ruleset/StreamingMedia/Video/AbemaTV.list index e8ac37d..c87b8f7 100644 --- a/Surge/Ruleset/StreamingMedia/Video/AbemaTV.list +++ b/Surge/Ruleset/StreamingMedia/Video/AbemaTV.list @@ -2,6 +2,9 @@ USER-AGENT,AbemaTV* DOMAIN-SUFFIX,abema.io DOMAIN-SUFFIX,abema.tv +DOMAIN-SUFFIX,abema-tv.com DOMAIN-SUFFIX,ameba.jp DOMAIN-SUFFIX,hayabusa.io +DOMAIN-SUFFIX,hayabusa.media +DOMAIN,api-abematv.bucketeer.jp DOMAIN-KEYWORD,abematv.akamaized.net \ No newline at end of file