Replies: 15 comments 4 replies
-
Use specific filter ( |
Beta Was this translation helpful? Give feedback.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
It does clarify, exception filters override normal filters :
- https://help.adblockplus.org/hc/en-us/articles/360062733293-How-to-write-filters#allowlist
- https://help.adblockplus.org/hc/en-us/articles/360062733293-How-to-write-filters#elemhide_exceptions
This only confirms that external filters can override user-set local ones, which makes the prioritization of "My filters" over external ones (the other issue) a valid one.
The goal of *##[src^="data:"] is to block all base64 (on all sites). The github link was just an example to illustrate the issue.
The suggested:
`github.com##[src^="data:"]`
Or `com##[src^="data:"]`
`@@||github.com^$generichide,badfilter`
are limited to a domain or TLD, i.e. the goal is still impossible.
or override the `$ghide` (`*$ghide,important`).
That works but wouldn't it have other (undesired) side effects?
The point is: How does that resolve the actual issue of external filters overriding local ones?
- dynamic filtering gorhill/uBlock#2904 (comment)
Seems unrelated to in-document base64 data.
|
Beta Was this translation helpful? Give feedback.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
What do you mean "to continue"? I am the author of both issues. Both were closed as "completed" without action whatsoever while the actual issue still remains.
Quite confusing.
|
Beta Was this translation helpful? Give feedback.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
*##[src^="data:"][src^="data:"]
Same result - the base64 images show up.
|
Beta Was this translation helpful? Give feedback.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
Instead wrote top 100 public suffixes or HTML filtering it is possible use untranslatable to a simple filter the injection of some CSS (yet/for now): *##[src^="data:"]:style(display: none !important; width: unset) ( [Injection globally CSS is in use to disable advertising spectrum blocking detection, so blocking the use of this may unblock some spectrum blocking modals/alerts, if we consider it a bug that needs to be corrected in the next 10 years] Or little slower If placeholders with borders are not bad then also works: *##[src^="data:"]:remove-attr(src) (Also in legacy (https://github.com/uBlockOrigin/uAssets/assets/35370833/98c80a3e-a01e-4dda-afa3-91626f22594f) |
Beta Was this translation helpful? Give feedback.
-
*##[src^="data:"]:style(display: none !important; width: unset)
Thanks.
This works, even without "width: unset" (what's its purpose?)
|
Beta Was this translation helpful? Give feedback.
-
So is 'width: unset' necessary?
|
Beta Was this translation helpful? Give feedback.
-
I have checked reloading with cache disabled. With or without 'width: unset' the result is the same but I accept your word that it is required (though I still don't understand why).
|
Beta Was this translation helpful? Give feedback.
-
OK. Thanks.
|
Beta Was this translation helpful? Give feedback.
-
This was probably before |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
URL(s) where the issue occurs.
https://github.com/404
Description
Disclaimer:
I am not 100% sure if this is correct to be reported as filter list issue or as an issue with uBO itself, in the sense that My Filters obviously has lower priority than external filter lists. So, for the sake of completeness, I will report it as both, because the documentation does not clarify which static filter has priority over another.
Expected: The
*##[src^="data:"]
in My Fiilters should hide the base64 images.Actual: As expected.
Enable EasyList (easylist) or EasyList – Social Widgets (fanboy-social) filter lists. (or both)
Refresh the page (with disabled cache in web console).
Result:
*##[src^="data:"]
has no effect. base64 images are displayed.Tested each and every other list (with all other lists disabled). Only the 2 lists mentioned above cause this effect.
Other extensions used
none
Screenshot(s)
I cannot enable JavaScript for privacy reasons. The STR is detailed and simple enough to reproduce and the result is consistent.
Configuration
Details
Beta Was this translation helpful? Give feedback.
All reactions