-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Static filtering: Cannot prevent my filter from strict-blocking #2385
Comments
I agree that the page should not be strict-blocked (I will fix this), but I disagree that the page should be mangled because all other resources are blocked: the filter should result in no blocking at all. There are request types which are standalone, and for these types, using the
These types do not really map to network requests, and need to be tested separately and explicitly. |
I rather you argue to convince me why you think it should different. If you hold that |
I think I see what you're saying, let me restate it to be sure - The problem is this - the Now, the implication is usually desirable, so it's a good default. But as I found out, there are exceptions. So how can the filterlist maintainer disable the implied I don't mind if |
There is an open issue for this: Cannot set exemptions to strict blocks. I do still wonder if supporting Of course for now for your specific case, there is always: |
That's for the ability to write whitelist filters with Consider these filters -
That second filter would need a Now consider these filters -
The second filter would just work, without need to carry around
Thanks, that would work for now for the case that brought this on. |
Now On the other hand, network-like filters are excluded when $document is used with path-like filters
Then if network-like filters are implied, we need to negate whole list of network filters to achieve document-only blocking. For convenience I propose new filter option that will include all network-like filters.
|
These filter options ... popup, popunder, document, generichide, inline-script, csp, redirect, webrtc ... cannot be negated, it just makes no sense. When uBO encounters something like |
Cannot be negated, but can be disabled or excluded.
So if you decide to automatically include |
Given this conversation, would |
I just read again my above comments, and sorry, but I try again: maybe I was using "negated" in wrong context when referring to "~document" option. By "negate" I did not mean to invert whole filter set, but instead just flip one bit in set - switch off only "document". Negating "network-related" option should invert whole set of network options, but why not negating "behavioral" filters can just turn them on/off one by one? |
Yes, that is the exact change I did as part of |
Just to be clear |
Steps for anyone to reproduce the issue
Expected results:
Page loads, but looks badly mangled due to all first-party resources being blocked.
Actual results:
Page is strict-blocked by uBlock Origin -
Your settings
new profile
Your filter lists
default
Your custom filters (if any)
The text was updated successfully, but these errors were encountered: