gorhill / uBlock

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
GNU General Public License v3.0
47.33k stars 3.14k forks source link

Animmex at it again #2520

Closed SuitYourself closed 7 years ago

SuitYourself commented 7 years ago

animmex https://www.animmex.tv/video/40920/prison-break-s05e01-ogygia

Just posting in case you weren't aware, if you are or if the unreleased RC versions already address, please ignore.

When clicking the play button, Animmex opens another window for a split second then closes it, then displays the adblock screen within the video screen area.

Win 7 64bit Latest Chrome: 58.0.3000.4 uBlock version: uBlock Origin v1.11.4

mapx- commented 7 years ago

try

@@/^((?!wwwpromoter.com|cpmstar|mgid.com|popads|cmpstar.com|oclasrv.com|onclickads.net|.js|onclkds).)*$/$script,third-party,domain=finalservers.net
@@/^((?!wwwpromoter.com|cpmstar|mgid.com|popads|cmpstar.com|oclasrv.com|onclickads.net|.js|onclkds).)*$/$script,third-party,domain=animmex.tv
@@|https://$image,domain=animmex.tv|finalservers.net,third-party
SuitYourself commented 7 years ago

Thanks mapx!

Works like a charm. Still get a blank tab open then close for a split second, but other than that, all perfect!

<3

uBlock-user commented 7 years ago

Already opened here - https://github.com/uBlockOrigin/uAssets/issues/144

Remove those three white-listing filters and add this - ||finalservers.net$inline-script

gorhill commented 7 years ago

add this - ||finalservers.net$inline-script

The video won't start with this.

gorhill commented 7 years ago

The problem here is that uBO's bab-defuser.js scriptlet does not work because the blockadblock inline script is placed at the top of the page, so it executes before uBO can inject the defuser.

I will have to look for a solution for this, I need to experiment -- that will be a future version.

uBlock-user commented 7 years ago

The video won't start with this.

I suggested that based on the filter you added in uBlockOrigin/uAssets#144 - ||4553t5pugtt1qslvsnmpc0tpfz5fo.xyz$inline-script

They did a domain swap, rest is all the same.

uBlock-user commented 7 years ago

because the blockadblock inline script is placed at the top of the page

Ah! So basically a race condition is preventing the execution of the filter ?

gorhill commented 7 years ago

Yes, the roundtrip content script => main process => content script causes enough delay that when uBO's content script finally inject the scriptlet, the blockadblock code has already executed. I have been pondering various solutions, this will require experimentation.

SuitYourself commented 7 years ago

I managed to screen shot what it was loading up for a split second, not sure if it is of any help. image1

SuitYourself commented 7 years ago

ad.directrev.com amx.cdn-r2. amx-assets-1.*

Also seen these popping up - unsure if they are of any use to you guys.

SuitYourself commented 7 years ago

Dunno much about this coding stuff for this uBlock, but does anything like this work?

.##script:inject(bab-defuser.js)

or

blockadblock.com##script:inject(bab-defuser.js)

gorhill commented 7 years ago

Closing and marking as invalid, as per CONTRIBUTING.

I hadn't realized this was not uAsset here yesterday. Filter issues must not be filed here.