Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

[Syntax Support] example.com##script#id #1767

Closed

Description

@Crystal-RainSlide

An ad script in https://www.baidu.com/s?wd=%E7%9A%AE%E9%9E%8B

<script id="ecomScript">
...
<script>

I tried to remove it with www.baidu.com##^script#ecomScript, but I found that only script:contains() is supported.

Then I took some time with the code and got 'setAdsHeight' in the js outline from Firefox's dev tools, then everything works fine, but the time has gone.

Certainly CSS Selector don't support this, but adblocks may support it for simplifing the rules&filtering.

Activity

  1. Crystal-RainSlide commented on May 15, 2018

    @Crystal-RainSlide
    Author

    @gwarser Thanks...

    Well...

    I'm using ublock Origin but get a ublock link towards here from Chinese Wiki: https://github.com/fang5566/uBlock/blob/master/README.md#ublock-origin

    Which is still forked from uBlockAdmin/uBlock

    Bye~

  2. Crystal-RainSlide commented on May 15, 2018

    @Crystal-RainSlide
    Author

    Blanklines are just the start.

    view-source:http://baidu.com shows that Baidu use some encode to avoid treatment when it was use HTTP.

    Disscussion about the example.com##script#id Syntax had moved to uBlockOrigin/uBlock-issues#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions