Browse Source

Perf: remove loose regex

SukkaW 1 year ago
parent
commit
97f64dc55c
3 changed files with 15 additions and 28 deletions
  1. 2 0
      Source/domainset/reject_sukka.conf
  2. 1 0
      Source/non_ip/domestic.conf
  3. 12 28
      Source/non_ip/reject.conf

+ 2 - 0
Source/domainset/reject_sukka.conf

@@ -1089,6 +1089,8 @@ amos.alicdn.com
 .amdc.m.taobao.com
 .apoll.m.taobao.com
 .nbsdk-baichuan.alicdn.com
+.nbsdk-baichuan.m.taobao.com
+.nbsdk-baichuan.taobao.com
 tunion-api.m.taobao.com
 .allyes.com
 a.alimama.cn

+ 1 - 0
Source/non_ip/domestic.conf

@@ -465,6 +465,7 @@ DOMAIN-SUFFIX,geetest.com
 DOMAIN-SUFFIX,gitcode.com
 DOMAIN-SUFFIX,gitee.com
 DOMAIN-SUFFIX,godic.net
+DOMAIN-SUFFIX,gotokeep.com
 DOMAIN-SUFFIX,hc-cdn.com
 DOMAIN-SUFFIX,hongxiu.com
 DOMAIN-SUFFIX,hoopchina.com.cn

+ 12 - 28
Source/non_ip/reject.conf

@@ -1,6 +1,8 @@
 # $ meta_title Sukka's Ruleset - Reject Domains
 # $ meta_description The ruleset supports AD blocking, tracking protection, privacy protection, anti-phishing, anti-mining
 
+DOMAIN,this_rule_set_is_made_by_sukkaw.skk.moe
+
 # --- Blacklist ---
 
 # >> Crypto Coin Hive
@@ -106,21 +108,16 @@ URL-REGEX,^https?://premiumyva\.appspot\.com/vmclickstoadvertisersite
 # URL-REGEX,^https?://(www|s)\.youtube\.com/(pagead|ptracking)
 # URL-REGEX,^https?://s\.youtube\.com/api/stats/qoe?.*adformat
 
-# >> Alibaba
-DOMAIN-KEYWORD,nbsdk-baichuan
-
 # >> 4gtv
 URL-REGEX,^https?://service\.4gtv\.tv/4gtv/Data/GetAD
 URL-REGEX,^https?://service\.4gtv\.tv/4gtv/Data/ADLog
 
 # >> Baidu
-# URL-REGEX,^https?://.+/client/phpui2/
 URL-REGEX,^https?://cover\.baidu\.com/cover/page/dspSwitchAds/
 URL-REGEX,^https?://c\.tieba\.baidu\.com/c/s/splashSchedule
 URL-REGEX,^https?://issuecdn\.baidupcs\.com/issue/netdisk/guanggao/
 URL-REGEX,^https?://update\.pan\.baidu\.com/statistics
-# URL-REGEX,^http://.*baidu\.com/.*ad[xs]\.php
-URL-REGEX,^http://c\.tieba\.baidu\.com/c/s/splashSchedule$
+URL-REGEX,^https?://c\.tieba\.baidu\.com/c/s/splashSchedule$
 
 # >> Bilibili
 URL-REGEX,^https?://app\.bilibili\.com/x/v\d/splash/
@@ -159,7 +156,7 @@ AND,((USER-AGENT,bili*),(NOT,((OR,((DOMAIN-SUFFIX,bilibili.com),(DOMAIN-SUFFIX,h
 # >> CNTV
 URL-REGEX,^https?://asp\.cntv\.myalicdn\.com/.+\?maxbr=850
 URL-REGEX,^https?://cntv\.hls\.cdn\.myqcloud\.com/.+\?maxbr=850
-URL-REGEX,^https?://v\.cctv\.com/.+850
+URL-REGEX,^https?://v\.cctv\.com/.+\?maxbr=850
 URL-REGEX,^https?://www\.cntv\.cn/nettv/adp/
 
 # >> Didi
@@ -167,7 +164,7 @@ URL-REGEX,^https://img-ys011\.didistatic\.com/static/ad_oss/
 
 # >> Hanglvzongheng
 URL-REGEX,^https?://(discardrp|startup)\.umetrip\.com/gateway/api/umetrip/native
-URL-REGEX,^http://(114\.115\.217\.129)|(home\.umetrip\.com)/gateway/api/umetrip/native$
+URL-REGEX,^https?://(114\.115\.217\.129)|(home\.umetrip\.com)/gateway/api/umetrip/native$
 
 # >> iQiyi
 URL-REGEX,^https?://act\.vip\.iqiyi\.com/interact/api/show\.do
@@ -185,7 +182,6 @@ URL-REGEX,^https?://service\.iciba\.com/popo/open/screens/v\d\?adjson
 # >> Netease
 URL-REGEX,^http://iad.*mat\.[a-z]*\.126\.net/\w+.(jpg|mp4)$
 URL-REGEX,^http://iad.*mat\.[a-z]*\.127\.net/\w+.(jpg|mp4)$
-URL-REGEX,^https?://.+/eapi/(ad|log)/
 URL-REGEX,^https?://client\.mail\.163\.com/apptrack/confinfo/searchMultiAds
 URL-REGEX,^https?://c\.m\.163\.com/nc/gl/
 URL-REGEX,^https?://dsp-impr2\.youdao\.com/adload.s\?
@@ -195,10 +191,9 @@ URL-REGEX,^https?://support\.you\.163\.com/xhr/boot/getBootMedia\.json
 
 # >> PConline
 URL-REGEX,^https?://agent-count\.pconline\.com\.cn/counter/adAnalyse/
-URL-REGEX,^https?://mrobot\.pcauto\.com\.cn/v\d/ad2p
+URL-REGEX,^https?://mrobot\.(pcauto|pconline)\.com\.cn/v\d/ad2p
 URL-REGEX,^https?://mrobot\.pcauto\.com\.cn/xsp/s/auto/info/preload\.xsp
 URL-REGEX,^https?://mrobot\.pconline\.com\.cn/s/onlineinfo/ad/
-URL-REGEX,^https?://mrobot\.pconline\.com\.cn/v\d/ad2p
 
 # >> Sina Weather
 URL-REGEX,^https?://tqt\.weibo\.cn/.+advert\.index
@@ -207,9 +202,8 @@ URL-REGEX,^https?://tqt\.weibo\.cn/overall/redirect\.php\?r=(tqtad|tqt_sdkad)
 
 # >> Sina Weibo
 URL-REGEX,^https?://edit\.sinaapp\.com/ua\?t=adv
-URL-REGEX,^https?://sdkapp\.uve\.weibo\.com/interface/sdk/sdkad\.php
+URL-REGEX,^https?://sdkapp\.uve\.weibo\.com/interface/sdk/(sdkad|actionad)\.php
 URL-REGEX,^https?://wbapp\.uve\.weibo\.com/wbapplua/wbpullad\.lua
-URL-REGEX,^https?://sdkapp\.uve\.weibo\.com/\interface/sdk/actionad\.php
 
 # >> Sohu
 URL-REGEX,^https?://api\.k\.sohu\.com/api/news/adsense
@@ -266,8 +260,7 @@ URL-REGEX,^https?://(api|www)\.zhihu\.com/(fringe|adx|commercial|ad-style-servic
 
 # >> 58
 URL-REGEX,^https?://.+\.58cdn\.com\.cn/brandads/
-URL-REGEX,^https?://app\.58\.com/api/home/advertising/
-URL-REGEX,^https?://app\.58\.com/api/home/appadv/
+URL-REGEX,^https?://app\.58\.com/api/home/(advertising|appadv)/
 URL-REGEX,^https?://app\.58\.com/api/home/invite/popupAdv
 URL-REGEX,^https?://app\.58\.com/api/log/
 
@@ -338,7 +331,7 @@ URL-REGEX,^https?://smkmp\.96225\.com/smkcenter/ad/
 # >> Hupu
 URL-REGEX,^https?://games\.mobileapi\.hupu\.com/.+/(interfaceAdMonitor|interfaceAd)/
 URL-REGEX,^https?://games\.mobileapi\.hupu\.com/.+/status/init
-# >> IdleFish
+# >> Xian Yu
 URL-REGEX,^https?://acs\.m\.taobao\.com/gw/mtop\.taobao\.idle\.home\.welcome/
 # >> iFlytek
 URL-REGEX,^https?://imeclient\.openspeech\.cn/adservice/
@@ -358,9 +351,6 @@ URL-REGEX,^https?://render\.alipay\.com/p/s/h5data/prod/spring-festival-2019-h5d
 # >> Kuaikan Comic
 URL-REGEX,^https?://api\.kkmh\.com/.+(ad|advertisement)/
 
-# >> Le
-# URL-REGEX,^https?://.+/letv-gug/
-
 # >> 首汽约车
 URL-REGEX,^https?://gw-passenger\.01zhuanche\.com/gw-passenger/car-rest/webservice/passenger/recommendADs
 URL-REGEX,^https?://gw-passenger\.01zhuanche\.com/gw-passenger/zhuanche-passenger-token/leachtoken/webservice/homepage/queryADs
@@ -424,14 +414,9 @@ URL-REGEX,^https?://api-release\.wuta-cam\.com/ad_tree
 URL-REGEX,^https?://res-release\.wuta-cam\.com/json/ads_component_cache\.json
 # >> Xiachufang
 URL-REGEX,^https?://api\.xiachufang\.com/v\d/ad/
-# >> Luckin Coffee
-URL-REGEX,^https?://.+/resource/m/promo/adsense
-URL-REGEX,^https?://.+/resource/m/sys/app/adpos
 # >> MaFengWo
 URL-REGEX,^https?://mapi\.mafengwo\.cn/ad/
 URL-REGEX,^https?://mapi\.mafengwo\.cn/travelguide/ad/
-# >> Mahua Video
-URL-REGEX,^https?://.+/api/app/member/ver2/user/login/
 # >> Maiduidui
 URL-REGEX,^https?://mob\.mddcloud\.com\.cn/api/(ad|advert)/
 # >> Manhuaren
@@ -456,11 +441,11 @@ URL-REGEX,^https?://api-mifit\.huami\.com/discovery/mi/discovery/(homepage_ad|sl
 # >> Miaopai
 URL-REGEX,^https?://b-api\.ins\.miaopai\.com/1/ad/
 # >> MIgu
-URL-REGEX,^https?://.+/v\d/iflyad/
-URL-REGEX,^https?://.+/cdn-adn/
+# URL-REGEX,^https?://.+/v\d/iflyad/
+# URL-REGEX,^https?://.+/cdn-adn/
 URL-REGEX,^https?://ggic\.cmvideo\.cn/ad/
 URL-REGEX,^https?://ggic2\.cmvideo\.cn/ad/
-URL-REGEX,^https?://.+/img/ad\.union\.api/
+# URL-REGEX,^https?://.+/img/ad\.union\.api/
 # >> MixC
 URL-REGEX,^https?://app\.mixcapp\.com/mixc/api/v\d/ad
 # >> MogoRenter
@@ -521,7 +506,6 @@ URL-REGEX,^https?://.+\.iydsj\.com/api/.+/ad
 URL-REGEX,^https?://ctrl\.(playcvn|zmzapi)\.(com|net)/app/(ads|init)
 # >> Zhiboba
 URL-REGEX,^https?://a\.qiumibao\.com/activities/config\.php
-URL-REGEX,^https?://.+/allOne\.php\?ad_name
 # >> Zhuishushenqi
 URL-REGEX,^https?://(api|b)\.zhuishushenqi\.com/advert
 URL-REGEX,^https?://api01pbmp\.zhuishushenqi\.com/gameAdvert