From 78f61117f52e9e52f1b3782027ee4a65b7abc678 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Tue, 25 Oct 2016 23:00:26 -0400 Subject: [PATCH] Unbreak CNET video MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To get images working on cnet: https://tags.tiqcdn.com/utag/cbsi/cnetglobalsite/prod/utag.js’ (Used for both promotion and non promotion based images) This was fixed simply by upgrading the TP definition list, the new one didn't contain it anymore. We also added an exception here for this for cnet for now.. To get videos working on cnet: 'https://tags.tiqcdn.com/utag/cbsi/cnetglobalsite/prod/utag.js', 'https://s0.2mdn.net/instream/html5/ima3.js’, For the new URL 2mdn.net we added an exception in the TP lib for this on cnet. Fix #38 --- test/data/brave-unbreak.txt | 2 ++ test/parser-test.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/data/brave-unbreak.txt b/test/data/brave-unbreak.txt index e282ec5..20a0e59 100644 --- a/test/data/brave-unbreak.txt +++ b/test/data/brave-unbreak.txt @@ -3,3 +3,5 @@ @@||adm.fwmrm.net^*/AdManager.js$domain=msnbc.com|sky.com|cnbc.com ||novately.com^$third-party ||webspectator.com^$third-party +! Would be nice to find an alt fix, but unbreaks cnet video +@@||tags.tiqcdn.com/utag/*/utag.js$domain=cnet.com diff --git a/test/parser-test.cpp b/test/parser-test.cpp index e9d9439..06fec6c 100644 --- a/test/parser-test.cpp +++ b/test/parser-test.cpp @@ -568,7 +568,7 @@ struct ListCounts { ListCounts easyList = { 21437, 30166, 4602 }; ListCounts ublockUnbreak = { 4, 8, 95 }; -ListCounts braveUnbreak = { 3, 0, 2 }; +ListCounts braveUnbreak = { 3, 0, 3 }; ListCounts disconnectSimpleMalware = { 2911, 0, 0 }; ListCounts spam404MainBlacklist = { 5464, 169, 0 };