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

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

Closed
Crystal-RainSlide opened this issue May 15, 2018 · 4 comments
Closed

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

Crystal-RainSlide opened this issue May 15, 2018 · 4 comments

Comments

@Crystal-RainSlide
Copy link

Crystal-RainSlide commented May 15, 2018

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.

@gwarser
Copy link

gwarser commented May 15, 2018

Try Ublock Origin, should work fine.

@Crystal-RainSlide
Copy link
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~

@gwarser
Copy link

gwarser commented May 15, 2018

Scroll down - lot of white space.
And this script with ecomScript id is already gone.

@Crystal-RainSlide
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants