{"action":"created","issue":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/1170","labels_url":"https://api.github.com/repos/gorhill/uBlock/issues/1170/labels{/name}","comments_url":"https://api.github.com/repos/gorhill/uBlock/issues/1170/comments","events_url":"https://api.github.com/repos/gorhill/uBlock/issues/1170/events","html_url":"https://github.com/gorhill/uBlock/issues/1170","id":124910063,"number":1170,"title":"Strange redirect related to Google Analytics","user":{"login":"c0m4r","id":6292788,"avatar_url":"https://avatars.githubusercontent.com/u/6292788?v=3","gravatar_id":"","url":"https://api.github.com/users/c0m4r","html_url":"https://github.com/c0m4r","followers_url":"https://api.github.com/users/c0m4r/followers","following_url":"https://api.github.com/users/c0m4r/following{/other_user}","gists_url":"https://api.github.com/users/c0m4r/gists{/gist_id}","starred_url":"https://api.github.com/users/c0m4r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0m4r/subscriptions","organizations_url":"https://api.github.com/users/c0m4r/orgs","repos_url":"https://api.github.com/users/c0m4r/repos","events_url":"https://api.github.com/users/c0m4r/events{/privacy}","received_events_url":"https://api.github.com/users/c0m4r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-05T07:10:06Z","updated_at":"2016-01-05T10:01:46Z","closed_at":null,"body":"Today the orange icon show up on Google Chrome's settings, indicating some problem with uBlock.\r\n\r\nWhat i saw was this:\r\n\r\n![zrzut ekranu z 2016-01-05 07-59-50](https://cloud.githubusercontent.com/assets/6292788/12109469/7fc5931e-b382-11e5-8ede-3542871560e7.png)\r\n\r\n> Warning: This extension failed to redirect a network request to (base64 string) because another extension (Disconnect) redirected it to about:blank\r\n\r\nFirst I thought that this is some kind of conflict between uBlock and previously used Ghostery so I've switched to Disconnect, but since the problem is still present I have decoded this base64 string and it turned out to be a Google Analytics invocation:\r\n\r\n```\r\n(function() {\r\n    // https://developers.google.com/analytics/devguides/collection/analyticsjs/\r\n    var noopfn = function() {\r\n        ;\r\n    };\r\n    var noopnullfn = function() {\r\n        return null;\r\n    };\r\n    //\r\n    var Tracker = function() {\r\n        ;\r\n    };\r\n    var p = Tracker.prototype;\r\n    p.get = noopfn;\r\n    p.set = noopfn;\r\n    p.send = noopfn;\r\n    //\r\n    var gaName = window.GoogleAnalyticsObject || 'ga';\r\n    var ga = function() {\r\n        var len = arguments.length;\r\n        if ( len === 0 ) {\r\n            return;\r\n        }\r\n        var f = arguments[len-1];\r\n        if ( typeof f === 'object' && typeof f.hitCallback === 'function' ) {\r\n            f.hitCallback();\r\n        }\r\n    };\r\n    ga.create = function() {\r\n        return new Tracker();\r\n    };\r\n    ga.getByName = noopnullfn;\r\n    ga.getAll = function() {\r\n        return [];\r\n    };\r\n    ga.remove = noopfn;\r\n    window[gaName] = ga;\r\n})();\r\n```\r\n\r\nOne of the users also posted same report on reddit: https://www.reddit.com/r/techsupport/comments/3zi5jq/what_does_this_javascript_code_do_and_why_was/"},"comment":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/comments/168957971","html_url":"https://github.com/gorhill/uBlock/issues/1170#issuecomment-168957971","issue_url":"https://api.github.com/repos/gorhill/uBlock/issues/1170","id":168957971,"user":{"login":"c0m4r","id":6292788,"avatar_url":"https://avatars.githubusercontent.com/u/6292788?v=3","gravatar_id":"","url":"https://api.github.com/users/c0m4r","html_url":"https://github.com/c0m4r","followers_url":"https://api.github.com/users/c0m4r/followers","following_url":"https://api.github.com/users/c0m4r/following{/other_user}","gists_url":"https://api.github.com/users/c0m4r/gists{/gist_id}","starred_url":"https://api.github.com/users/c0m4r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0m4r/subscriptions","organizations_url":"https://api.github.com/users/c0m4r/orgs","repos_url":"https://api.github.com/users/c0m4r/repos","events_url":"https://api.github.com/users/c0m4r/events{/privacy}","received_events_url":"https://api.github.com/users/c0m4r/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T10:01:46Z","updated_at":"2016-01-05T10:01:46Z","body":"> as far as I understand, both ghostery and uBlock are trying to block request to google analytics by redirecting them to base64 encoded javascript\r\n\r\nWell, that's what it supposed to do. But as you can see, uBlock puts its own Google Analytics script instead. The purpose of GA filter is to stop all the GA connections, not to replace one GA script with another, as far as  I'm concerned."}}