mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
✨ 新增 PureView 清單
This commit is contained in:
parent
22ac3c09b3
commit
955539213c
@ -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
8
PureView/news.txt
Normal file
@ -0,0 +1,8 @@
|
||||
! 中央社 CNA https://www.cna.com.tw
|
||||
|
||||
! 首頁右側、文章列表右側、內文中:訂閱提醒
|
||||
www.cna.com.tw##.mySubscriptionInner
|
||||
|
||||
! 聯合新聞網 UDN https://udn.com
|
||||
! 首頁頂端橫幅:廣告
|
||||
udn.com###ultraDesktopBanner
|
Loading…
x
Reference in New Issue
Block a user