├── .github └── workflows │ └── autoupdate.yml ├── LICENSE ├── README.md ├── adguard-dns.txt ├── adguard-element.txt ├── adguard.txt ├── dns.txt ├── filter-lite.txt ├── filter.txt ├── hosts ├── rules └── mod │ ├── dns.txt │ ├── element.txt │ ├── hosts │ ├── static.txt │ └── trush.txt └── utils ├── deduplication.py ├── deduplication.sh ├── title ├── adguard-dns.txt ├── adguard-element.txt ├── adguard.txt ├── dns.txt ├── filter-lite.txt ├── filter.txt └── hosts.txt └── upstream-list.txt /.github/workflows/autoupdate.yml: -------------------------------------------------------------------------------- 1 | name: Update Rules 2 | on: 3 | schedule: 4 | - cron: "0 0 * * *" 5 | push: 6 | branches: 7 | - main 8 | 9 | workflow_dispatch: 10 | 11 | jobs: 12 | myjob: 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@main 16 | - name: Update Rules 17 | run: | 18 | bash ./utils/deduplication.sh 19 | - name: Git push assets to Github 20 | run: | 21 | git config --local user.name "Luphraim" 22 | git config --local user.email "Luphraim@outlook.com" 23 | git branch -m main 24 | git add --all 25 | git commit -m "Auto Updated at $(date)" 26 | git fetch --unshallow origin 27 | git push -u -f origin --all 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Ephraim 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AdKiller 2 | 3 | ### 说明 4 | 5 | 本规则仅用于个人自用,参考了[Cats-Team](https://github.com/Cats-Team)/[AdRules](https://github.com/Cats-Team/AdRules)的脚本,出于对上游规则列表及使用途径的个人需求,对其进行自定义配置与修改。项目通过 Github-Actions 自动提交更新。 6 | 7 | 个人使用对象分别为:PC 端的 uBlock Origin,移动端的 Adguard 及 via,DNS 层面的 Adguard Home,对其他使用方式未作适配,如有需求,可自行调整。 8 | 9 | 移动端 AdGuard 推荐 AdGuard-DNS 和 AdGuard-Element 结合使用,不想开 DNS 过滤的只订阅 AdGuard 即可。 10 | 11 | - 2023.6.14 更新:AdGuard for Android 更新 4.0 稳定版,建议把“烦人元素拦截”全部打开,跟踪保护选择“隐私保护级别——高”。故规则里相应上游规则也一并删除了,以作精简。更新了一部分上游规则列表。 12 | 13 | - 2024.8.8 更新:AdGuard For Android由于耗电、网络延迟等因素,已不再使用,随缘检测上游规则有效性。 14 | 15 | - 2025.2.25更新:检测上游规则有效性,更新合并去重脚本。PS:本仓库只负责上游脚本的合并去重,规则有问题的建议向对应上游仓库提交。 16 | 17 | ### 规则说明 18 | 19 | | 名称 | 描述 | 订阅 | 20 | | --------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------- | 21 | | AdGuard | 推荐用于移动端 AdGuard,主要为 Adguard For Android | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/adguard.txt) | 22 | | AdKiller | 推荐用于 PC 端浏览器,如 AdGuard, Ublock Origin, AdBlock 等 | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/filter.txt) | 23 | | AdKiller-Lite | 推荐用于移动端浏览器,如 via, Vivaldi, X Browser 等 | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/filter-lite.txt) | 24 | | DNSFilter | 适用于 AdGuard Home | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/dns.txt) | 25 | | Hosts | 广告过滤 hosts ,可直接替换系统 hosts 文件,重定向至 0.0.0.0 | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/hosts) | 26 | | AdGuard-DNS | AdGuard 的 DNS 提取规则,适用于 AdGuard 的 DNS 功能 | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/adguard-dns.txt) | 27 | | AdGuard-Element | AdGuard 的元素提取规则,适用于 AdGuard 的内容拦截功能 | [Link](https://raw.githubusercontent.com/PhoenixLjw/AdRules/main/adguard-element.txt) | 28 | 29 | ### 上游规则 30 | 31 | | 组 | 规则 | 32 | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | 33 | | uBlock Origin 规则 | [uBlock filters](https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt) | 34 | | | [uBlock filters – Badware risks](https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt) | 35 | | | [uBlock filters – Privacy](https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt) | 36 | | | [uBlock filters – Quick fixes](https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/quick-fixes.txt) | 37 | | | [uBlock filters – Unbreak](https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt) | 38 | | | [uBlock filters – Annoyances](https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt) | 39 | | Adguard For Android 规则 | [基础过滤器](https://filters.adtidy.org/android/filters/2_optimized.txt) | 40 | | | [中文过滤器](https://filters.adtidy.org/android/filters/224_optimized.txt) | 41 | | 通用元素过滤规则 | [乘风通用过滤规则](https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt),适用于 UBO 或 ADG | 42 | | | [乘风视频过滤规则](https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt),适用于 UBO 或 ADG | 43 | | | [秋风广告规则](https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Adblock-Rule/main/AWAvenue-Adblock-Rule.txt) | 44 | | | [GOODBYEADS Rules](https://raw.githubusercontent.com/8680/GOODBYEADS/master/data/rules/adblock.txt) | 45 | | | [百度超级净化](https://raw.githubusercontent.com/banbendalao/ADgk/master/kill-baidu-ad.txt) @坂本大佬 | 46 | | 元素过滤规则,推荐移动端 | [adgk 规则](https://raw.githubusercontent.com/banbendalao/ADgk/master/ADgk.txt) @坂本大佬 | 47 | | | [Anti-AD for Adguard](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-adguard.txt) | 48 | | | [主要去除手机盗版网站广告](https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt) @酷安:大萌主 | 49 | | | [去 APP 下载广告规则](https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt) | 50 | | 元素过滤规则,推荐 PC 端 | [halflife](https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-pc.txt)规则,[推荐桌面端]合并自乘风视频广告过滤规则、Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance,以及补充的一些规则 | 51 | | | [halflife](https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-edentw.txt)规则,合并自 Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters | 52 | | | [I don't care about cookies](https://www.i-dont-care-about-cookies.eu/abp/) | 53 | | DNS 过滤规则 | [AdGuard DNS filter](https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt) | 54 | | | [Anti-AD for AdGuardHome](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt)(DNS 过滤) | 55 | | | [Online Malicious URL Blocklist](https://curben.gitlab.io/malware-filter/urlhaus-filter-agh-online.txt) Domain-based (AdGuard Home) | 56 | | HOSTS 过滤 | [大圣净化规则](https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts) | 57 | | | [NoCoin adblock list](https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt) | 58 | | | [yhosts](https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts) 智能设备专用(更全,用电脑看视频网站可能出错) | 59 | | | [hostsVN](https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts) | 60 | | 白名单规则 | [Energized Protection - unblock](https://raw.githubusercontent.com/EnergizedProtection/unblock/master/basic/formats/filter) | 61 | | | [AdGuard Chinese Filters whitelist](https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/ChineseFilter/sections/whitelist.txt) | 62 | | 其他(rules/mod 下) | 自定义元素过滤规则(element.txt) | 63 | | | 自定义 url 过滤规则(dns.txt) | 64 | | | 自定义白名单规则(allowlist.txt) | 65 | 66 | ### 推荐项目 67 | 68 | 以下推荐一些比较成熟的规则整合项目,主要面向中文过滤。 69 | 70 | - [anti-AD](https://anti-ad.net/) 71 | - [Cats-Team](https://github.com/Cats-Team)/[AdRules](https://github.com/Cats-Team/AdRules) 72 | - [NEO DEV HOST](https://github.com/neodevpro/neodevhost) 73 | -------------------------------------------------------------------------------- /rules/mod/dns.txt: -------------------------------------------------------------------------------- 1 | ||ali-stats.jpush.cn^ 2 | ||api-access.pangolin-sdk-toutiao.com^ 3 | ||bdstatic.com^||sf6-be-pack.pglstatp-toutiao.com^ 4 | ||data.flurry.com^ 5 | ||dataflow.biliapi.com^ 6 | ||game.weixin.qq.com^ 7 | ||midas.gtimg.cn^ 8 | ||mp.weixin.qq.com^ 9 | ||oth.eve.mdt.qq.com^ 10 | ||sf3-be-pack.pglstatp-toutiao.com^ 11 | ||sf6-be-pack.pglstatp-toutiao.com^ 12 | ||skdisplay.jd.com^ 13 | ||stats.jpush.cn^ 14 | ||sv.mnyh.fun^ 15 | ||tsis.jpush.cn^ 16 | ||wxsnsdy.wxs.qq.com^ 17 | ||wxsnsdythumb.wxs.qq.com^ 18 | -------------------------------------------------------------------------------- /rules/mod/element.txt: -------------------------------------------------------------------------------- 1 | 2 | alist.nn.ci##.wwads-horizontal.wwads 3 | cowlevel.net##.on.flex-center.flex-box.vm-register-footer 4 | hanime1.me###myHeader > div 5 | hanime1.me##div.hidden-sm.hidden-xs:nth-of-type(1) 6 | javdb.com##.app-desktop-banner 7 | javdb.com##.top-meta 8 | outlook.live.com##.LBktY > .GssDD 9 | tieba.baidu.com##.fc-00000000b7197234-2326._34x9naa 10 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(6) 11 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(7) 12 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(8) 13 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(9) 14 | www.douban.com###landing-bar 15 | www.ghxi.com##div:nth-of-type(7) 16 | www.ghxi.com##div:nth-of-type(8) 17 | www.zhihu.com##.css-1izy64v 18 | zhuanlan.zhihu.com##.css-1izy64v 19 | zxcs.me##.banner 20 | zxcs.me##.diybanner 21 | zxcs.me##.diybox 22 | zxcs.me##.plus_r 23 | ||extshort.weixin.qq.com/mmtls^$app=com.tencent.mm 24 | ||matters.news/_next/static/1b1594548960ef3c8cc9f82eda499a87.svg$image 25 | ||minorshort.weixin.qq.com/mmtls^$app=com.tencent.mm 26 | ||mp.weixin.qq.com/mp/advertisement^ 27 | ||mp.weixin.qq.com/mp/getappmsgad^ 28 | ||www.fufugal.com/static/images/icon/g*.jpg$image 29 | ||www.fufugal.com/static/images/icon/g27.jpg$image 30 | -------------------------------------------------------------------------------- /rules/mod/hosts: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Custom host records are listed here. 4 | 5 | 127.0.0.1 localhost 6 | 127.0.0.1 localhost.localdomain 7 | 127.0.0.1 local 8 | 255.255.255.255 broadcasthost 9 | ::1 localhost 10 | ::1 ip6-localhost 11 | ::1 ip6-loopback 12 | fe80::1%lo0 localhost 13 | ff00::0 ip6-localnet 14 | ff00::0 ip6-mcastprefix 15 | ff02::1 ip6-allnodes 16 | ff02::2 ip6-allrouters 17 | ff02::3 ip6-allhosts 18 | 0.0.0.0 0.0.0.0 19 | 20 | # End of custom host records. 21 | 22 | -------------------------------------------------------------------------------- /rules/mod/static.txt: -------------------------------------------------------------------------------- 1 | 2 | alist.nn.ci##.wwads-horizontal.wwads 3 | cowlevel.net##.on.flex-center.flex-box.vm-register-footer 4 | hanime1.me###myHeader > div 5 | hanime1.me##div.hidden-sm.hidden-xs:nth-of-type(1) 6 | javdb.com##.app-desktop-banner 7 | javdb.com##.top-meta 8 | outlook.live.com##.LBktY > .GssDD 9 | tieba.baidu.com##.fc-00000000b7197234-2326._34x9naa 10 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(6) 11 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(7) 12 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(8) 13 | www.colamanhua.com##div.gryjneuz_b:nth-of-type(9) 14 | www.douban.com###landing-bar 15 | www.ghxi.com##div:nth-of-type(7) 16 | www.ghxi.com##div:nth-of-type(8) 17 | www.zhihu.com##.css-1izy64v 18 | zhuanlan.zhihu.com##.css-1izy64v 19 | zxcs.me##.banner 20 | zxcs.me##.diybanner 21 | zxcs.me##.diybox 22 | zxcs.me##.plus_r 23 | ||ali-stats.jpush.cn^ 24 | ||api-access.pangolin-sdk-toutiao.com^ 25 | ||bdstatic.com^||sf6-be-pack.pglstatp-toutiao.com^ 26 | ||data.flurry.com^ 27 | ||dataflow.biliapi.com^ 28 | ||extshort.weixin.qq.com/mmtls^$app=com.tencent.mm 29 | ||game.weixin.qq.com^ 30 | ||matters.news/_next/static/1b1594548960ef3c8cc9f82eda499a87.svg$image 31 | ||midas.gtimg.cn^ 32 | ||minorshort.weixin.qq.com/mmtls^$app=com.tencent.mm 33 | ||mp.weixin.qq.com/mp/advertisement^ 34 | ||mp.weixin.qq.com/mp/getappmsgad^ 35 | ||mp.weixin.qq.com^ 36 | ||oth.eve.mdt.qq.com^ 37 | ||sf3-be-pack.pglstatp-toutiao.com^ 38 | ||sf6-be-pack.pglstatp-toutiao.com^ 39 | ||skdisplay.jd.com^ 40 | ||stats.jpush.cn^ 41 | ||sv.mnyh.fun^ 42 | ||tsis.jpush.cn^ 43 | ||www.fufugal.com/static/images/icon/g*.jpg$image 44 | ||www.fufugal.com/static/images/icon/g27.jpg$image 45 | ||wxsnsdy.wxs.qq.com^ 46 | ||wxsnsdythumb.wxs.qq.com^ 47 | -------------------------------------------------------------------------------- /rules/mod/trush.txt: -------------------------------------------------------------------------------- 1 | javdb.com##.app-desktop-banner 2 | javdb.com##.top-meta 3 | zhuanlan.zhihu.com##.css-1izy64v 4 | www.zhihu.com##.css-1izy64v 5 | ||bdstatic.com^||sf6-be-pack.pglstatp-toutiao.com^ 6 | ||skdisplay.jd.com^ 7 | ||api-access.pangolin-sdk-toutiao.com^ 8 | ||sf3-be-pack.pglstatp-toutiao.com^ 9 | ||sf6-be-pack.pglstatp-toutiao.com^ 10 | ||sv.mnyh.fun^ 11 | ||data.flurry.com^ 12 | ||ali-stats.jpush.cn^ 13 | ||stats.jpush.cn^ 14 | ||tsis.jpush.cn^ 15 | ||dataflow.biliapi.com^ 16 | ||mp.weixin.qq.com/mp/advertisement^ 17 | ||mp.weixin.qq.com/mp/getappmsgad^ 18 | ||oth.eve.mdt.qq.com^ 19 | ||midas.gtimg.cn^ 20 | ||game.weixin.qq.com^ 21 | ||mp.weixin.qq.com^ 22 | ||oth.eve.mdt.qq.com^ 23 | ||wxsnsdythumb.wxs.qq.com^ 24 | ||wxsnsdy.wxs.qq.com^ 25 | ||extshort.weixin.qq.com/mmtls^$app=com.tencent.mm 26 | ||minorshort.weixin.qq.com/mmtls^$app=com.tencent.mm -------------------------------------------------------------------------------- /utils/deduplication.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | 5 | def deduplicate_file(file): 6 | if not os.path.isfile(file): 7 | print(f"文件 {file} 不存在!") 8 | return 9 | 10 | if os.path.splitext(file)[1] != ".txt": 11 | print(f"文件 {file} 不是一个文本文件!") 12 | return 13 | 14 | print(f"开始去重 {file}") 15 | 16 | # 使用 with 语句自动管理文件关闭 17 | with open(file, "r", encoding="utf8") as input_file: 18 | lines = input_file.readlines() 19 | 20 | if not lines: 21 | print(f"文件 {file} 是空的,不需要去重!") 22 | return 23 | 24 | # 去重并排序 25 | result = sorted(set(lines)) 26 | 27 | # 创建临时文件进行输出 28 | temp_file = f"test_{file}" 29 | with open(temp_file, "w", encoding="utf8") as output_file: 30 | output_file.writelines(result) 31 | 32 | # 替换原文件 33 | os.remove(file) 34 | os.rename(temp_file, file) 35 | 36 | print(f"{file} 去重完成") 37 | 38 | 39 | if __name__ == "__main__": 40 | if len(sys.argv) != 2: 41 | print("请提供一个文件路径作为参数") 42 | else: 43 | deduplicate_file(sys.argv[1]) 44 | -------------------------------------------------------------------------------- /utils/deduplication.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Create temporary folder 4 | echo '新建TMP文件夹...' 5 | mkdir -p ./rules/tmp/ 6 | cd ./rules/tmp 7 | echo '新建TMP文件夹完成' 8 | 9 | # Start Download Filter File 10 | echo '开始下载规则...' 11 | 12 | # uBlock Origin规则 13 | ublock=( 14 | # uBlock filters – Ads 15 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt" 16 | # uBlock filters – Badware risks 17 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt" 18 | # uBlock filters – Privacy 19 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt" 20 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt" 21 | # uBlock filters – Quick fixes 22 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/quick-fixes.txt" 23 | # uBlock filters – Unbreak 24 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt" 25 | # uBlock filters – Annoyances 26 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt" 27 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances-others.txt" 28 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances-cookies.txt" 29 | # uBlock filters - Link Shorteners 30 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/ubo-link-shorteners.txt" 31 | 32 | # Adguard For uBlock Origin 规则 33 | # 基础过滤器 34 | "https://filters.adtidy.org/extension/ublock/filters/2.txt" 35 | # 防跟踪保护过滤器 36 | "https://filters.adtidy.org/extension/ublock/filters/3.txt" 37 | # URL跟踪过滤器 38 | "https://filters.adtidy.org/extension/ublock/filters/17.txt" 39 | # 社交媒体过滤器 40 | "https://filters.adtidy.org/extension/ublock/filters/4.txt" 41 | # 恼人广告过滤器 42 | "https://filters.adtidy.org/extension/ublock/filters/14.txt" 43 | # 中文过滤器 44 | "https://filters.adtidy.org/extension/ublock/filters/224.txt" 45 | ) 46 | 47 | # Adguard For Android 规则 48 | adguard=( 49 | # 基础过滤器 50 | "https://filters.adtidy.org/android/filters/2_optimized.txt" 51 | # 中文过滤器 52 | "https://filters.adtidy.org/android/filters/224_optimized.txt" 53 | ) 54 | 55 | # 元素过滤规则 56 | adblock_uni=( 57 | # 乘风 广告过滤规则,适用于UBO或ADG 58 | "https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt" 59 | # 乘风 视频过滤规则,适用于UBO或ADG 60 | "https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt" 61 | # 秋风广告规则 62 | "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/refs/heads/main/AWAvenue-Ads-Rule.txt" 63 | # GOODBYEADS Rules 64 | "https://github.com/8680/GOODBYEADS/raw/refs/heads/master/data/mod/adblock.txt" 65 | #Clean Url 66 | "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt" 67 | "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt" 68 | ) 69 | 70 | # 元素过滤规则 (AdGuard) 71 | adblock_ag=( 72 | # Anti-AD for Adguard 73 | "https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-adguard.txt" 74 | # adgk规则 @坂本大佬 75 | "https://raw.githubusercontent.com/banbendalao/ADgk/master/ADgk.txt" 76 | # 主要去除手机盗版网站广告 @酷安:大萌主 77 | "https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt" 78 | # 去 APP 下载广告规则 79 | "https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt" 80 | # 百度超级净化 @坂本大佬 81 | "https://raw.githubusercontent.com/banbendalao/ADgk/master/kill-baidu-ad.txt" 82 | # Cats-Team AdBlock Rules 83 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/adblock-rules.txt" 84 | ) 85 | 86 | # 元素过滤规则 (PC) 87 | adblock_full=( 88 | # halflife规则,[推荐桌面端]合并自乘风视频广告过滤规则、Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance,以及补充的一些规则 89 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-pc.txt" 90 | # halflife规则,合并自Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters 91 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-edentw.txt" 92 | # I don't care about cookies 93 | "https://www.i-dont-care-about-cookies.eu/abp/" 94 | ) 95 | 96 | # 元素过滤规则 (Mobile) 97 | adblock_lite=( 98 | # halflife规则,[推荐移动端]合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance,以及补充的一些规则 99 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad.txt" 100 | # halflife规则,合并自Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters 101 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-edentw.txt" 102 | # 百度超级净化 @坂本大佬 103 | "https://raw.githubusercontent.com/banbendalao/ADgk/master/kill-baidu-ad.txt" 104 | # 主要去除手机盗版网站广告 @酷安:大萌主 105 | "https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt" 106 | # 去 APP 下载广告规则 107 | "https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt" 108 | # uBlock filters – Ads For Mobile 109 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-mobile.txt" 110 | # Cats-Team AdBlock Rules 111 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/adblock-rules.txt" 112 | ) 113 | 114 | # HOSTS过滤 115 | hosts=( 116 | # 大圣净化规则 117 | "https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts" 118 | # NoCoin adblock list 119 | "https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt" 120 | # yhosts 智能设备专用(更全,用电脑看视频网站可能出错) 121 | "https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts" 122 | #hostsVN 123 | "https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts" 124 | ) 125 | 126 | # DNS通用过滤规则 127 | dns_uni=( 128 | # AdGuard DNS filter 129 | "https://filters.adtidy.org/android/filters/15_optimized.txt" 130 | # Cats-Team 自定义过滤规则 131 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/dns-rules.txt" 132 | #HostsVN 133 | "https://raw.githubusercontent.com/bigdargon/hostsVN/master/filters/adservers-all.txt" 134 | ) 135 | 136 | # DNS (AdGuard Home)过滤规则 137 | dns_agh=( 138 | # Anti-AD for AdGuardHome(DNS过滤) 139 | "https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt" 140 | # Online Malicious URL Blocklist Domain-based (AdGuard Home) 141 | "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-agh-online.txt" 142 | # LWJ's black list 143 | "https://raw.githubusercontent.com/liwenjie119/adg-rules/master/black.txt" 144 | # LWJ's white list 145 | "https://raw.githubusercontent.com/liwenjie119/adg-rules/master/white.txt" 146 | #Smart-TV 147 | "https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt" 148 | ) 149 | 150 | # 白名单规则 151 | allow=( 152 | # AdGuard Chinese Filters whitelist 153 | "https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/ChineseFilter/sections/allowlist.txt" 154 | # GOODBYEADS Rules 155 | "https://github.com/8680/GOODBYEADS/raw/refs/heads/master/data/rules/allow.txt" 156 | ) 157 | 158 | for i in "${!ublock[@]}" "${!adguard[@]}" "${!adblock_uni[@]}" "${!adblock_ag[@]}" "${!adblock_full[@]}" "${!adblock_lite[@]}" "${!hosts[@]}" "${!dns_uni[@]}" "${!dns_agh[@]}" "${!allow[@]}"; do 159 | curl --parallel --parallel-immediate -k -L -C - -o "ublock${i}.txt" --connect-timeout 60 -s "${ublock[$i]}" & 160 | curl --parallel --parallel-immediate -k -L -C - -o "adguard${i}.txt" --connect-timeout 60 -s "${adguard[$i]}" & 161 | curl --parallel --parallel-immediate -k -L -C - -o "adblock_uni${i}.txt" --connect-timeout 60 -s "${adblock_uni[$i]}" & 162 | curl --parallel --parallel-immediate -k -L -C - -o "adblock_ag${i}.txt" --connect-timeout 60 -s "${adblock_ag[$i]}" & 163 | curl --parallel --parallel-immediate -k -L -C - -o "adblock_full${i}.txt" --connect-timeout 60 -s "${adblock_full[$i]}" & 164 | curl --parallel --parallel-immediate -k -L -C - -o "adblock_lite${i}.txt" --connect-timeout 60 -s "${adblock_lite[$i]}" & 165 | curl --parallel --parallel-immediate -k -L -C - -o "hosts${i}.txt" --connect-timeout 60 -s "${hosts[$i]}" & 166 | curl --parallel --parallel-immediate -k -L -C - -o "dns_uni${i}.txt" --connect-timeout 60 -s "${dns_uni[$i]}" & 167 | curl --parallel --parallel-immediate -k -L -C - -o "dns_agh${i}.txt" --connect-timeout 60 -s "${dns_agh[$i]}" & 168 | curl --parallel --parallel-immediate -k -L -C - -o "allow${i}.txt" --connect-timeout 60 -s "${allow[$i]}" & 169 | done 170 | 171 | # 等待下载完成 172 | wait 173 | 174 | echo '规则下载完成' 175 | 176 | # Start Merge and Duplicate Removal 177 | echo 开始合并 178 | # 预处理自定义规则 179 | sort ../mod/static.txt -u -o ../mod/static.txt 180 | cat ../mod/static.txt | 181 | egrep -v '^\!|\!|\[' | 182 | egrep '^@@|\|\|.*(\^)$' | 183 | egrep -v '\/|\$' | 184 | sort | uniq -i >../mod/dns.txt 185 | comm -23 ../mod/static.txt ../mod/dns.txt | 186 | sort | uniq -i >../mod/element.txt 187 | 188 | # 合并白名单规则 189 | cat allow*.txt | 190 | egrep '^@@\|\|?[^\^=\/:]+?\^([^\/=\*]+)?$' | 191 | sort | uniq -i >tmp-allow.txt 192 | 193 | # 合并通用过滤规则 194 | cat ../mod/element.txt ../mod/dns.txt tmp-allow.txt adblock_uni*.txt | 195 | egrep -v '^\!|\!|\[' | 196 | sort | uniq -i >tmp-adblock.txt 197 | 198 | # 合并AdKiller过滤规则 199 | cat tmp-adblock.txt ublock*.txt adblock_full*.txt | 200 | egrep -v '^\!|\!|\[|(com\^$)' | 201 | egrep -v 'abort-|override|trusted-|rpnt|strip-fetch|json-prune\ |replace=|removeheader|app=|\$cookie|\$nerwork|urlskip=' | 202 | awk 'length <=100' | 203 | sort | uniq -i >pre-filter.txt 204 | python3 ../../utils/deduplication.py pre-filter.txt 205 | 206 | # 合并AdKiller-Lite过滤规则 207 | cat tmp-adblock.txt adblock_lite*.txt | 208 | egrep -v '^\!|\!|\[|(com\^$)' | 209 | awk 'length <=100' | 210 | sort | uniq -i >pre-filter-lite.txt 211 | python3 ../../utils/deduplication.py pre-filter-lite.txt 212 | 213 | # 合并HOSTS过滤规则并转化为DNS过滤规则 214 | cat hosts*.txt | 215 | egrep -v '^((#.*)|(\s*))$' | 216 | egrep -v '^[0-9\.:]+\s+(ip6\-)?(localhost|loopback)$' | 217 | egrep -v '0.0.0.0 0.0.0.0' | 218 | egrep -v '#' | 219 | sed 's/127.0.0.1/0.0.0.0/' | 220 | sed 's/::/0.0.0.0/g' | 221 | sed 's/ / /' | 222 | egrep '^(0.0.0.0 )' | 223 | awk 'length <=100' | 224 | sort | uniq -i >pre-hosts.txt 225 | python3 ../../utils/deduplication.py pre-hosts.txt 226 | cat pre-hosts.txt | 227 | sed 's/0.0.0.0 /||/g' | 228 | sed 's/$/&\^/g' >tmp-hosts-dns.txt 229 | 230 | # 合并DNS通用过滤规则 231 | cat ../mod/dns.txt tmp-allow.txt dns_uni*.txt | 232 | egrep -v '^#|\!|\!|\[' | 233 | sort | uniq -i >tmp-dns.txt 234 | 235 | # 合并AdGuard过滤规则 236 | cat tmp-adblock.txt tmp-dns.txt adguard*.txt adblock_ag*.txt | 237 | egrep -v '^\!|\!|\[|(\.com\^$)|(com\^$)' | 238 | awk 'length <=100' | 239 | sort | uniq -i >pre-adguard.txt 240 | python3 ../../utils/deduplication.py pre-adguard.txt 241 | 242 | # 分别提取AdGuard DNS规则和元素过滤规则 243 | cat pre-adguard.txt tmp-hosts-dns.txt | 244 | egrep '^(\|\||@@\|\|)?[^\^=\/:]+?\^([^\/=\*]+)?$' | 245 | awk 'length <=100' | 246 | sort | uniq -i >pre-adguard-dns.txt 247 | python3 ../../utils/deduplication.py pre-adguard-dns.txt 248 | sort pre-adguard.txt -o pre-adguard.txt 249 | sort pre-adguard-dns.txt -o pre-adguard-dns.txt 250 | comm -23 pre-adguard.txt pre-adguard-dns.txt | 251 | awk 'length <=100' | 252 | sort | uniq -i >pre-adguard-element.txt 253 | python3 ../../utils/deduplication.py pre-adguard-element.txt 254 | 255 | # 合并DNS (AdGuard Home)过滤规则 256 | cat tmp-dns.txt tmp-hosts-dns.txt dns_agh*.txt tmp-allow.txt | 257 | egrep -v '^#|\!|\!|\[' | 258 | awk 'length <=100' | 259 | sort | uniq -i >pre-dns.txt 260 | python3 ../../utils/deduplication.py pre-dns.txt 261 | 262 | # Move to Pre Filter 263 | echo '移动规则到Pre目录' 264 | cd ../ 265 | mkdir -p ./pre 266 | mkdir -p ./tpdate 267 | mv ./tmp/pre-*.txt ./pre 268 | rm -rf ./tmp 269 | cd ./pre 270 | echo '移动完成' 271 | 272 | echo '规则合并去重处理完成' 273 | 274 | # Start Add title and date 275 | 276 | # 先处理HOSTS规则 277 | cp ../../utils/title/hosts.txt ../tpdate/hosts 278 | echo "# Version: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')(北京时间)" >>../tpdate/hosts 279 | n=$(cat pre-hosts.txt | wc -l) 280 | echo "# Total count: $n" >>../tpdate/hosts 281 | cat ../tpdate/hosts ../mod/hosts ./pre-hosts.txt >../../hosts 282 | rm ./pre-hosts.txt 283 | 284 | # 再处理剩下的规则 285 | diffFile="$(ls | sort -u)" 286 | for i in $diffFile; do 287 | n=$(cat $i | wc -l) 288 | new=$(echo "$i" | sed 's/pre-//g') 289 | echo "! Version: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')(北京时间)" >../tpdate/$i-tpdate.txt 290 | echo "! Total count: $n" >>../tpdate/$i-tpdate.txt 291 | cat ../../utils/title/$new ../tpdate/$i-tpdate.txt ./$i | 292 | sed '/^$/d' >../../$new 293 | done 294 | cd ../ 295 | rm -rf ./pre ./tpdate 296 | echo '规则处理完成' 297 | exit 298 | -------------------------------------------------------------------------------- /utils/title/adguard-dns.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdGuard (DNS) 3 | ! Homepage: https://github.com/PhoenixLjw/AdRules 4 | ! Powerd by PhoenixLjw 5 | ! Expires: 24 Hours 6 | ! Description: 该规则适用于移动端AdGuard,主要为Adguard For Android 7 | ! Description: 该规则提取自自定义合并后的AdGuard规则及HOSTS规则,只包含DNS过滤规则 8 | -------------------------------------------------------------------------------- /utils/title/adguard-element.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdGuard (Element) 3 | ! Homepage: https://github.com/PhoenixLjw/AdRules 4 | ! Powerd by PhoenixLjw 5 | ! Expires: 24 Hours 6 | ! Description: 该规则适用于移动端AdGuard,主要为Adguard For Android 7 | ! Description: 该规则提取自自定义合并后的AdGuard规则,只包含元素过滤规则 8 | -------------------------------------------------------------------------------- /utils/title/adguard.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdGuard 3 | ! Homepage: https://github.com/PhoenixLjw/AdRules 4 | ! Powerd by PhoenixLjw 5 | ! Expires: 24 Hours 6 | ! Description: 该规则适用于移动端AdGuard,主要为Adguard For Android 7 | ! Description: 该规则合并自AdGuard规则,包括AdGuard广告过滤器, AdGuard移动设备过滤器, AdGuard隐私保护过滤器, AdGuardURL跟踪保护器, AdGuard社交过滤器, AdGuard烦人过滤器, AdGuard中文过滤器 8 | ! Description: 该规则合并自乘风视频过滤规则, ADgk, Anti-AD, 酷安大萌主的规则, 去APP下载广告规则, 百度超级净化和一些额外规则 9 | -------------------------------------------------------------------------------- /utils/title/dns.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: DNSFilter 3 | ! Homepage: https://github.com/PhoenixLjw/AdRules 4 | ! Powerd by PhoenixLjw 5 | ! Expires: 24 Hours 6 | ! Description: 该规则适用于AdGuard Home 7 | ! Description: 该规则合并自AdGuardDNS过滤器, Anti-AD, Online Malicious URL Blocklist和一些额外规则 8 | -------------------------------------------------------------------------------- /utils/title/filter-lite.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdKiller-Lite 3 | ! Homepage: https://github.com/PhoenixLjw/AdRules 4 | ! Powerd by PhoenixLjw 5 | ! Expires: 24 Hours 6 | ! Description: 该规则适用于移动端浏览器,如via, Vivaldi, X Browser 7 | ! Description: 该规则合并自EasyList Lite, Easylist China, CJX's Annoyance List, 乘风视频过滤规则, Adblock Warning Removal List, 酷安大萌主的规则, 去APP下载广告规则, 百度超级净化和一些额外规则 8 | -------------------------------------------------------------------------------- /utils/title/filter.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdKiller 3 | ! Homepage: https://github.com/PhoenixLjw/AdRules 4 | ! Powerd by PhoenixLjw 5 | ! Expires: 24 Hours 6 | ! Description: 该规则适用于PC端浏览器,如AdGuard、Ublock Origin、AdBlock 7 | ! Description: 该规则合并自uBlock规则, EasyList, Easylist China, EasyPrivacy, CJX's Annoyance List, 乘风视频过滤规则, Adblock Warning Removal List, Anti-Adblock Killer, I don't care about cookies和一些额外规则 8 | -------------------------------------------------------------------------------- /utils/title/hosts.txt: -------------------------------------------------------------------------------- 1 | # [Adblock Plus 2.0] 2 | # Title: Hosts 3 | # Homepage: https://github.com/PhoenixLjw/AdRules 4 | # Powerd by PhoenixLjw 5 | # Expires: 24 Hours 6 | # Description: 该hosts适用于各类可使用hosts的途径 7 | # Description: 该hosts合并自大圣净化规则, neoHosts, NoCoin Filter List, yhosts, StevenBlack和一些额外hosts规则 8 | -------------------------------------------------------------------------------- /utils/upstream-list.txt: -------------------------------------------------------------------------------- 1 | # uBlock Origin规则 2 | ublock=( 3 | # uBlock filters – Ads 4 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt" 5 | # uBlock filters – Badware risks 6 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt" 7 | # uBlock filters – Privacy 8 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt" 9 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt" 10 | # uBlock filters – Quick fixes 11 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/quick-fixes.txt" 12 | # uBlock filters – Unbreak 13 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt" 14 | # uBlock filters – Annoyances 15 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt" 16 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances-others.txt" 17 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances-cookies.txt" 18 | ) 19 | 20 | # Adguard For Android 规则 21 | adguard=( 22 | # 基础过滤器 23 | "https://filters.adtidy.org/android/filters/2_optimized.txt" 24 | # 移动设备过滤器 25 | # "https://filters.adtidy.org/android/filters/11_optimized.txt" 26 | # 防跟踪保护过滤器 27 | # "https://filters.adtidy.org/android/filters/3_optimized.txt" 28 | # URL跟踪过滤器 29 | # "https://filters.adtidy.org/android/filters/17_optimized.txt" 30 | # 社交媒体过滤器 31 | # "https://filters.adtidy.org/android/filters/4_optimized.txt" 32 | # 恼人广告过滤器 33 | # "https://filters.adtidy.org/android/filters/14_optimized.txt" 34 | # 中文过滤器 35 | "https://filters.adtidy.org/android/filters/224_optimized.txt" 36 | # DNS过滤器 37 | # "https://filters.adtidy.org/android/filters/15_optimized.txt" 38 | ) 39 | 40 | # Adguard For uBlock Origin 规则 41 | ag_ubo=( 42 | # 基础过滤器 43 | "https://filters.adtidy.org/extension/ublock/filters/2.txt" 44 | # 移动设备过滤器 45 | # "https://filters.adtidy.org/extension/ublock/filters/11.txt" 46 | # 防跟踪保护过滤器 47 | "https://filters.adtidy.org/extension/ublock/filters/3.txt" 48 | # URL跟踪过滤器 49 | "https://filters.adtidy.org/extension/ublock/filters/17.txt" 50 | # 社交媒体过滤器 51 | "https://filters.adtidy.org/extension/ublock/filters/4.txt" 52 | # 恼人广告过滤器 53 | "https://filters.adtidy.org/extension/ublock/filters/14.txt" 54 | # 中文过滤器 55 | "https://filters.adtidy.org/extension/ublock/filters/224.txt" 56 | ) 57 | 58 | # 元素过滤规则 59 | adblock_uni=( 60 | # 乘风 广告过滤规则,适用于UBO或ADG 61 | "https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/rule.txt" 62 | # 乘风 视频过滤规则,适用于UBO或ADG 63 | "https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt" 64 | # GOODBYEADS Rules 65 | "https://raw.githubusercontent.com/8680/GOODBYEADS/master/data/rules/adblock.txt" 66 | # 百度超级净化 @坂本大佬 67 | "https://raw.githubusercontent.com/banbendalao/ADgk/master/kill-baidu-ad.txt" 68 | # Cats-Team AdBlock Rules 69 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/adblock-rules.txt" 70 | #Clean Url 71 | "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt" 72 | "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt" 73 | ) 74 | 75 | # 元素过滤规则 (AdGuard) 76 | adblock_ag=( 77 | # Anti-AD for Adguard 78 | "https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-adguard.txt" 79 | # adgk规则 @坂本大佬 80 | "https://raw.githubusercontent.com/banbendalao/ADgk/master/ADgk.txt" 81 | # 主要去除手机盗版网站广告 @酷安:大萌主 82 | "https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt" 83 | # 去 APP 下载广告规则 84 | "https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt" 85 | # 秋风广告规则 86 | "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Adblock-Rule/main/AWAvenue-Adblock-Rule.txt" 87 | ) 88 | 89 | # 元素过滤规则 (PC) 90 | adblock_full=( 91 | # EasyList (反广告主规则列表。主要面向英文网站,包含大量通用规则) 92 | # "https://easylist.to/easylist/easylist.txt" 93 | # Easylist China (反广告主规则列表的补充。主要面向中文网站) 94 | # "https://easylist-downloads.adblockplus.org/easylistchina.txt" 95 | # EasyPrivacy (防隐私跟踪挖矿规则列表) 96 | # "https://easylist.to/easylist/easyprivacy.txt" 97 | # CJX's Annoyance List (反自我推广,移除anti adblock,防跟踪规则列表) 98 | # "https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt" 99 | # halflife规则,[推荐桌面端]合并自乘风视频广告过滤规则、Easylist、EasylistChina、EasyPrivacy、CJX'sAnnoyance,以及补充的一些规则 100 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-pc.txt" 101 | # Adblock Warning Removal List 102 | # "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt" 103 | # Anti-Adblock Killer 104 | # "https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt" 105 | # halflife规则,合并自Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters 106 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-edentw.txt" 107 | # I don't care about cookies 108 | "https://www.i-dont-care-about-cookies.eu/abp/" 109 | # Online Malicious URL Blocklist URL-based 110 | # "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter.txt" 111 | ) 112 | 113 | # 元素过滤规则 (Mobile) 114 | adblock_lite=( 115 | # halflife规则,[推荐移动端]合并自乘风视频广告过滤规则、EasylistChina、EasylistLite、CJX'sAnnoyance,以及补充的一些规则 116 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad.txt" 117 | # halflife规则,合并自Adblock Warning Removal List、ABP filters、anti-adblock-killer-filters 118 | "https://raw.githubusercontent.com/o0HalfLife0o/list/master/ad-edentw.txt" 119 | # 百度超级净化 @坂本大佬 120 | "https://raw.githubusercontent.com/banbendalao/ADgk/master/kill-baidu-ad.txt" 121 | # 主要去除手机盗版网站广告 @酷安:大萌主 122 | "https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt" 123 | # 去 APP 下载广告规则 124 | "https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt" 125 | ) 126 | 127 | # HOSTS过滤 128 | hosts=( 129 | # 大圣净化规则 130 | "https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts" 131 | # neoHosts - Basic Hosts 基础、克制的数据,推荐所有用户使用。 132 | # "https://cdn.jsdelivr.net/gh/neoFelhz/neohosts@gh-pages/basic/hosts.txt" 133 | # NoCoin adblock list 134 | "https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt" 135 | # yhosts 智能设备专用(更全,用电脑看视频网站可能出错) 136 | "https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts" 137 | # StevenBlack's hosts file 138 | "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" 139 | # NEO DEV HOST - Lite version (Without Dead Domain inside) 140 | # "https://raw.githubusercontent.com/neodevpro/neodevhost/master/lite_host" 141 | # GoodbyeAds 142 | # "https://raw.githubusercontent.com/jerryn70/GoodbyeAds/master/Hosts/GoodbyeAds.txt" 143 | #hostsVN 144 | "https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts" 145 | ) 146 | 147 | # DNS通用过滤规则 148 | dns_uni=( 149 | # AdGuard DNS filter 150 | "https://filters.adtidy.org/android/filters/15_optimized.txt" 151 | # Cats-Team 自定义过滤规则 152 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/dns-rules.txt" 153 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/thrid-part-rules.txt" 154 | #HostsVN 155 | "https://raw.githubusercontent.com/bigdargon/hostsVN/master/filters/adservers-all.txt" 156 | ) 157 | 158 | # DNS (AdGuard Home)过滤规则 159 | dns_agh=( 160 | # Anti-AD for AdGuardHome(DNS过滤) 161 | "https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt" 162 | # Online Malicious URL Blocklist Domain-based (AdGuard Home) 163 | "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-agh-online.txt" 164 | # LWJ's black list 165 | "https://raw.githubusercontent.com/liwenjie119/adg-rules/master/black.txt" 166 | # LWJ's white list 167 | "https://raw.githubusercontent.com/liwenjie119/adg-rules/master/white.txt" 168 | #Smart-TV 169 | "https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt" 170 | ) 171 | 172 | # 白名单规则 173 | allow=( 174 | # AdGuard Chinese Filters whitelist 175 | "https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/ChineseFilter/sections/allowlist.txt" 176 | # Energized Protection - unblock 177 | # "https://raw.githubusercontent.com/EnergizedProtection/unblock/master/basic/formats/filter" 178 | # Cats-Team 自定义白名单规则 179 | "https://raw.githubusercontent.com/Cats-Team/AdRules/main/mod/rules/allowlist.txt" 180 | # GOODBYEADS Rules 181 | "https://raw.githubusercontent.com/8680/GOODBYEADS/master/data/rules/whitelist.txt" 182 | ) --------------------------------------------------------------------------------