Adblock 规则求 Debug

2019-03-17 19:20:16 +08:00
 antimyth

tieba.baidu.com###j_p_postlist>div.l_post_bright:has(a.j_click_stats.img_wrap) 上面一行提示“ is not a valid CSS selector ” 已知: tieba.baidu.com###j_p_postlist>div.l_post_bright 不会报错,那么应该是“ has ”语法错误。 由于本人不懂 CSS 规范,特来求助。

1012 次点击
所在节点    问与答
4 条回复
antimyth
2019-03-17 19:22:05 +08:00
输入的时候是有换行的啊?发出来怎么就没有了呢...
autoxbc
2019-03-17 19:37:29 +08:00
:has() 还是草案,不被浏览器支持

https://caniuse.com/#search=has()
azh7138m
2019-03-17 20:30:53 +08:00
换行要 MD 格式才有,发帖的时候要自己选一下,而且代码也应该
```
我是代码
```
这样子
whitev2
2019-03-17 23:01:24 +08:00
:-abp-has()
:-abp-has(selector) will select elements based on their content. For example :-abp-has(> div > a.advertiser) will select elements that contain as a direct descendant a <div> that contains an <a> with the class advertiser. The inner selector can be relative to the element scope, and can use any of the pseudo-selectors, including :-abp-has() and will determine whether the selection will occur.
from https://adblockplus.org/zh_CN/filters#elemhide_css

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/545538

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX