-
Notifications
You must be signed in to change notification settings - Fork 82
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
The logger removes whitespace in selector #2730
Comments
Normal for 6-12 months. If you must disable these cosmetic filter (e.g. @gmarcher, and @realodix sick/ill to fix at origin), then the best copy from viewer of problematic list (e.g. Indonesia/Malaysia list where can be compressed many filters by comma) to add fix compatible with ABP and AdGuard (e.g. copied fastly to EasyList "English"). |
I can create a working exception to
You mean you manually search for the filter in the list? The reason the cosmetic filter is changed is that it is normalized in order to make sure that duplicates of properly found and discarded by uBO. Removing normalization would be a step backward. Related: #620 |
But now paste these exceptions to ABP and AdGuard parsers, can mark as no match without unlock visibility element. |
Yes, copied from the log and searched in text file.
Okay, then. It's not too serious. |
This comment was marked as abuse.
This comment was marked as abuse.
Using CSSTree library made it possible to normalize cosmetic filters, this was not possible back then at the time of this issue. |
Related issue: - uBlockOrigin/uBlock-issues#2730 CSS selectors used in cosmetic filtering are normalized in order to ignore non-functional differences. For instance: example.org##body p example.org#@#body p The first cosmetic filter should be excepted by the second one, but this was not the case because the fast path use to compile common CSS selectors was not causing normalization to take place. The fix is to ensure that the fast path used to compile most common CSS selectors is taken only when in presence of already normalized CSS selectors.
This comment was marked as abuse.
This comment was marked as abuse.
There is a tab character in the filter, uBO should mark this as an error:
|
This comment was marked as abuse.
This comment was marked as abuse.
Related issue: uBlockOrigin/uBlock-issues#2730 (comment) Character `\x1F` is now used instead.
Prerequisites
I tried to reproduce the issue when...
Description
The logger removes whitespece of
##.a, .b, .c, .d, .e, .f, .g
and displays as##.a,.b,.c,.d,.e,.f,.g
, so if I copied the rule from the logger, no match in actual filters. IMO the logger should display filters as are.A specific URL where the issue occurs.
linksfly.me/demo
Steps to Reproduce
Will be obvious if you visit the URL
Expected behavior
The logger preserves the form of actual filters exactly.
Actual behavior
Not
uBO version
1.50.1b16
Browser name and version
Chrome 114.0.5735.199
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: