-
-
Notifications
You must be signed in to change notification settings - Fork 57
161 lines (135 loc) · 6.44 KB
/
Auto update AdBlock.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: 'Auto Update AdBlock'
on:
# push:
# branches:
# - main
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
# watch:
# types: started
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/[email protected]
- name: AdGuard DNS filter #AdGuard 官方维护的广告规则,涵盖多种过滤规则
uses: carlosperate/[email protected]
with:
file-url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
file-name: AdGuard_Simplified_Domain_Names_Filter.txt
- name: Anti-AD #号称是目前中文区命中率最高的广告过滤列表,实现了精确的广告屏蔽和隐私保护
uses: carlosperate/[email protected]
with:
file-url: https://anti-ad.net/easylist.txt
file-name: Anti_AD_Easylist.txt
- name: EasyList China #面向中文用户的 EasyList 去广告规则
uses: carlosperate/[email protected]
with:
file-url: https://easylist-downloads.adblockplus.org/easylistchina.txt
file-name: EasyList_China.txt
- name: EasyPrivacy #反隐私跟踪、挖矿规则
uses: carlosperate/[email protected]
with:
file-url: https://easylist.to/easylist/easyprivacy.txt
file-name: EasyPrivacy.txt
#- name: I dont care about cookies #屏蔽网站的Cookies警告
# uses: carlosperate/[email protected]
# with:
# file-url: https://www.i-dont-care-about-cookies.eu/abp/
# file-name: I_dont_care_about_cookies.txt
- name: HalfLife #涵盖了 EasyList China、EasyList Lite、CJX ’s Annoyance、乘风视频过滤规则,以及补充的其它规则
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad.txt
file-name: HalfLife.txt
- name: CJX's EasyList Lite
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjxlist.txt
file-name: CJX's_EasyList_Lite.txt
- name: CJX's Annoyance List
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt
file-name: CJX's_Annoyance_List.txt
- name: Xinggsf_rule #乘风通用广告过滤规则
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt
file-name: Xinggsf_rule.txt
- name: Xinggsf_mv #乘风视频广告过滤规则
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt
file-name: Xinggsf_mv.txt
- name: Fanboy's Social Blocking List #禁止社交媒体图标列表
uses: carlosperate/[email protected]
with:
file-url: https://easylist-downloads.adblockplus.org/fanboy-social.txt
file-name: Fanboy-social.txt
- name: ADgk #手机去广告
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/banbendalao/ADgk/master/ADgk.txt
file-name: ADgk.txt
- name: 大圣净化 #针对国内视频网站
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts
file-name: ds_hosts.txt
- name: 1024_hosts #去色情网站和澳门皇家赌场
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/Goooler/1024_hosts/master/hosts
file-name: 1024_hosts.txt
- name: iOSAdblockList #海外维护针对移动网站的广告主机列表
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/BlackJack8/iOSAdblockList/master/Hosts.txt
file-name: iPv4_hosts.txt
- name: StevenBlack #国外维护比较知名的屏幕广告主机列表,整合和扩展多个精心设计的主机文件
uses: carlosperate/[email protected]
with:
file-url: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
file-name: Steven_hosts
- name: Hblock #自动提取来自很多规则源的恶意广告主机列表
uses: carlosperate/[email protected]
with:
file-url: https://hblock.molinero.dev/hosts
file-name: Hblock_hosts
# - name: Malware Domain List #恶意软件过滤规则
# uses: carlosperate/[email protected]
# with:
# file-url: https://www.malwaredomainlist.com/hostslist/hosts.txt
# file-name: Malware_host.txt
- name: Adblock Warning Removal List #去除禁止广告拦截提示规则
uses: carlosperate/[email protected]
with:
file-url: https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
file-name: antiadblockfilters.txt
- name: Fanboy’s Annoyances List #去除页面弹窗广告规则
uses: carlosperate/[email protected]
with:
file-url: https://secure.fanboy.co.nz/fanboy-annoyance.txt
file-name: fanboy-annoyance.txt
- name: Commit Changes
env:
TZ: Asia/Shanghai
run: |
if [ -z "$(git status --porcelain)" ]; then
exit 0
else
git add .
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions bot"
git commit -m ":pencil: Update at $(date +"%Y-%m-%d %H:%M")" -a
fi
- name: GitHub Push #推送至库
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
branch: main
# - name: WeChat notification #用于微信推送通知(如有需要删除行头注释)
# run: curl https://sc.ftqq.com/${{ secrets.ServerChan }}.send?text=${{ env.FILE_NAME }}AdBlock规则已更新