From 8c25f5469889cfe8018f517806f781ef184e5974 Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Tue, 23 Jun 2020 13:20:49 +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 | 2 +- Quantumult/Rewrite/General.conf | 7 ++++++- Quantumult/Rewrite/Wikiwand.conf | 4 ++++ Surge/Global.conf | 7 +++++-- Surge/Global2.conf | 3 +++ Surge/Module/Wikiwand.sgmodule | 9 +++++++++ 6 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 Quantumult/Rewrite/Wikiwand.conf create mode 100644 Surge/Module/Wikiwand.sgmodule diff --git a/Quantumult/Global.conf b/Quantumult/Global.conf index aaaa717..0f54703 100644 --- a/Quantumult/Global.conf +++ b/Quantumult/Global.conf @@ -143,7 +143,7 @@ https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/General.conf, tag=🔀General, enabled=true # Advertising 广告 -https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Advertising.conf, tag=🛡「重写规则」搜索「script」缓存脚本), enabled=true +https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Advertising.conf, tag=🛡在「重写规则」搜「script」缓存脚本), enabled=true # YouTube 广告(因影响 YouTube Premium 默认禁用) https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/YouTube.conf, tag=🛡, enabled=false diff --git a/Quantumult/Rewrite/General.conf b/Quantumult/Rewrite/General.conf index 7e49fd5..02c6706 100644 --- a/Quantumult/Rewrite/General.conf +++ b/Quantumult/Rewrite/General.conf @@ -1,3 +1,5 @@ +hostname = api.abema.io + # Redirect Google Search Service ^(http|https):\/\/(www.)?(g|google)\.cn url 302 https://www.google.com @@ -55,4 +57,7 @@ ^(http|https):\/\/(www.)?vegaschina\.cn\/ url 302 https://www.vegascreativesoftware.com/ ^(http|https):\/\/(www.)?xshellcn\.com\/ url 302 https://www.netsarang.com/zh/xshell/ ^(http|https):\/\/(www.)?yuanchengxiezuo\.com\/ url 302 https://www.teamviewer.com/ -^(http|https):\/\/(www.)?zbrushcn.com/ url 302 https://pixologic.com/ \ No newline at end of file +^(http|https):\/\/(www.)?zbrushcn.com/ url 302 https://pixologic.com/ + +# AbeamTV +^(http|https):\/\/api\.abema\.io\/v1\/ip\/check url reject-200 \ No newline at end of file diff --git a/Quantumult/Rewrite/Wikiwand.conf b/Quantumult/Rewrite/Wikiwand.conf new file mode 100644 index 0000000..4712e2d --- /dev/null +++ b/Quantumult/Rewrite/Wikiwand.conf @@ -0,0 +1,4 @@ +hostname = *.wikipedia.org,*.wikiwand.com + +^https://zh.(m.)?wikipedia.org/zh(-\w*)?(?=/) url 302 https://www.wikiwand.com/zh$2 +^https://(\w*).(m.)?wikipedia.org/wiki url 302 https://www.wikiwand.com/$1 \ No newline at end of file diff --git a/Surge/Global.conf b/Surge/Global.conf index fb273a9..d6664a8 100644 --- a/Surge/Global.conf +++ b/Surge/Global.conf @@ -248,14 +248,17 @@ mtalk.google.com = 108.177.125.188 ^(http|https):\/\/(www.)?yuanchengxiezuo\.com\/ https://www.teamviewer.com/ 302 ^(http|https):\/\/(www.)?zbrushcn.com/ https://pixologic.com/ 302 -# 去使用 TikTok.sgmodule 和 Resso.sgmodule 吧 # TikTok (By wzw1997007) - *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com # (?<=_region=)CN(?=&) JP 307 # (?<=&app_version=)16..(?=.?.?&) 1 307 # (?<=\?version_code=)16..(?=.?.?&) 1 307 -# Resso (By JO2EY) - api.resso.app + +#Resso (By JO2EY) - api.resso.app # (?<=(carrier|account|sys|sim)_region=)cn in 307 +# AbeamTV - api.abema.io +^(http|https):\/\/api\.abema\.io\/v1\/ip\/check - reject + # 如果你解锁了「模块」功能可以使用 Block-Ads.sgmodule 后删除以下 Rewrite 部分 # 0~9 diff --git a/Surge/Global2.conf b/Surge/Global2.conf index e35e79c..af746bb 100644 --- a/Surge/Global2.conf +++ b/Surge/Global2.conf @@ -2149,6 +2149,9 @@ mtalk.google.com = 108.177.125.188 ^(http|https):\/\/(www.)?yuanchengxiezuo\.com\/ https://www.teamviewer.com/ 302 ^(http|https):\/\/(www.)?zbrushcn.com/ https://pixologic.com/ 302 +# AbeamTV - api.abema.io +^(http|https):\/\/api\.abema\.io\/v1\/ip\/check - reject + # 0~9 # > 21st Century Business Herald - api.21jingji.com ^(http|https):\/\/api\.21jingji\.com\/ad\/ - reject diff --git a/Surge/Module/Wikiwand.sgmodule b/Surge/Module/Wikiwand.sgmodule new file mode 100644 index 0000000..6115b89 --- /dev/null +++ b/Surge/Module/Wikiwand.sgmodule @@ -0,0 +1,9 @@ +#!name=Wikiwand +#!desc=Wikipedia to Wikiwand + +[URL Rewrite] +^https://zh.(m.)?wikipedia.org/zh(-\w*)?(?=/) https://www.wikiwand.com/zh$2 302 +^https://(\w*).(m.)?wikipedia.org/wiki https://www.wikiwand.com/$1 302 + +[MITM] +hostname = %INSERT% *.wikipedia.org,*.wikiwand.com \ No newline at end of file