NanoAdblocker / NanoFilters

Script snippets and filters
GNU General Public License v3.0
126 stars 28 forks source link

[Annoyance, Cookie Wall] sportowefakty.wp.pl, wirtualnemedia.pl #126

Open hawkeye116477 opened 6 years ago

hawkeye116477 commented 6 years ago

URLs where this issue occurs (Required)

https://sportowefakty.wp.pl/ms-2018/765111/mundial-2018-w-przerwie-meczu-w-markecie-neymar-caly-czas-obiektem-drwin http://www.wirtualnemedia.pl/artykul/truskawka-na-torcie-od-tomasza-hajto-z-polsatu-trafila-do-spotu-tvp-sport-wideo

Screenshots (Required)

Describe the issue (Optional if obvious)

Twitter Cookies Alerts in movies.

Reproduction Steps (Optional if trivial)

Just for example click on first movie on http://www.wirtualnemedia.pl/artykul/truskawka-na-torcie-od-tomasza-hajto-z-polsatu-trafila-do-spotu-tvp-sport-wideo and you will see cookie altert.

Anything else you believe to be useful (Optional)

https://github.com/MajkiIT/polish-ads-filter/issues/8309 https://github.com/MajkiIT/polish-ads-filter/issues/4338

Environment (Required)

Your filter lists (Required)

screenshot_20180710_113358

Your custom filters (Required if you have any)

jspenguin2017 commented 6 years ago

I can't reproduce this, tried France and UK VPN, I also cleared my cookies: image

jspenguin2017 commented 6 years ago

Tried Poland too, still nothing: image

hawkeye116477 commented 6 years ago

@jspenguin2017 Hmm, are you clicked on white triangle inscribed in a blue-white circle button?

hawkeye116477 commented 6 years ago

I guess that probably new resource is needed. I created that solution for my userscript:

    (new MutationObserver(check)).observe(document, {childList: true, subtree: true});

    function check(changes, observer) {
        if(document.querySelector('.twitter-tweet /deep/ .Interstitial')) {
            observer.disconnect();
            var cookieConsent = document.querySelectorAll('.twitter-tweet /deep/ .Interstitial'), i;
            for (i = 0; i < cookieConsent.length; ++i) {
                cookieConsent[i].remove();
            }
        }
    }

:smile:

jspenguin2017 commented 6 years ago

Does it have to be removed? Does cosmetic filters not work?

hawkeye116477 commented 6 years ago

@jspenguin2017 Cosmetic filter works, but then blur stays and I can't remove it with sportowefakty.wp.pl##.twitter-tweet /deep/ .MediaCard-mediaPlaceholder.is-backgrounded:style(filter: none !important;). That can be solved by using setAttribute, but then is another problem, click on play button not works. But if I remove element with Interstitial class, then everything is ok :smile:.

jspenguin2017 commented 6 years ago

No, I have third-party cookies enabled.

jspenguin2017 commented 6 years ago

Reproduced with Poland VPN. Yea, we'll need a new scriptlet, because the block screen doesn't come out before the frame finishes loading.

Honestly it's just one click, and you'll have to click the play button anyway, so I'm not too worried about this.