-
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
ABP new filter not working on uBO #2793
Comments
Should be trivial to fix at first glance. Note: I tried the filter in ABP. On my side, it works if refreshing the already loaded test page, however it does not work if opening in a new tab. |
I filed a new ticket |
@mapx- Looks like a timing issue: if you just click refresh button, it works; If you shift-click refresh button (thus bypassing the browser cache), it doesn't work. |
Yes, ..sometimes even F5 still leave the ad unhidden. |
I've already sent pull request with support for |
Fixed with 8559669. Additionally, compatibility with Adguard's |
I want to do more work on this. Specifically, I want uBO to normalize the raw filter so that it can properly handle duplicates such as:
And
Which essentially accomplishes the same thing. uBO will normalize procedural filters to properly discard duplicates -- especially given how procedural cosmetic filters are more CPU intensive. For instance, the above will be normalized to:
|
@gorhill have a question about these new changes.
Is the atomized |
|
Apparently part of normalization |
Just use |
yes, it works with / without |
uBo supports ABP and its own syntax, ABP ...doesn't |
yes and uBo is supporting it. |
ABP doesn't support uBo implementation. |
uBo supports the ABP syntax for Just do your tests and report back if you have real doubts |
Provide all the info: page link, what do you want to hide, eventually upload a screenshot indicating what do you want to hide, used filter, browser version |
My understanding was that this syntax was to be used only for procedural filters. I just tried it with ABP, and you are right, |
Can you open a new issue about this? I used regexes internally to parse procedural filters and I might have to move on parsing in a more reliable way without having to rely on regexes. |
@gorhil, I have a long-standing question, but I'm not sure, this is by design or I should also open issue about this:
etc. |
@Halibut80 Not supported. Open an issue if you wish, though I would work on this if I become convinced there is a real actual need in the wild rather than just a nice-to-have one. |
Well, i have some real case for this sort of rules, but they only for... hm, for personal easement (ughm, sorry, I don't have words to clear explain my phrase (my English is very bad)), and they also can be done with xpath, but last example looks like valid css selector and should work, or I'm wrong? |
The parser for procedural cosmetic filters does not expect trailing stuff past the last parenthesis, so that fails as well even if it's supposed to be a valid CSS4 selector. Really I just went with the simpler implementation at first for what was needed as per what was seen in the wild at the time. |
Ok, thank you. This is a very minor problem, and can be done in a different way, so I will not open a new bug and waste your time. |
No filter list maintainers will use |
part of |
part of |
The syntax is supported for advanced selectors, I don`t know why EasyList started to use it for "normal" |
@gorhill |
My mistake, I should have demanded reproducible steps. I can't answer if I can't reproduce exactly what you tried. |
well, I tested this morning (and works with / without |
Sorry, I missed that. |
@ololoe if your filter is exactly You need example.com#?#img |
working in FF 57 too |
yes, see above, working in FF 57 too + uBo (last dev build) |
|
Because it is an |
Add |
@ololoe I already answered you twice. Yes, it works, add the filter in "my filters". |
Right, I don't accept as a bug, because the workaround is: don't use |
Hello,
https://adblockplus.org/development-builds/new-syntax-for-advanced-element-hiding-rules
New filter
-abp-has
doesn't work on uBO.`
Test :
https://yggtorrent.com/torrent/filmvid%C3%A9o/s%C3%A9rie-tv/23187-game+of+thrones+s07e01+vostfr+1080p+web+h264-extreme+mkv
Filter :
yggtorrent.com#?#TR > TD > TABLE > TBODY > TR:-abp-has(A[href$="/go_vpn"])
Source :
https://forums.lanik.us/viewtopic.php?f=91&t=37526
Config :
Chrome + uBO + Default (+ Liste FR)
Thanks.
The text was updated successfully, but these errors were encountered: