From 00122f0b75f8b608acb1fda8c83f17feab2dd860 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 17 Dec 2015 11:30:39 -0500 Subject: [PATCH] this fixes #1081 --- assets/checksums.txt | 4 ++-- assets/ublock/redirect-resources.txt | 9 ++++++++- assets/ublock/unbreak.txt | 3 +++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/assets/checksums.txt b/assets/checksums.txt index 095eeb71e7356..9a31aac62d335 100644 --- a/assets/checksums.txt +++ b/assets/checksums.txt @@ -1,5 +1,5 @@ -531643477d70059fda3ea50a4c69dc56 assets/ublock/unbreak.txt -a78fc7352152d7f1f7513dfc34c8d8a2 assets/ublock/redirect-resources.txt +4d0e777a82576a2ec771742abb91925b assets/ublock/unbreak.txt +370d0ecdba45e4d2979861a02cd66815 assets/ublock/redirect-resources.txt 6c077d6d5b39e8a5a407966ad62c9c32 assets/ublock/privacy.txt d2e6db232dafac3c813979ae8ce9d9a1 assets/ublock/filters.txt 146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt diff --git a/assets/ublock/redirect-resources.txt b/assets/ublock/redirect-resources.txt index c3b16f12e7009..8319b5ebbc3f7 100644 --- a/assets/ublock/redirect-resources.txt +++ b/assets/ublock/redirect-resources.txt @@ -128,6 +128,11 @@ www.google-analytics.com/ga.js application/javascript return a; }; // + var tracker = { + _initData: noopfn, + _trackPageview: noopfn + }; + // var Gat = function() { ; }; @@ -135,7 +140,9 @@ www.google-analytics.com/ga.js application/javascript Gat.prototype._createTracker = noopfn; Gat.prototype._forceSSL = noopfn; Gat.prototype._getPlugin = noopfn; - Gat.prototype._getTracker = noopfn; + Gat.prototype._getTracker = function() { + return tracker; + }; Gat.prototype._getTrackerByName = function() { return tracker; }; diff --git a/assets/ublock/unbreak.txt b/assets/ublock/unbreak.txt index d5789c8e512fd..e3910d022d4a7 100644 --- a/assets/ublock/unbreak.txt +++ b/assets/ublock/unbreak.txt @@ -240,3 +240,6 @@ marketwatch.com#@#.advertisement # https://github.com/gorhill/uBlock/issues/1082 @@||widgets.outbrain.com/outbrain.js$script,domain=www.themarker.com + +# https://github.com/gorhill/uBlock/issues/1081 +@@||google-analytics.com/ga.js$domain=one.co.il