V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
antimyth
V2EX  ›  问与答

Adblock 规则求 Debug

  •  
  •   antimyth · Mar 17, 2019 · 1439 views
    This topic created in 2598 days ago, the information mentioned may be changed or developed.

    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 replies    2019-03-17 23:01:24 +08:00
    antimyth
        1
    antimyth  
    OP
       Mar 17, 2019
    输入的时候是有换行的啊?发出来怎么就没有了呢...
    autoxbc
        2
    autoxbc  
       Mar 17, 2019
    :has() 还是草案,不被浏览器支持

    https://caniuse.com/#search=has()
    azh7138m
        3
    azh7138m  
       Mar 17, 2019
    换行要 MD 格式才有,发帖的时候要自己选一下,而且代码也应该
    ```
    我是代码
    ```
    这样子
    whitev2
        4
    whitev2  
       Mar 17, 2019   ❤️ 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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1044 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:44 · PVG 06:44 · LAX 15:44 · JFK 18:44
    ♥ Do have faith in what you're doing.