From f4b2552d6e29c83b241d2518ba68c2857ebba6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Thu, 24 Dec 2020 09:35:23 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=B0=81=E9=8E=96=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=A5=87=E6=80=AA=E7=9A=84=E8=92=90=E9=9B=86?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=80=85=E7=9A=84=20api=20=E5=AD=98=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Surge/filters.txt | 6 +++++- filter.txt | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Surge/filters.txt b/Surge/filters.txt index 8e223cf..102a852 100644 --- a/Surge/filters.txt +++ b/Surge/filters.txt @@ -38,6 +38,10 @@ URL-REGEX,^http:\/\/mangaapi.manhuaren.com\/.+\/ad\/,REJECT #! 4Gamer URL-REGEX,^https:\/\/www.4gamers.com.tw\/site\/api\/aols\/media\?,REJECT +#! PTT 相關 +URL-REGEX,^https:\/\/pttbrain\.herokuapp\.com\/api\/ptt\/metric\/user\-geo\-distributions,REJECT + + #! 通用阻擋 DOMAIN,itad.linetv.tw,REJECT DOMAIN,sessions.bugsnag.com,REJECT @@ -94,4 +98,4 @@ DOMAIN-SUFFIX,flurry.com,REJECT DOMAIN-SUFFIX,mopub.com,REJECT [MITM] -hostname = %APPEND% a.line.me, buy.line.me, *.line-scdn.net, sch.line.me, scdn.line-apps.com, mangaapi.manhuaren.com, *.4gamers.com.tw *.dcard.tw +hostname = %APPEND% a.line.me, buy.line.me, *.line-scdn.net, sch.line.me, scdn.line-apps.com, mangaapi.manhuaren.com, *.4gamers.com.tw, *.dcard.tw, *.heroku.com diff --git a/filter.txt b/filter.txt index 145105f..95a0bb4 100644 --- a/filter.txt +++ b/filter.txt @@ -9,7 +9,7 @@ appledaily.com#%#;(()=>{const date=new Date();date.setTime(date.getTime()-86400);const aid=document.cookie.match(/articleid(.+?)=/i);if(aid){document.cookie=`articleId${aid[1]}=;path=/;expires=${date.toUTCString()}`}})(); ! 卡卡洛普 gamme.com.tw#%#if(!document.cookie.match(/r18=1/)){document.cookie='r18=1;domain=gamme.com.tw;path=/';location.reload()}; -! 批踢踢 +! 批踢踢 自動點R18 www.ptt.cc#%#document.onreadystatechange=()=>{if(location.pathname.includes('/ask/over18')){document.querySelectorAll('.over18-button-container>button[name="yes"]').forEach(x=>x.click())}}; www.ptt.cc#%#if(!document.cookie.match(/over18=1/)){document.cookie='over18=1;path=/';location.reload()}; ! 風傳媒 @@ -105,4 +105,7 @@ coffeehunter.tw##div[class^="fancybox-wrap"] @@||tracking.shopback.com/client/v1/events^$important,domain=shopback.com ! Dcard -bilanx.dcard.tw/v1/events +||bilanx.dcard.tw/v1/events^$document + +! PTT 相關 +||pttbrain.herokuapp.com/api/ptt/metric/user-geo-distributions^$document \ No newline at end of file