tomasko126 / easylistczechandslovak

EasyList Czech and Slovak is an official filter list for uBlock Origin, AdBlock, Adblock Plus and other ad blockers out there.
https://adblock.sk
Creative Commons Attribution Share Alike 4.0 International
97 stars 60 forks source link

novinky regex url filters #366

Closed katry0 closed 10 months ago

katry0 commented 1 year ago

Created url regex filters to block banners on novinky.cz and element filter for ublock

addisr commented 1 year ago

Not seeing this. Have you tried clearing cookies?

MikeRosoft commented 1 year ago

I am seeing this (but I haven't tried clearing the cookies). See https://github.com/tomasko126/easylistczechandslovak/issues/368 . (I see that the frame URLs are obfuscated and insert an underscore in the URL; but the filters probably block the scripts so that the frames aren't created in the first place.)

katry0 commented 1 year ago

After clearing cookies banners disappeared in firefox (my primary browser) but still visible in chromium. I think its test of new Seznam anti ad-blocker technology activated only for some users.

henckellbach commented 1 year ago

FYI this also does the job since the iframes always seem to have a url containing strings such as skli_k, skl_ik etc.

/novinky.cz\/[^\/]+\/[^\/]+[skli_]+\/.*/
MikeRosoft commented 1 year ago

[skli_]+ would block any appearance of the character s, k, l, i, or _ in that part of URL!

MikeRosoft commented 1 year ago

Right now I am blocking the following:

www.novinky.cz##a[href*='utm_medium%3Dbranding']
www.novinky.cz##.ogm-advert-static
www.novinky.cz##[data-dot='advert-item']
www.novinky.cz##[data-dot='mol-document-link-advert']
www.novinky.cz##[class*='AdPauseScreen']
www.novinky.cz##[class*='AdCommercialMessageFrame']
||www.novinky.cz/*sklik/*
||www.novinky.cz/*s_klik/*
||www.novinky.cz/*sk_lik/*
||www.novinky.cz/*skl_ik/*
||www.novinky.cz/*skli_k/*
||www.novinky.cz/*sklik_/*
||www.novinky.cz/*AdServer/*
||www.novinky.cz/*AdServe_r/*
||www.novinky.cz/*AdServ_er/*
||www.novinky.cz/*AdSer_ver/*
||www.novinky.cz/*AdSer_ver/*
||www.novinky.cz/*AdSe_rver/*
||www.novinky.cz/*AdS_erver/*
||www.novinky.cz/*Ad_Server/*
||www.novinky.cz/*A_dServer/*
||www.novinky.cz/*click_thru/*
||www.novinky.cz/*/onegar/*$subdocument
||www.novinky.cz/*Bannery_PC%26utm_content*$subdocument

Not sure if all these filters are needed. The filter ||www.novinky.cz/*AdServ_er/* seems to block the video advert which occasionally appears before the news video. I have also blocked ||www.novinky.cz/*click_thru/* in an attempt to block the video pause advert, not sure if this works, but to be sure I also blocked the actual advert elements: www.novinky.cz##[class*='AdPauseScreen'] and www.novinky.cz##[class*='AdCommercialMessageFrame'].

MikeRosoft commented 1 year ago

And now I am getting adverts before news videos; neither my filters above, nor the proposed ones in the pull request work. https://www.novinky.cz/clanek/cestovani-zname-sochy-moai-na-velikonocnim-ostrove-poskodil-pozar-40410910

MikeRosoft commented 1 year ago

I have reset the site cookies; right now I am not getting adverts.

sebm253 commented 10 months ago

hi, since this PR is well over a year old now, I'll be marking it as stale and closing it. if this still requires attention, feel free to make a new issue/PR :-)