-
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
||*tube.com^ for youtube.com is not working #2663
Comments
I believe that this is intentional; the relevant regexes are That is, it strips the leading |
These are working:
|
That would change the meaning of the filter. The expected behavior is that the filter will be instanciated internally as a FilterGenericHnAnchored, however it's being classified as a pure hostname, which is wrong. I am investigating why this happens. |
Ok so The So it looks like it's just an oversight, given that I can't find any such filter in EasyList, EasyPrivacy, RU AdList, EasyList Germany, EasyList China (I stopped looking after this). |
Just to be sure there is no misunderstanding, uBO won't automatically anchor with |
Check in JPN: ABP Japanese filters (日本用フィルタ)
I was thinking about hosts-file-like plain domains. |
Yes, that list has 2 instances which were improperly categorized by uBO:
The others |
I agree, but I still thought it was intentional: I remember an earlier case where syntax was re-interpreted in a way that changed the meaning of filters and it was regarded as intentional (I believe it was later changed). |
@lewisje I was thinking about this, but cannot find this issue. Will be good to create wiki page with quirks like this. |
Unlike with ABP, |
Filter issues MUST NOT be reported here. Read first: https://github.com/gorhill/uBlock/blob/master/CONTRIBUTING.md
Describe the issue
I want to optimize a bit this filter list https://github.com/azet12/KAD by enclosing domains inside
||...^
to be sure domain filters match inside domain (in ABP - UBO does this by default I think).
Most of combinations works fine:
and
||you*.com^
!but not:
||*tube.com^
or
||*ww.youtube.com^
There is no match for
youtube.com
(www.youtube.com
) in UBO. ABP works fine.Example filter from filter list which I want to convert:
*pakiety-lte-5gb.blogspot.com
is working, but I think it may be bit slower in APB (will match in path?) and I want to make these domain filters consistent.Also, in path part of URL, UBO requires
*
to match word partially, but not here.One or more specific URLs where the issue occurs
http://www.spidersweb.pl/2017/05/nvidia-max-q-laptopy.html
Steps for anyone to reproduce the issue
Create filter
||*tube.com^
in my filtersOpen http://www.spidersweb.pl/2017/05/nvidia-max-q-laptopy.html
Youtube iframe is not blocked
Your settings
[If you fail to provide this info, I will mark the issue as invalid. Lists all settings which differs from default settings]
Your filter lists
default
Your custom filters (if any)
||*tube.com^
The text was updated successfully, but these errors were encountered: