uBlockProtector icon indicating copy to clipboard operation
uBlockProtector copied to clipboard

flashx.tv (iframe of filmy.to)

Open xxcriticxx opened this issue 9 years ago • 94 comments

test link:

~~http://filmy.to/film/Pitbull_Niebezpieczne_kobiety-2016,19812~~ Update from jspenguin2017: The old test link is no longer working, this is the new test link: http://filmy.to/film/Podroz_na_Ksiezyc-1902,230933

capture

xxcriticxx avatar Apr 04 '17 00:04 xxcriticxx

OK, I'll have a look.

jspenguin2017 avatar Apr 04 '17 00:04 jspenguin2017

That's the iframe of flashx.tv

uBlock-user avatar Apr 04 '17 09:04 uBlock-user

an fyi flashx.tv is broken - https://github.com/uBlockOrigin/uAssets/issues/294

uBlock-user avatar Apr 04 '17 13:04 uBlock-user

I was wondering why the player isn't working yesterday... And I thought some filters broke it... So it's broken for everyone?

jspenguin2017 avatar Apr 04 '17 13:04 jspenguin2017

I don't know, my solution used to work, but the website is beyond broken now, as reported even after turning uBO off sometimes it won't work. The webmaster messed it up pretty badly. I gave up on this one.

uBlock-user avatar Apr 04 '17 13:04 uBlock-user

The link has gone 404, new test-case - https://www.flashx.tv/431e404f05071433e21fff787b174d61.jsp

uBlock-user avatar Apr 06 '17 13:04 uBlock-user

Try - a.noAccess("jQuery.adblock");

I can see the player now - https://i.gyazo.com/eadf7cfa96ec895504a690b4435a6809.png

uBlock-user avatar Apr 06 '17 14:04 uBlock-user

popups for still an issue though, even after blocking all scripts they're still induced.

uBlock-user avatar Apr 06 '17 14:04 uBlock-user

@X01X012013 Offtopic Q - Would you be interested in patching 100+ newspaper websites running the same anti adblock script if I present with the solution ?

uBlock-user avatar Apr 06 '17 14:04 uBlock-user

@uBlock-user Open a new issue, I'll have a look.

jspenguin2017 avatar Apr 06 '17 15:04 jspenguin2017

Also, I don't think a.noAccess can change jQuery on document-start, it will probably throw an error and do nothing.

jspenguin2017 avatar Apr 06 '17 15:04 jspenguin2017

That's the solution I have used from the beginning and has worked sometimes and sometimes not because the website is broken.

As luck would have it locking that variable is working today.

uBlock-user avatar Apr 06 '17 15:04 uBlock-user

If you run a.noAccess("jQuery.adblock"); on document-start, I am 99.99% sure that it will print an error in console (if in debug mode) and do nothing. The internal error that is caught is probably undefined is not an object or something. If it sometimes work sometimes don't, then it's something else.

jspenguin2017 avatar Apr 06 '17 15:04 jspenguin2017

it will print an error in console (if in debug mode) and do nothing

https://i.gyazo.com/31c2f8af1bdf73d9ac800648b0dbc2eb.png

Nothing of that sort, I set the level to verbose, warnings, errors and info still nothing's there.

Alright if I enable Debug Mode from the settings.html page

I see this in the console - AdBlock Protector failed to define non-accessible property jQuery.adblock!

So what's wrong ?

uBlock-user avatar Apr 06 '17 16:04 uBlock-user

This site is very nasty, it's blocking right click context menu, console(F12 has no effect) and runs a timer too.

uBlock-user avatar Apr 06 '17 16:04 uBlock-user

pl site or flashx?

xxcriticxx avatar Apr 06 '17 16:04 xxcriticxx

Short answer: It's a bit complex, if the part before . is not a built-in property, then it doesn't work.

Long answer: This is the implementation of a.noAccess: https://github.com/X01X012013/AdBlockProtector/blob/master/Script%20Compiler/Core.js#L644 a.noAccess will try to define a property to a.win["jQuery"], but that is undefined, which is not an object. a.win.Object.defineProperty only works on objects, so it throws an error which is internally caught by a.noAccess. Even if you define jQuery before calling a.noAccess, that would still not work, since the real jQuery will completely replace the jQuery that you defined. If you make jQuery not replaceable, then chances are the website would not work at all. So the jQuery you define must be a real jQuery, which is a bit tricky to get.

jspenguin2017 avatar Apr 06 '17 16:04 jspenguin2017

That should kill popups, timer and right click context menu script, see if it works as intended

if (a.domCmp(["flashx.tv"])) {
    a.readOnly("OpenInNewTab", function ( ) { });
    a.readOnly("countdown", function ( ) { });
    a.noAccess("r3D");
    a.win.eval = function ( ) { };
    a.filter("setTimeout", "countdown");
    a.filter("document.addEventListener", /^contextmenu$/);
}  

uBlock-user avatar Apr 09 '17 15:04 uBlock-user

a.filter only takes in RegExp as 2nd argument, passing string would crash the handler.

jspenguin2017 avatar Apr 09 '17 17:04 jspenguin2017

The original link is returning 404, I tried this link: http://filmy.to/film/Podroz_na_Ksiezyc-1902,230933 Popup is not killed, right click is working...

Notes for devs: view-source:https://www.flashx.tv/embed.php?c=497xzrf4805i

jspenguin2017 avatar Apr 09 '17 17:04 jspenguin2017