From 955539213cd9248198e1ff1db5e2cb507dea55fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Mon, 8 May 2023 03:59:05 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=96=B0=E5=A2=9E=20PureView=20?= =?UTF-8?q?=E6=B8=85=E5=96=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/builder.py | 4 ++-- PureView/news.txt | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 PureView/news.txt diff --git a/AutoBuild/builder.py b/AutoBuild/builder.py index 7b2bcf5..f6c9f0d 100644 --- a/AutoBuild/builder.py +++ b/AutoBuild/builder.py @@ -4,7 +4,7 @@ from datetime import datetime, timedelta, timezone import requests filterlist = { - 'abp': ['experimental.txt', 'filter.txt'], + 'abp': ['experimental.txt', 'filter.txt', 'PureView/news.txt'], 'hosts': ['hosts.txt', 'nofarm_hosts.txt'] } url = 'https://filter.futa.gg/' @@ -56,7 +56,7 @@ for category in filterlist: with open(f'{filename}', 'w') as output: heads: str = HEAD().__getattribute__(category) newhead = heads.format( - name=filename.split('.')[0].replace('_', ' ').title(), + name=filename.split('.')[0].replace('_', ' ').replace('/', ' ').title(), version=newversion ) output.write(newhead + data) diff --git a/PureView/news.txt b/PureView/news.txt new file mode 100644 index 0000000..ee92ebd --- /dev/null +++ b/PureView/news.txt @@ -0,0 +1,8 @@ +! 中央社 CNA https://www.cna.com.tw + +! 首頁右側、文章列表右側、內文中:訂閱提醒 +www.cna.com.tw##.mySubscriptionInner + +! 聯合新聞網 UDN https://udn.com +! 首頁頂端橫幅:廣告 +udn.com###ultraDesktopBanner \ No newline at end of file