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