AWAvenue-Ads-Rule/script
Elysia c29166d753
Some checks failed
build Rule / execute_python_script (push) Has been cancelled
Update Geosite.py
2025-09-08 17:44:47 +08:00
..
Adblock.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
AdClose.py Support adclose user self-import rules.(Test) 2024-11-15 10:39:19 +08:00
Adguard.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Clash-Classical.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Clash.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Dnsmasq.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Geosite.py Update Geosite.py 2025-09-08 17:44:47 +08:00
hosts.py 移除无效域名查询(action无法判断正确判断是否有效) 2025-05-19 15:22:01 +08:00
Mosdns_v5.py fix: mosdns无法导入 #87 2024-09-22 02:07:10 +08:00
QuantumultX.py fix QuantumultX error 2025-08-03 15:36:03 +08:00
README.md 添加读取原始规则的合法性 有效性校验以及修复之前的部分错误,对dns层拦截的插件添加ipv6屏蔽兼容 2025-03-23 00:16:46 +08:00
RouterOS-Adlist.py 移除无效域名查询(action无法判断正确判断是否有效) 2025-05-19 15:22:01 +08:00
RouterOS.py 移除无效域名查询(action无法判断正确判断是否有效) 2025-05-19 15:22:01 +08:00
Shadowrocket.py fix #168 2025-09-08 12:31:37 +08:00
Singbox.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Surge-module.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Surge-RULE-SET.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00
Surge.py 新增domain_suffix和domain_keyword匹配&删除singbox-regex.py 2025-08-02 20:35:17 +08:00

插件开发文档

插件入口函数为build(rule)

插件返回的list格式参考:

Adguard.py:

["||xxx.com^","||xxx.cc^"], ".txt", "!", xxx

处理后的域名列表(list), 文件后缀名(string), 注释符号(string), 规则数量(int|string)

API:

  • rule.domain_list(获取域名列表)
  • rule.domain_v6_list(获取支持ipv6域名列表)
  • rule.regex_list(获取正则表达式的域名列表)
  • rule.ip_list(获取ip列表)
  • rule.ip6_list(获取ipv6列表)

所有变量均为列表 也可以导入config.py获取 输出文件名=插件名