V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
antimyth
V2EX  ›  问与答

Adblock 规则求 Debug

  •  
  •   antimyth · 2019-03-17 19:20:16 +08:00 · 1002 次点击
    这是一个创建于 1837 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 规范,特来求助。

    4 条回复    2019-03-17 23:01:24 +08:00
    antimyth
        1
    antimyth  
    OP
       2019-03-17 19:22:05 +08:00
    输入的时候是有换行的啊?发出来怎么就没有了呢...
    autoxbc
        2
    autoxbc  
       2019-03-17 19:37:29 +08:00
    :has() 还是草案,不被浏览器支持

    https://caniuse.com/#search=has()
    azh7138m
        3
    azh7138m  
       2019-03-17 20:30:53 +08:00
    换行要 MD 格式才有,发帖的时候要自己选一下,而且代码也应该
    ```
    我是代码
    ```
    这样子
    whitev2
        4
    whitev2  
       2019-03-17 23:01:24 +08:00   ❤️ 1
    :-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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3453 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 11:10 · PVG 19:10 · LAX 04:10 · JFK 07:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.