在浏览器 DevTools 里调试 AdGuard 规则

调试可能用于过滤规则维护者编写规则, 也可能用于规则用户查看影响网页显示的规则. 如果网页出现问题且已知是由 AdGuard 过滤规则引起, 但不知道具体受什么规则影响, 则可以使用特殊的调试规则在 DevTools 中显示命中的过滤器信息.

显示网页命中的所有规则:

example.com#$?#body { debug: global; }


显示指定元素命中的所有规则:

example.com#$?#.banner { debug: global; }


调试特定选择器过滤规则

example.com#$?#.banner { debug: true; }

How to create your own ad filters - How to debug filtering rules | AdGuard Knowledge Base


#AdGuard

via CXPLAY's Memos
 
 
Back to Top