uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.21k stars 777 forks source link

prem.link #6236

Closed ghajini closed 5 years ago

ghajini commented 5 years ago

URL(s) where the issue occurs

prem.link

Describe the issue

Antiadblock at end when trying to download a file....

STR

1.go to prem.link

  1. Login via credentials provided here (/your account ) http://bugmenot.com/view/prem.link
  2. Insert a file to download eg.in my case it is http://uppit.com/2fbisbx28krf
  3. follow all processes(like solving captcha,URL shortners) and when you arrive at final download page, antiadblock is triggered

Screenshot(s)

https://prnt.sc/p0t554

Versions

Settings

Notes

mapx- commented 5 years ago

on the last screen see in the logger what's blocked and post here (failing on your steps)

ghajini commented 5 years ago

A detailed STR is already given with login credentials

screenshot=

http://prnt.sc/p0tr46 http://prnt.sc/p0trjh

mapx- commented 5 years ago

test

@@||liveadexchanger.com^$script,domain=prem.link

ghajini commented 5 years ago

Works But why whitelist ad server

liamengland1 commented 5 years ago

To make it work...

ghajini commented 5 years ago

@uBlock-user any way other than whitelisting (May be I can add in custom userscript)

Script which is whitelisted http://www.liveadexchanger.com/a/display.php?r=1178444

mapx- commented 5 years ago

function SlZum5P3ENR3EgEQm(){var EnJpge2Y7x4Cdhdc0 = false;setTimeout(function(){var NkCvZ4nctd0JeEire = $("#img_new").find("iframe");if(NkCvZ4nctd0JeEire == null \|\| NkCvZ4nctd0JeEire == undefined \|\| NkCvZ4nctd0JeEire.attr("src") == undefined \|\| NkCvZ4nctd0JeEire.attr("src").indexOf("liveadexchanger.com") == false){$("#isashow").val(1); $("#F8TRiLKOB2nzZXpaN").modal({keyboard: false});}else{ getdlink();}}, 100);};

var waiting_time = 15;
            //var waiting_run = 15;
            function getdlink(){
                if(waiting_time > 0)
                {
                    $("#waiting_msg").show();
                    $(".btnSubmit").attr('disabled','disabled');
                    $(".btnSubmit").show();
                    waiting();
                    return false;
                }
                $.ajax({
                    url: $("#verify_captcha").attr("action"),
                    type: "POST",
                    dataType: 'json',
                    data: $("#verify_captcha").serialize(),
                    success: function (data) {
                        if(data != null)
                        {
                            if(data.status != undefined)
                            {
                                if(data.status == "error")
                                {
                                    alert(data.message);
                                    window.location.href = window.location.href;
                                }
                                else if(data.status == "login")
                                {
                                    window.location.href = data.url;
                                }
                                else if(data.status == "ok" && data.url != undefined)
                                {
                                    //$("#download_link").attr("href",data.url);
                                    $(".btnSubmit").fadeOut();
                                    $("#verify_captcha").fadeOut();
                                    $("#download_link").fadeIn();
                                    var downloadlink = data.url;
                                    $("#download_link").click(function(){
                                        location.href = downloadlink;
                                    });
                                }
                                else
                                    window.location.href = window.location.href;
                            }
                            else
                                window.location.href = window.location.href;
                        }
                        else
                            window.location.href = window.location.href;
                    },
                    error: function(){
                        window.location.href = window.location.href;
                    }
                });     
            }
            function waiting(){
                $(".btnSubmit").val("Your link is almost ready\n(" + waiting_time + ")");
                if(waiting_time > 0)
                    setTimeout(function(){waiting_time = waiting_time - 1; waiting()},1000);
                else
                    {
                        $(".btnSubmit").removeAttr("disabled");
                        $(".btnSubmit").val("Get link");
                        $(".btnSubmit").click(function(){
                            //alert("Check error");
                            getdlink();
                            return false;
                        });
                    }
            }

 etc etc

ghajini commented 5 years ago

Because of this I don't want to whitelist this adserver...... IMG_20190902_235729

mapx- commented 5 years ago

whitelisted only that specific script @@||liveadexchanger.com/a/display.php$script,domain=prem.link

uBlock-user commented 5 years ago
prem-link.js application/javascript
(() => { 
           'use strict';
       const insert_script = ev => {
                    if (ev) { window.removeEventListener(ev.type, insert_script, true); }
                    try {
                          const script = document.createElement("script");
                          script.setAttribute('type', 'text/javascript');
                          script.setAttribute('onload', 'getdlink();');
                          document.head.appendChild(script);
                    } catch (ex) { }
           };
       if ( document.readyState === 'interactive' || document.readyState === 'complete' ) {
            window.addEventListener('DOMContentLoaded', insert_script, true);
       } else {
            insert_script();
       }        
})();

Something like that should do, don't know if it will work..

ghajini commented 5 years ago

Ohk I made a gist and used raw ver ...copied .txt URL to userresource location under advance settings and added prem.link##+js(prem-link.js) in my filters But antiadblock still kicks in.....

Here is direct URL for repro if you can access it http://prem.link/dl.php?id=7221985