reek / anti-adblock-killer

Anti-Adblock Killer helps you keep your Ad-Blocker active, when you visit a website and it asks you to disable.
http://reek.github.io/anti-adblock-killer/
Other
6k stars 761 forks source link

vivo.sx #4382

Open Bonsailinse opened 4 years ago

Bonsailinse commented 4 years ago

Vivo updated their script to detect adblockers.

The site loads assets/scripts/page.js where it executes

if(Options.restricting&&Core.FilterPresent()){
    $('#player').replaceWith('<div class="jumbotron denied text-center"><i class="fa fa-low-vision"></i><h1 style="line-height:40px">The owner of this file does not allow streaming with an Ad Blocker enabled.<br />Deactivate your Ad Blocker and <a href="#" style="font-weight:500;text-decoration:underline dotted" onclick="window.location.reload();return false">Try it again.</a></h1></div>');
}else{
    const Player=new Plyr('#player',{ratio:'16:9',controls:['play-large','rewind','play','progress','current-time','duration','mute','volume','airplay','googlecast','settings','fullscreen','logo'],fullscreen:{iosNative:true},iconUrl:STATIC_DOMAIN+'/fonts/player.svg',ads:{enabled:true,tagUrl:Core.Normalize(Options.preroll)}});Player.on('playing play',function(){if($(this).data('once')!==true){$(this).data('once',true);if(!Core.FilterPresent()&&!navigator.webdriver){$.ajax({type:'POST',url:'/request',data:{action:'click',hash:Options.id}});}}});Player.source={type:'video',sources:[{src:Core.Normalize(Options.source),type:'video/mp4',size:Options.quality}]};
}

to stop videos from loading. Sadly I'm not good in writing scripts, so I hope I could still help here.

Thanks for your great work! Keep going!

liamengland1 commented 4 years ago

The project is abandoned.

amidevous commented 4 years ago

what project and give up?

Bonsailinse commented 4 years ago

Yeah saw that after posting the issue and hoped someone in here would know, how to implement that rule.

liamengland1 commented 4 years ago

Try with ublock origin on default settings, if issue still persists file an issue report on https://github.com/uBlockOrigin/uAssets

Bonsailinse commented 4 years ago

If my adblocker would have solved the problem I wouldn't be here, looking for a solution ;) Will see if I file an issue there though, thanks.

janphkre commented 3 years ago

Even if this issue does not concern this project, i encountered this issue while looking for a solution as well. As I did not find a solution to it as well I wrotethis short greasemonkey script based on the code you pointed out, which disables the Anti-AdBlocker of vivo.sx: https://gist.github.com/janphkre/5c190330c1f6c972acef5da424d09c26