-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Bug: Filters containing classes with double dashes are ignored #1885
Comments
Works when specific, not visible in log. |
I can't find any element with the class
|
Never mind, got it while scrolling up, as you said. |
It's not the double-dash, it's because the class In any case, this is not ideal as a cosmetic filter (because it is removed/added dynamically), Edit: Ok, I can see the benefit of using |
What's interesting is that on some other sites (e.g., this) uBlock accommodates the dynamic addition of classes:
|
Because specific filters are used in your |
Ah, I see. Great, thanks for the explanation. |
I've started to notice a trend of a certain CMS's using the "__" div elements. Given the age of this bug, is going to be fixed? Was trying to filter on tunein.com "##.footer__socialLink___1Iby-" Even the following didn't work;
|
The bug title is incorrect, it has nothing to do with double-dash, or any double-anything. |
or
work fine for me. |
These filters don't work because there is no |
hmm annoying, right, doesn't show what type of element it is. Is there feature request to show the type of element being used when using the Picker? |
There is #1736, which I interpret as wanting more controls over cosmetic filter crafting. |
By the way, how did you come to create the filter with a |
One more case I believe: https://www.reddit.com/r/uBlockOrigin/comments/emy5cd/baseballreferencecom_doesnt_load_with_ubo_enabled/ @gorhill, you should change title to something actually describing the issue. |
Listening to |
Describe the issue
Custom filters that specify an element with a class name that contains a double dash (or double underscore) are ignored. This issue is reproducible for any page with an element whose class name contains a double dash or double underscore.
For example, say I want to block the top navigation bar that peeks in on Medium sites when you scroll the site up. My filter is:
##div.metabar--affixed
The filter is ignored.
(Use this Medium article as the test case.)
If I change the filter selector to specify a class without the double dash, the filter works.
Steps for anyone to reproduce the issue
##div.metabar--affixed
Your settings
All settings are default.
Your filter lists
Default filter lists + the test case specified above
The text was updated successfully, but these errors were encountered: