AdguardTeam / AdguardFilters

AdGuard Content Blocking Filters
https://adguard.com/
GNU General Public License v3.0
3.23k stars 639 forks source link

infostart.hu #139139

Closed adguard-bot closed 1 year ago

adguard-bot commented 1 year ago

Issue URL (Incorrect Blocking)

https://infostart.hu/bunugyek/2022/12/25/jol-szitualt-csaladok-gyerekei-tortek-zuztak-jozsefvarosban

Comment

Video's play button doesnt disappear when AdGuard is on. Video is hosted on RTL, not this site.

Screenshots

Screenshot 1 ![Screenshot 1](https://reports-img.adguard.com/GIm57H7.jpg)
Screenshot 2 ![Screenshot 2](https://reports-img.adguard.com/Mgc5JZ7.jpg)

System configuration

Information value
Platform: Android 13
AdGuard product: AdGuard for Android v3.6.10+(51)
Browser: Chrome
AdGuard mode: VPN
Filtering quality: High-quality
HTTPS filtering: enabled
Stealth mode: disabled
DNS filtering: server: https://unfiltered.adguard-dns.com/dns-query
filters: https://filters.adtidy.org/android/filters/15_optimized.txt
Filters: Ad Blocking:
AdGuard Mobile Ads,
AdGuard Base

Annoyances:
AdGuard Annoyances

Language-specific:
Hungarian
Userscripts: https://userscripts.adtidy.org/release/popup-blocker/2.5/popupblocker.meta.js,
https://userscripts.adtidy.org/release/disable-amp/1.0/disable-amp.meta.js,
https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.meta.js
scripthunter7 commented 1 year ago

Please change title to embed.rtl.hu, since the real problematic URL is https://embed.rtl.hu/embed/2021569?autoplay=0 not infostart.hu

embed.rtl.hu#%#//scriptlet('set-constant', 'gemiusStream', 'emptyObj')
embed.rtl.hu#%#//scriptlet('set-constant', 'gemiusStream.event', 'noopFunc')

works for me.

The problem: when you click on play, in https://embed.rtl.hu/js/video-handler.min.js the play function throws an error, since gemiusStream is not defined, and it breaks the function at this point, so it doesn't hides the controls. See:

this._play = function() {
    if (!_instance._videoPlayed) {
        _instance._videoPlayed = true
    }
    if (0 < _instance._prevPosition) {
        _instance._player.currentTime(_instance._prevPosition);
        _instance._prevPosition = 0
    }

    // ! ISSUE: gemiusStream is not defined
    gemiusStream.event(_instance._config.gemius.gemiusStream.playerId, _instance._config.gemius.gemiusStream.materialIdentifier, _instance._currentPosition, "playing");

    if (_instance._gemiusPlayer) {
        _instance._gemiusPlayer.programEvent(_instance._config.contentId, _instance._currentPosition, "play")
    }

    // Hide controls here
    $(_instance._player.el()).closest(".player").find(".player__overlay").fadeOut(200);
    _instance._requestRelatedVideos();
    _instance._removeRelatedVideos();
    let $bigPlayButton = $(_instance._player.bigPlayButton.el());
    $bigPlayButton.parents(".player__overlay:first").hide();
    _instance._log("::Event: play");
    _instance._log("::::currentPosition: " + _instance._currentPosition)
}
Alex-302 commented 1 year ago

URL is correct. embed.rtl.hu is address of the player.