jspenguin2017 / uBlockProtector

An anti-adblock defuser for Nano Adblocker and uBlock Origin
GNU General Public License v3.0
740 stars 83 forks source link

play.tv3.lt #267

Closed Vartotojas1234 closed 7 years ago

Vartotojas1234 commented 7 years ago

http://play.tv3.lt/programos/detektyve-klara/847664?autostart=true

image

uBlock-user commented 7 years ago

FF is not part of supported setup and neither is GreaseMonkey.

ale5000-git commented 7 years ago

It does happen also on Chrome, but I'm not sure that the problem can be resolved since it say "Atsisiųskite mūsų nemokamą programėle, kad galėtumėte peržiūrėti šį video" (translation: "Download our free app to view this video").

EDIT: Apparently after watching the ads it allow to see the video witohut the app.

uBlock-user commented 7 years ago

It flat out says "Download our free app to view this video" so I haven't bothered to look any further.

jspenguin2017 commented 7 years ago

@uBlock-user It doesn't say that when uBO is off.

jspenguin2017 commented 7 years ago

Your setup is broken in every possible way, but it happens to be reproducible on the standard setup, so I assume you know what you are doing, but this is still a warning, don't post screenshots like that.

uBlock-user commented 7 years ago

@jspenguin2017 Do you browse with uBO off ? I don't. It does check for something, but there are no visible signs of detection. This appears more like broken.

uBlock-user commented 7 years ago

This is the only script that has signs of Anti adblock code - http://cdn.playstatic.mtgx.tv/static/js/main-w-avod-player/main-w-avod-player.js?v=3.52

So it's the embedded player.

jspenguin2017 commented 7 years ago

@uBlock-user I don't neither, but I do when I need to test something. image

uBlock-user commented 7 years ago

Well If I ever turn uBO off, my browser will be raped and I have experienced it first hand. Also websites behave very differently without the presence of any kind of network/content blocker, so I always keep it on.

jspenguin2017 commented 7 years ago

@uBlock-user Yea, it can happen. Depending on the site. I know the way my browser work and I can distinguish baits from real prompts, so I can get out of malvertizing sites. I'm definitely not recommending you to do it, and I can fully understand your concerns, but to properly debug things, sometimes I have to do that.

jspenguin2017 commented 7 years ago

I think I know how it works now:

It loads http://playapi.mtgx.tv/v3/videos/stream/847664, which contains the media file link: https://tv3-vod.data.lt/tv3vod/video/video/smil:/SMIL_ACQ/2017/2017_05/20364103/20364103.smil/playlist.m3u8.

Then it tries to load https://playapi.mtgx.tv/v3/adinfo?video=847664&adPlatform=FreeWheel&platform=html5&referer=&clientPlatform=pc, which contains the line "ab_allowed":false,, I bet if I flip it to true it would work... Except that I don't really have a way to change it.

jspenguin2017 commented 7 years ago

Eh... I just found out that we failed pretty hard on this domain... image

jspenguin2017 commented 7 years ago

I don't think I can fix this one... I can find the source, just can't quite play that file. Maybe it is possible to fix with Violentproxy.

uBlock-user commented 7 years ago

failed pretty hard

How did we ? Did we miss something ?

and what's ViolentProxy exactly ?

jspenguin2017 commented 7 years ago

https://github.com/jspenguin2017/uBlockProtector/issues/110#issuecomment-292396290 https://github.com/brave/browser-laptop/issues/8999 Looks like Brave browser didn't fix it yet...

jspenguin2017 commented 7 years ago

@uBlock-user currently, we are fighting anti-adblock code with even more code, Violentproxy is an experiment where I will remove anti-adblock code directly instead of fighting them. Project page: https://github.com/Violentproxy/Violentproxy

uBlock-user commented 7 years ago

Easylist has some whitelisted filters for viafree if you want to try that - https://forums.lanik.us/viewtopic.php?f=62&t=32175&p=107099&hilit=viafree.se#p107099

uBlock-user commented 7 years ago

Yeah I saw that repo, but how are you using it via uBlockProtector Script ?

jspenguin2017 commented 7 years ago

@uBlock-user I'll have a "Serverscript" that uses Violentengine API to patch requests and responses. I'll be a standalone solution system.

jspenguin2017 commented 7 years ago

@uBlock-user Doesn't seem to work. image

uBlock-user commented 7 years ago

Yeah consider them outdated, they were posted back in Nov 2016.

uBlock-user commented 7 years ago

So we will have to install VP separately as another script ?

jspenguin2017 commented 7 years ago

@uBlock-user No, Violentproxy is going to be a server. It runs in Node.js, independent of the browser. You would also need to install a root certificate as I will have to re-sign certificates to inspect and replace content. I know it's probably not what most people want, it's just theory phase.

uBlock-user commented 7 years ago

@jspenguin2017 I'm okay, I like to keep an open mind to such new things.

ghajini commented 7 years ago

We can take help of @okiehsch or @gorhill to resolve these issues https://github.com/jspenguin2017/uBlockProtector/blob/master/Notes/No%20Solution.MD If you don't mind@jspenguin2017

okiehsch commented 7 years ago

Looks like the site uses brightcove and stream-stitching. I don't think there is a way, to circumvent the pre-roll ads. To watch the video the bare minimum exceptions are

@@||playapi.mtgx.tv/v3/adinfo$xmlhttprequest,domain=play.tv3.lt
@@||mssl.fwmrm.net/p/MTG_Brightcove_HTML5/AdManager.js$script,domain=play.tv3.lt
@@||fwmrm.net/ad$script,domain=play.tv3.lt

as far as I can see.

jspenguin2017 commented 7 years ago

@okiehsch OK, thanks, I won't add anything that would allow ads in, if an user is desperate enough, he can use your workaround. I don't think the ads are baked into the stream on the server side, because you can't control the progress bar when ads are playing, so the player knows when it's ads and when it's not. If done right, I think it would be possible to patch this with some complex Userscript. But so far, I have no luck, I can grab the m3u8 playlist, but that's it, I couldn't find a way to use the playlist...

uBlock-user commented 7 years ago

@jspenguin2017 Why not replace the entire player then ?

ale5000-git commented 7 years ago

If the format is supported, maybe using the HTML5 Video tag.

jspenguin2017 commented 7 years ago

@uBlock-user That's what I'm doing, but I can't parse the media file.

@ale5000-git I obviously already tried that...

jspenguin2017 commented 7 years ago

Hi guys, I received help privately, and I have a fix for it now 😄 image

ghajini commented 7 years ago

Will it work on all listed no solution sites....That will be great

jspenguin2017 commented 7 years ago

@ghajini Keep in mind that GeoLock will not be bypassed, only the anti-adblock.

jspenguin2017 commented 7 years ago

These domains should be fixed: ["viafree.no", "viafree.dk", "viafree.se", "tvplay.skaties.lv", "play.tv3.lt", "tv3play.tv3.ee"]

ghajini commented 7 years ago

That's good....I can pass geolock with vpn.... Make your fix invisible to internet probably.?..😆

jspenguin2017 commented 7 years ago

@ghajini The discussion is in one confidential issue in my GitLab repository, the code is still out there, it's still public. I think I can fix one more, but the last one is probably not going to work with the new technique.

jspenguin2017 commented 7 years ago

Still works, closing.