flashx.tv (iframe of filmy.to)
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
OK, I'll have a look.
That's the iframe of flashx.tv
an fyi flashx.tv is broken - https://github.com/uBlockOrigin/uAssets/issues/294
I was wondering why the player isn't working yesterday... And I thought some filters broke it... So it's broken for everyone?
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.
The link has gone 404, new test-case - https://www.flashx.tv/431e404f05071433e21fff787b174d61.jsp
Try - a.noAccess("jQuery.adblock");
I can see the player now - https://i.gyazo.com/eadf7cfa96ec895504a690b4435a6809.png
popups for still an issue though, even after blocking all scripts they're still induced.
@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 Open a new issue, I'll have a look.
Also, I don't think a.noAccess can change jQuery on document-start, it will probably throw an error and do nothing.
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.
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.
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 ?
This site is very nasty, it's blocking right click context menu, console(F12 has no effect) and runs a timer too.
pl site or flashx?
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.
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$/);
}
a.filter only takes in RegExp as 2nd argument, passing string would crash the handler.
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