NanoAdblocker / NanoFilters

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

[Ads, Anti-adblock] hatde.tv #485

Closed thuanan7 closed 4 years ago

thuanan7 commented 4 years ago

https://hatde.tv/phim/extraction-tyler-rake-nhiem-vu-giai-cuu-100018

Screenshots (Required)

Screenshot (67)

Screenshot of console (Required, press F12 to open the console)

Annotation 2020-04-26 223248

Describe the issue (Optional if obvious)

adblock detection when play video.

Reproduction Steps (Optional if trivial)

Anything else you believe to be useful (Optional)

Environment (Required)

Your filter lists (Required)

Annotation 2020-04-26 223729

Your custom filters (Required if you have any)

Your other extensions (Required if you have any)

jspenguin2017 commented 4 years ago

@okiehsch Anti-adblock on default + regional. Also popup on first click of the captcha.

okiehsch commented 4 years ago

Site does not work on my end. I don't get any working video. I don't even get a captcha. image

liamengland1 commented 4 years ago

Lol, I get this: image (using google translate below) image

okiehsch commented 4 years ago

Does the site work after you answer the questions?

liamengland1 commented 4 years ago

No, there is anti-adblock, done with this inline script on https://playhydrax.com/?v=OUDt7QVZmW:

    function createScript(e) {
        var t = document.getElementById("player")
          , n = document.createElement("script");
        n.src = e,
        t.appendChild(n)
    }
    function setCookie(e, t, n) {
        var o = new Date;
        o.setTime(o.getTime() + n);
        var r = "expires=" + o.toUTCString();
        document.cookie = e + "=" + t + ";" + r + ";path=/"
    }
    function getCookie(e) {
        for (var t = e + "=", n = document.cookie.split(";"), o = 0; o < n.length; o++) {
            for (var r = n[o]; " " == r.charAt(0); )
                r = r.substring(1);
            if (0 == r.indexOf(t))
                return r.substring(t.length, r.length)
        }
        return ""
    }
    var isClick = !1
      , isBreak = !1
      , listUrl = ["https://unreshiramor.com/4/3239564/"]
      , styleMinion = "width:100%;height:100% !important;background: url(https://iamcdn.net/img/block2.jpg) center center no-repeat;background-size:contain;position:absolute"
      , over = Number(getCookie("over")) || 0;
    isBreak && (createScript("https://iamcdn.net/players/adeet.min.js"),
    isClick = !0,
    $("#over").remove()(function(e, t, n, o, r, i) {
        o.src = "//" + e + "/tag.min.js",
        n.open("GET", "//" + e + "/apu.php?zoneid=" + t + "&oo=1", !0),
        o.onerror = n.onerror = function() {
            r && r(),
            r = null
        }
        ,
        o.onload = n.onload = function() {
            (i = this.response ? JSON.parse(this.response) : i) && window.kkp4a5x5tv && window.kkp4a5x5tv(i)
        }
        ,
        n.send(),
        (document.body || document.documentElement).appendChild(o)
    })("contehos.com", 3239564, new XMLHttpRequest, document.createElement("script"), _uxojz)),
    $(document).ready(function() {
        $("#over").click(function() {
            html2canvas($("#player"), {
                onrendered: function(e) {
                    isClick = !0;
                    var t = window.open(listUrl[0]);
                    t ? ($("#over").remove(),
                    setTimeout(()=>{
                        createScript("https://iamcdn.net/players/adeet.min.js")(function(e, t, n, o, r, i) {
                            o.src = "//" + e + "/tag.min.js",
                            n.open("GET", "//" + e + "/apu.php?zoneid=" + t + "&oo=1", !0),
                            o.onerror = n.onerror = function() {
                                r && r(),
                                r = null
                            }
                            ,
                            o.onload = n.onload = function() {
                                (i = this.response ? JSON.parse(this.response) : i) && window.kkp4a5x5tv && window.kkp4a5x5tv(i)
                            }
                            ,
                            n.send(),
                            (document.body || document.documentElement).appendChild(o)
                        })("contehos.com", 3239564, new XMLHttpRequest, document.createElement("script"), _uxojz)
                    }
                    , 100),
                    setCookie("over", over + 1, 36e5)) : ("undefined" != typeof jwplayer && jwplayer && jwplayer().remove(),
                    $("#player").css("cssText", styleMinion).html("")),
                    t.focus()
                }
            })
        }),
        setTimeout(function() {
            if (!isClick) {
                try {
                    "undefined" != typeof jwplayer && jwplayer && jwplayer().remove()
                } catch (e) {}
                $("#player").css("cssText", styleMinion).html("")
            }
        }, 12e4)
    }),
    setTimeout(function() {
        if ("undefined" == typeof ADS || "undefined" == typeof html2canvas) {
            try {
                "undefined" != typeof jwplayer && jwplayer && jwplayer().remove()
            } catch (e) {}
            $("#player").css("cssText", styleMinion).html("")
        }
    }, 5e3);

Also:

Evil looking script https://dimfarlow.com/rsbzzlq7oG5Dh1/20102 gives popups. Block with ||dimfarlow.com^$3p.

Tracking (?):

||events.hatde.tv^
||events.vungtv.net^

Also debugger trap.

okiehsch commented 4 years ago

I just did a commit that included playhydrax https://github.com/uBlockOrigin/uAssets/commit/c377bbfd34a81cd9595b31df86c61ee36f3358ca Does it work if you update uBO-filters?

liamengland1 commented 4 years ago

Yeah, it works (no anti-adblock).

okiehsch commented 4 years ago

hatde.tv##+js(aeld, click, preventDefault) disables the popup. I don't know about the websocket requests. I don't get any debugger trap. is it tied to playhydrax?

liamengland1 commented 4 years ago

Yeah, through playhydrax.

okiehsch commented 4 years ago

Fixed.