-
Notifications
You must be signed in to change notification settings - Fork 87
HTML filters occasionally lost effectiveness #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
One other thing... I mistaked the outdated fork source of fang5566/uBlock , which is the offical Chinese (中文) introduction&wiki , and posted uBlock-LLC/uBlock#1767 . Then I got a ban at https://github.com/gorhill/uBlock/issues/new for that misposted issue. WHY??? |
There is no ban on |
I answered to you on uBlockAdmin (which is a scammy fork by the way): When I
No |
Duh, sorry, I didn't realize I could scroll. I will investigate. |
Ok, again, when I |
|
@Crystal-RainSlide HTML filtering will only match what is in seen in |
@gwarser Yes, cofirmed it works fine with |
When I tested this earlier @Crystal-RainSlide why you think that only |
Still there on my end - https://i.imgur.com/xZr5QIe.jpg Can't reproduce though, it blocks just as expected. |
|
|
Sorry for my half day long offline. About
|
DONE, reproduced on my
Steps(0. Open the The logger to verify whether HTML filters work?)
Then, Chrome... Note that I'm using Cent Browser, not offical Chrome. |
|
Weird thing - I can easily reproduce on https://github.com/ with //edit: May be because of this:
|
I tried to set request header |
|
You're right, I just tested |
HTML filtering is not supported on Chromium-based browsers, it's missing the proper API. |
I can reproduce sporadically when using the "duplicate tab" trick. When the issue occurs, the HTML filter is not reported in the logger. I will keep investigating. |
Actually |
Yes, I was looking at this: https://bugzilla.mozilla.org/show_bug.cgi?id=1376932. I confirm that when the issue occurs, uBO's onHeadersReceived listener is not being called at all, Firefox bypasses uBO, hence uBO can't do its job. |
So this is a browser bug ? |
Yes, but I need to provide a workaround given the seriousness of it: one main use of HTML filtering is to remove unwanted specific inline script tag, and the issue here means this could lead to unwanted inline script code being executed. Beside, this should also solve the issue described in https://bugzilla.mozilla.org/show_bug.cgi?id=1376932 -- NoScript is being mentioned but uBO does also suffers from it (also uMatrix: gorhill/uMatrix#893). |
Prerequisites
Description
An ad script in
https://www.baidu.com/s?wd=%E7%9A%AE%E9%9E%8B
I tried to remove it with
www.baidu.com##^script#ecomScript
, but I found that onlyscript: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.
A specific URL where the issue occurs
All website equipped with
<script foo="bar">
Steps to Reproduce
Descripted↑
Expected behavior:
example.com##script#id
Actual behavior:
Nothing happens & desired filter don't work
Your environment
The text was updated successfully, but these errors were encountered: