This topic created in 3390 days ago, the information mentioned may be changed or developed.
需求就是我需要让一个 /多个指定 DOM 的内容默认就被尽量多的反广告脚本 /插件 /软件等屏蔽掉。
有没有什么比较通用的办法,比如给 dom 加一些 data-ad 之类的属性?
2 replies • 2017-08-08 12:34:58 +08:00
 |
|
可以看看 adblock plus 与 ublock origin 的文档,后者支持的过滤选项比较多
|
 |
|
caomuAug 8, 2017 via Android
2
需要去翻翻 easylist 的规则 xpath 可能有点难,因为很多都是指定在域名下的 图片的话,印象中,类似 /img/ad/ 这种就容易被过滤
|