Skip to content

uBO on Chrome not blocking fox.com #772

Closed

Description

@dXtrmn8r

Replace the bracketed [...] placeholders with your own information.

URL(s) where the issue occurs

fox.com/watch/818529c3d72584486365f78ae851fa67/

Describe the issue

Ads are no longer blocked while using uBO

Screenshot(s)

image

Versions

  • Browser/version: Chrome 62.0.3202.62
  • uBlock Origin version: 1.14.12

Settings

  • added uBlock Protector List, EasyList, Adblock Warning Removal List and the following filters:

@@||fox.com^$elemhide
@@||fxnetworks.com^$elemhide
@@||simpsonsworld.com^$elemhide
@@||adm.fwmrm.net/p/fox_live/*
@@||player.foxdcg.com^$xmlhttprequest,domain=fox.com|fxnetworks.com

Notes

Only blocked uplynk.com on uBO, not working.

Activity

  1. mapx- commented on Dec 14, 2017

    @mapx-
    Contributor

    probably nothing to do
    see https://help.aolonnetwork.com/hc/en-us/articles/215852983-How-to-Setup-Server-Side-Ad-Insertion-with-UpLynk-Overview-

    https://www.reddit.com/r/uBlockOrigin/comments/5fn9c7/serverside_ad_insertion_and_ad_blockers/

  2. mncraig commented on Dec 14, 2017

    @mncraig

    Please leave this issue open until a definitive solution has been found

  3. jspenguin2017 commented on Dec 15, 2017

    @jspenguin2017
    Contributor

    Hold on, the player does know when it is playing an ad, it is going to be possible to skip the ads, although the difficulty can be quite high as deep patching player might be required.

  4. jspenguin2017 commented on Dec 15, 2017

    @jspenguin2017
    Contributor

    I can see the ads request, it's an XHR, but somehow I can't hook onto it with a.loopbackXHR. I can hard code a rule in extension background page but then it only works for one page.

    There are a couple websites that are using the same nasty trick to get around my a.loopbackXHR, I tried everything, still couldn't figure out where the request comes from. DevTools says initiated by other...

  5. jspenguin2017 commented on Dec 24, 2017

    @jspenguin2017
    Contributor

    OK, I did some in depth analysis, @mapx- is right that the ads are in the stream, but theoretically, we can still skip them, as we know when the ads play as well.
    However, it is horrifyingly hard to properly implement a system that is able to do that, more on this later.

    On Firefox only, Nano Defender will force the player to show the progress bar even when playing ads, allowing you to drag it and bypass the ads. But by the time you found when the ads end, you'd already finish watching it... It might help a tiny bit, but not much.
    I tried everything on Chromium and I just can't touch that request. I don't know what black magic they are using, I just can't hook onto that XHR.

    image

    Under the hood: Nano Defender will intercept the video request and strip ads placement info, then, optionally, log them in the background page console for inspection. We have the necessary information to bypass the ads, but how to use what we know to our advantage is a whole other story. Probably have to pass the stripped info back to the content script of the tab, then pass to page script though a magic event then control the player through a handler in the page script. Have fun implementing that, I'm out... for now.

    I really don't know what's wrong with Chromium, is that some new generation anti-extension exploit? I've been scratching my head for like 2 months now.

    Feel free to close if you don't want to spend any more time on this nonsense... I'll see what I can do on Nano Defender side later, I'll go take a break now.

  6. jspenguin2017 commented on Dec 24, 2017

    @jspenguin2017
    Contributor

    The code

    if (a.isFirefox) {
        {
            //https://github.com/jspenguin2017/uBlockProtector/issues/660
            a.dynamicServer(
                [
                    "*://*.uplynk.com/preplay/*",
                ],
                [
                    "xmlhttprequest",
                ],
                (details) => {
                    let payload = "";
    
                    let filter = browser.webRequest.filterResponseData(details.requestId);
                    let decoder = new TextDecoder("utf-8");
                    let encoder = new TextEncoder();
    
                    filter.ondata = (e) => {
                        payload += decoder.decode(e.data, { stream: true });
                    };
                    filter.onstop = () => {
                        try {
                            payload = JSON.parse(payload);
                        } catch (err) {
                            filter.write(encoder.encode(payload));
                            filter.disconnect();
                            return;
                        }
    
                        //@pragma-if-debug
                        if (a.debugMode) {
                            console.log(payload.ads);
                        }
                        //@pragma-end-if
    
                        payload.ads = {
                            breakOffsets: [],
                            breaks: [],
                            placeholderOffsets: [],
                        };
    
                        filter.write(encoder.encode(JSON.stringify(payload)));
                        filter.disconnect();
                    };
                },
                [
                    "fox.com",
                ],
                true,
            );
        }
    }
  7. ghajini commented on May 22, 2018

    @ghajini
    Collaborator

    abp dev version fix confirmed to be working...
    geolock-usa
    @mapx-
    make label geolock-usa for reference

  8. jspenguin2017 commented on May 22, 2018

    @jspenguin2017
    Contributor

    Huh, how they fixed it? Link the commit?

  9. ghajini commented on May 22, 2018

    @ghajini
    Collaborator

    https://github.com/uBlockOrigin/uBlock-issues/issues/46

    Used abp dev version
    And filters

    ||content.uplynk.com/api/v3/preplay/*
    /(content.uplynk.com\/ext\/.*\.m3u8)\?.*$/$rewrite=$1
    
  10. jspenguin2017 commented on May 22, 2018

    @jspenguin2017
    Contributor

    Are you sure that works? I don't see requests for them:
    image

  11. ghajini commented on May 23, 2018

    @ghajini
    Collaborator

    @jspenguin2017
    i tried 2 things

    1. ubo default+ubo extra= ADS seen

    2.ubo + nano defender= ads seen

    they seem fire ads through x-live-fox-stgec.uplynk.com as per ublock logger, i guess because content is also from the same

  12. jspenguin2017 commented on May 23, 2018

    @jspenguin2017
    Contributor

    Have you tried ND in debug mode? Also which exact rules does ABP use? The rules you've shown clearly do not work.

  13. okiehsch commented on Jun 3, 2018

    @okiehsch
    Contributor

    #1905

    For all websites using SSAI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions