新增 PureView 清單

This commit is contained in:
踢低吸 2023-05-08 03:59:05 +00:00
parent 22ac3c09b3
commit 955539213c
2 changed files with 10 additions and 2 deletions

View File

@ -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)

8
PureView/news.txt Normal file
View File

@ -0,0 +1,8 @@
! 中央社 CNA https://www.cna.com.tw
! 首頁右側、文章列表右側、內文中:訂閱提醒
www.cna.com.tw##.mySubscriptionInner
! 聯合新聞網 UDN https://udn.com
! 首頁頂端橫幅:廣告
udn.com###ultraDesktopBanner