Ublock: Filter for dynamically added class is not logged

Created on 5 Feb 2017  路  5Comments  路  Source: gorhill/uBlock

I want to hide these new Youtube annotations that appear at end of movie. UBO selector proposes ##.ytp-ce-element-show.ytp-ce-size-640.ytp-ce-bottom-right-quad.ytp-ce-video.ytp-ce-element, looks to specific to me, so I cut it to ##.ytp-ce-element-show. Works fine, but this filter did not appear in logger. Probably because is added dynamically when element is shown.

Where it appears:

https://youtu.be/s5RM81_6vC8?t=265 (annotation is show at 4:27)

image5
image6

Filter used

youtube.com##.ytp-ce-element-show

Not shown in logger

image7

Another filter is working fine

youtube.com##.ytp-ce-element

image8

Firefox 53, UBO 1.10.7rc4

All 5 comments

If you reload the page at a point where the overlay is visible, it shows in the logger: https://www.youtube.com/watch?v=s5RM81_6vC8&feature=youtu.be&t=270.

The issue is that with specific cosmetic filters, uBO will report only those which are found to match an element on the page, and at t=265 there is no match for that filter, while there is one at t=270.

Not sure at this point how I should fix this, not introducing overhead for when the logger is not in use has precedence over this glitch. Will need to think more about what can be done.

Is this the same bug?

Here http://www.blikmobile.pl/pytania-o-blika/ when you click on FAQ question, answers are unrolled and then hidden by ~kfcdostawa.pl,~allegro.pl,pl##.in from Adblock polskie reguly social

There may be small glitch (stopped when I try to find STR). Generic + specific filter may be reported twice and log shows both as generic or specific in details dialog. May depend on the order filters are added.

youtube.com##.ytp-ce-element-show
##.ytp-ce-element-show

https://youtu.be/lavy7qZ1aoo?t=195
https://youtu.be/lavy7qZ1aoo?t=180

I can reproduce when I restart uBO, on the first load of the Youtube page. Will fix.

Generic + specific filter may be reported twice

Just for the record, this issue is not a regression, it existed also before the changes here.

log shows both as generic or specific in details dialog

By design: for efficiency purpose, the logger will report at most one hit per list.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GSNord picture GSNord  路  3Comments

UnicornVariant picture UnicornVariant  路  3Comments

gorhill picture gorhill  路  4Comments

splattadat picture splattadat  路  4Comments

thebigsmileXD picture thebigsmileXD  路  3Comments