From 366fb08a17b8fcefb16f7ea885e9aa7f98255291 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 6 Dec 2015 10:37:52 -0500 Subject: [PATCH] this unbreaks video playback for www.tv2.no --- assets/checksums.txt | 4 ++-- assets/ublock/redirect-resources.txt | 13 +++++++++++-- assets/ublock/unbreak.txt | 3 +++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/assets/checksums.txt b/assets/checksums.txt index beb9543c3..94af6b15b 100644 --- a/assets/checksums.txt +++ b/assets/checksums.txt @@ -1,5 +1,5 @@ -363904dff57e330919eada2e0e793a79 assets/ublock/unbreak.txt -c91286a3e6dc3136bc6e078d5c0db4d0 assets/ublock/redirect-resources.txt +9e647d2878ccdca91e933b32083bfe19 assets/ublock/unbreak.txt +f1a6a004169c8a1a090ba2591f20cb5b assets/ublock/redirect-resources.txt 6c077d6d5b39e8a5a407966ad62c9c32 assets/ublock/privacy.txt ccbd90cec2231b6c5edf545b63d462ff assets/ublock/filters.txt 146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt diff --git a/assets/ublock/redirect-resources.txt b/assets/ublock/redirect-resources.txt index 671bd83b0..a090137c6 100644 --- a/assets/ublock/redirect-resources.txt +++ b/assets/ublock/redirect-resources.txt @@ -84,10 +84,18 @@ www.google-analytics.com/ga.js application/javascript ; }; // - var gaq = function() { + var Gaq = function() { ; }; - gaq.push = function(a) { + Gaq.prototype.Na = noopfn; + Gaq.prototype.O = noopfn; + Gaq.prototype.Sa = noopfn; + Gaq.prototype.Ta = noopfn; + Gaq.prototype.Va = noopfn; + Gaq.prototype._createAsyncTracker = noopfn; + Gaq.prototype._getAsyncTracker = noopfn; + Gaq.prototype._getPlugin = noopfn; + Gaq.prototype.push = function(a) { if ( typeof a === 'function' ) { a(); } @@ -100,6 +108,7 @@ www.google-analytics.com/ga.js application/javascript gat._getTrackerByName = function() { return tracker; }; window._gat = gat; // + var gaq = new Gaq(); (function() { var aa = window._gaq || []; if ( Array.isArray(aa) ) { diff --git a/assets/ublock/unbreak.txt b/assets/ublock/unbreak.txt index 7717cbedc..bccfbe1f7 100644 --- a/assets/ublock/unbreak.txt +++ b/assets/ublock/unbreak.txt @@ -12,6 +12,9 @@ @@||google-analytics.com/analytics.js$script,domain=www.vd.nl @@||google-analytics.com/plugins/ua/ec.js$script,domain=www.vd.nl +# https://github.com/gorhill/uBlock/issues/1020 +@@||www.google-analytics.com/ga.js$script,domain=www.tv2.no + # https://github.com/gorhill/uBlock/issues/939 @@||google-analytics.com/urchin.js$script,domain=live.euroleague.net