mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
Merge branch 'master' of https://github.com/FutaGuard/LowTechFilter
This commit is contained in:
commit
8b10481d29
@ -11,6 +11,13 @@ logger = logging.getLogger(__name__)
|
||||
IP_PATTERN = r'^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$'
|
||||
|
||||
|
||||
def exclude_list(domain: str) -> bool:
|
||||
exclude = ['google.com']
|
||||
for e in exclude:
|
||||
if domain.endswith(e):
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_pure_ip(domain: str) -> bool:
|
||||
return True if re.match(IP_PATTERN, domain) else False
|
||||
|
||||
@ -58,8 +65,10 @@ def main():
|
||||
]
|
||||
))
|
||||
|
||||
# 移除純 IP
|
||||
domains = {k: v for k, v in domains.items() if not is_pure_ip(k)}
|
||||
# 移除純 IP & 移除允許清單
|
||||
domains = {k: v for k, v in domains.items() if not is_pure_ip(k) \
|
||||
and not exclude_list(k)}
|
||||
|
||||
|
||||
filename = 'TW165.txt'
|
||||
with open(filename, 'w') as f:
|
||||
|
@ -20,6 +20,8 @@ udn.com##section[class="facebook-comment article-section context-box"]
|
||||
udn.com##section[class="discuss-board article-section context-box"]
|
||||
udn.com#$#.wrapper-left { width: unset !important; }
|
||||
udn.com#$#.footer { margin-top: unset !important; }
|
||||
udn.com##div[id="taboola-below-discuss-thumbnails"]
|
||||
[$path=/news]udn.com##a[href^="https://udn.com/vote2024/story/"]:nth-ancestor(2)
|
||||
|
||||
! UDN 寵物
|
||||
pets.udn.com##div[class="story variety extend"]
|
||||
@ -48,7 +50,8 @@ news.ltn.com.tw##div[id="marqueeHeader"]
|
||||
news.ltn.com.tw##div[class="related boxTitle"]
|
||||
news.ltn.com.tw##div[class="see_more boxTitle"]
|
||||
news.ltn.com.tw##div[class="todaynews boxTitle"]
|
||||
news.ltn.com.tw##div[class=“footermenu”]
|
||||
news.ltn.com.tw##div[class="footermenu"]
|
||||
news.ltn.com.tw##div[data-desc="重要專題"]:nth-ancestor(1)
|
||||
|
||||
3c.ltn.com.tw##aside
|
||||
3c.ltn.com.tw##div[class="top boxTitle boxText"]
|
||||
@ -84,15 +87,20 @@ www.mirrormedia.mg#$#div[class="story-wrapper"] { padding-top: unset !important;
|
||||
www.mirrormedia.mg##div[class="share-sidebox story__share-sidebox"]
|
||||
www.mirrormedia.mg##div[class="sns-wrapper"]
|
||||
www.mirrormedia.mg##div[class="story__list"]
|
||||
www.mirrormedia.mg##section[class^="related-article-list"]
|
||||
www.mirrormedia.mg##div[class^="support-mirrormedia-banner__Container"]
|
||||
www.mirrormedia.mg##div[class^="social-network-service__Wrapper"]
|
||||
www.mirrormedia.mg##section[class^="normal__StoryEnd"]
|
||||
www.mirrormedia.mg#$#article { margin: unset !important; max-width: unset !important; }
|
||||
|
||||
! ETTODAY
|
||||
ettoday.net##div[class="c2"]
|
||||
[$path=/news]ettoday.net##div[class="c2"]
|
||||
ettoday.net##div[class="nav_2"]
|
||||
ettoday.net##div[class="part_menu_5 clearfix"]
|
||||
ettoday.net##div[class="text_ticker_1"]
|
||||
ettoday.net##div[class="et_ad_group_1"]
|
||||
ettoday.net##div[class="menu_2"]
|
||||
ettoday.net#$#div[class="c1"] { width: unset !important; }
|
||||
[$path=/news]ettoday.net#$#div[class="c1"] { width: unset !important; }
|
||||
ettoday.net##div[id="hot_area"]
|
||||
ettoday.net##div[class="video_frame"]
|
||||
ettoday.net##div[class$="hot-news"]
|
||||
@ -153,6 +161,7 @@ chinatimes.com##div[class="promote-word"]
|
||||
chinatimes.com#$#div[class="column-left"] { width: unset !important; }
|
||||
||static.chinatimes.com^$replace=/\.\.\/\.\.\/images\/2020\/logo-chinatimes2020\.svg/https\:\/\/filter\-assets\.futa\.gg\/ct02\.svg/
|
||||
||static.chinatimes.com^$replace=/\.\.\/\.\.\/images\/2020\/logo-chinatimes-alt2020\.svg/https\:\/\/filter\-assets\.futa\.gg\/ct02-PCview\.svg/
|
||||
||chinatimes.com^$cookie
|
||||
|
||||
! 風傳媒
|
||||
www.storm.mg##aside
|
||||
@ -289,4 +298,8 @@ managertoday.com.tw##div[id="my-idle-wrapper"]
|
||||
managertoday.com.tw##div[class="edm-form-panel"]
|
||||
managertoday.com.tw##a[data-dl_item="magazine_list"]:nth-ancestor(3)
|
||||
managertoday.com.tw##div[x-data="social_share"]:nth-ancestor(1)
|
||||
!
|
||||
|
||||
! 鉅亨網
|
||||
news.cnyes.com##img[alt="cookies"]:nth-ancestor(2)
|
||||
news.cnyes.com##aside
|
||||
news.cnyes.com##h2[class$="theme-slick"]:nth-ancestor(1)
|
||||
|
@ -206,4 +206,20 @@ news.agentm.tw##div[id="agmn_a_beginArticle_M"]
|
||||
news.agentm.tw##div[class="relative"]
|
||||
news.agentm.tw##aside[class="pside"]
|
||||
news.agentm.tw##aside[class="aside"]
|
||||
news.agentm.tw##footer[id="footer"]
|
||||
news.agentm.tw##footer[id="footer"]
|
||||
|
||||
! CTWant
|
||||
ctwant.com##div[class="l-header__downloadapp"]
|
||||
ctwant.com##div[id="article-tag-bottom"]
|
||||
ctwant.com##div[class="l-section"]
|
||||
ctwant.com##aside[class="l-sidebar-mobile"]
|
||||
ctwant.com##div[class="l-footer__social"]
|
||||
|
||||
! 鏡傳媒 Mirrormedia
|
||||
www.mirrormedia.mg##div[class^="gpt-placeholder__Container"]
|
||||
www.mirrormedia.mg##section[class^="related-article-list"]
|
||||
www.mirrormedia.mg##div[class^="support-mirrormedia-banner__Container"]
|
||||
www.mirrormedia.mg##div[class^="social-network-service__Wrapper"]
|
||||
www.mirrormedia.mg##section[class^="normal__StoryEnd"]
|
||||
www.mirrormedia.mg#$#article { margin: unset !important; max-width: unset !important; }
|
||||
||www.mirrormedia.mg^$cookie=/AviviD.+/
|
||||
|
@ -1,12 +1,11 @@
|
||||
#!name=FutaFilter
|
||||
#!desc=Make Futa Great Again! v20210619.01
|
||||
#!desc=Make Futa Great Again! v20231207.01
|
||||
#!system=ios
|
||||
|
||||
[Rule]
|
||||
#! Line 廣告
|
||||
#! 白名單
|
||||
URL-REGEX,^https:\/\/obs\.line-scdn\.net\/r,DIRECT
|
||||
URL-REGEX,^https:\/\/obs-tw\.line-apps\.com\/talk,DIRECT
|
||||
DOMAIN,stickershop.line-scdn.net,DIRECT
|
||||
#! 黑名單
|
||||
#! UA 偽裝
|
||||
@ -34,15 +33,17 @@ URL-REGEX,^https:\/\/a\.line\.me\/oa\/v\d\/e$,REJECT-DROP
|
||||
URL-REGEX,^https:\/\/bilanx\.dcard\.tw\/v\d\/events$,REJECT
|
||||
URL-REGEX,^https:\/\/bilanx\.dcard\.tw\/v\d\/configs$,REJECT
|
||||
|
||||
#! 漫畫人
|
||||
URL-REGEX,^https?:\/\/mangaapi.manhuaren.(com|net)\/.+\/public\/(getShelfActivity|getStartPageAds|getStartPageAds2|getRecommendedGame|getAditem|getAds|getMultiAds|getUpgradeInfo|getVendor|getUserLocation),REJECT
|
||||
URL-REGEX,^https?:\/\/mangaapi.manhuaren.(com|net)\/.+\/manga\/getMangaPromotionActivity,REJECT
|
||||
URL-REGEX,^https?:\/\/mangaapi.manhuaren.(com|net)\/.+\/ad\/,REJECT
|
||||
DOMAIN-SUFFIX,hkadsapi.manhuaren.com,REJECT
|
||||
DOMAIN-SUFFIX,adsapi.manhuaren.com,REJECT
|
||||
DOMAIN-SUFFIX,videoapi.manhuaren.com,REJECT
|
||||
DOMAIN-SUFFIX,bi.manhuaren.com,REJECT
|
||||
DOMAIN-SUFFIX,euadsapi.manhuaren.com,REJECT
|
||||
#! 漫畫人/漫畫社
|
||||
#! 安裝本模組後,建議移除漫畫人/漫畫社再重新安裝以到最佳阻擋效果(重新安裝後會有一小段時間無法觀看限制內容,等待1-2小時左右即可解除)
|
||||
URL-REGEX,^https?:\/\/(mangaapi|comicapi).(manhuaren|manhuashe).(com|net)\/.+\/public\/(getShelfActivity|getStartPageAds|getStartPageAds2|getRecommendedGame|getAditem|getAds|getMultiAds|getUpgradeInfo|getVendor|getUserLocation),REJECT
|
||||
URL-REGEX,^https?:\/\/(mangaapi|comicapi).(manhuaren|manhuashe).(com|net)\/.+\/(manga|comic)\/(getMangaPromotionActivity|getComicPromotionActivity),REJECT
|
||||
URL-REGEX,^https?:\/\/(mangaapi|comicapi).(manhuaren|manhuashe).(com|net)\/.+\/(ad|ads)\/,REJECT
|
||||
DOMAIN-SUFFIX,hkadsapi.(manhuaren|manhuashe).(com|net),REJECT
|
||||
DOMAIN-SUFFIX,adsapi.(manhuaren|manhuashe).(com|net),REJECT
|
||||
DOMAIN-SUFFIX,videoapi.(manhuaren|manhuashe).(com|net),REJECT
|
||||
DOMAIN-SUFFIX,bi.(manhuaren|manhuashe).(com|net),REJECT
|
||||
DOMAIN-SUFFIX,euadsapi.(manhuaren|manhuashe).(com|net),REJECT
|
||||
DOMAIN-SUFFIX,adlog.(manhuaren|manhuashe).(com|net),REJECT
|
||||
DOMAIN-SUFFIX,applog.uc.cn,REJECT-TINYGIF
|
||||
|
||||
#! 4Gamer
|
||||
@ -113,4 +114,4 @@ DOMAIN-SUFFIX,flurry.com,REJECT
|
||||
DOMAIN-SUFFIX,mopub.com,REJECT
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% a.line.me, w.line.me, buy.line.me, crs-event.line.me, obs.line-scdn.net, d.line-scdn.net, obs-tw.line-apps.com, api.today.line.me, sch.line.me, scdn.line-apps.com, mangaapi.manhuaren.com, mangaapi.manhuaren.net, www.4gamers.com.tw, bilanx.dcard.tw, pttbrain.herokuapp.com, front.pixfs.net
|
||||
hostname = %APPEND% a.line.me, w.line.me, buy.line.me, crs-event.line.me, obs.line-scdn.net, d.line-scdn.net, api.today.line.me, sch.line.me, scdn.line-apps.com, mangaapi.manhuaren.com, mangaapi.manhuaren.net, comicapi.manhuashe.com, www.4gamers.com.tw, bilanx.dcard.tw, pttbrain.herokuapp.com, front.pixfs.net
|
||||
|
2373
TW165-redirect.txt
2373
TW165-redirect.txt
File diff suppressed because it is too large
Load Diff
@ -82,3 +82,4 @@
|
||||
||dramasq.cc^
|
||||
||gimy.app^
|
||||
||todohealth.com^
|
||||
||avhu.com^
|
||||
|
13
filter.txt
13
filter.txt
@ -382,4 +382,15 @@ marieclaire.com.tw##div[class="adInnerMpu"]
|
||||
marieclaire.com.tw##div[class="adUnderlay"]
|
||||
news.agentm.tw##div[id="agmn_a_header_PC"]
|
||||
news.agentm.tw##div[class="gpt-ad-slot"]
|
||||
new-reporter.com##div[class="modalJS_object"]
|
||||
new-reporter.com##div[class="modalJS_object"]
|
||||
|
||||
||www.mobile01.com/ajax/public/ad_imp.php^
|
||||
||attach2.mobile01.com/js/public/fancybox.js^
|
||||
mobile01.com#%#//scriptlet('remove-class', 'ad_popUp')
|
||||
mobile01.com##div[class=^="fancybox-container"]
|
||||
news.ltn.com.tw##div[id="ad-K1"]
|
||||
||udn.com^$cookie=/_ga.+/
|
||||
||udn.com^$cookie=trc_cookie_storage
|
||||
www.mirrormedia.mg##div[class^="gpt-placeholder__Container"]
|
||||
||www.mirrormedia.mg^$cookie=/AviviD.+/
|
||||
daybuy.tw##div[class]:has([class="adblock_subtitle"])
|
||||
|
@ -133,6 +133,10 @@
|
||||
||businessmentor.sa.com^
|
||||
||fetguict.icu^
|
||||
||lyxrmbszx.com^
|
||||
||thelikooei.xyz^
|
||||
||service-myups.com^
|
||||
||spil-yz.top^
|
||||
||telepgrm.work^
|
||||
|
||||
! 加密貨幣釣魚
|
||||
||app.exodus.com.alchemys.cl^
|
||||
@ -190,6 +194,7 @@
|
||||
||netfltiw.com^
|
||||
||fine-art.ge^
|
||||
||4stextiles.com^
|
||||
||vymdio0.sa.com^
|
||||
|
||||
! 低卡廣告
|
||||
||dad-api.dcard.tw^
|
||||
|
Loading…
x
Reference in New Issue
Block a user