From 295533ef2ccf5a13eb518afbc375d177e50aedf0 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 12 Jan 2020 18:50:12 +0100 Subject: [PATCH] Remove Google Analytics --- background.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/background.js b/background.js index 5fa9870..97cc268 100755 --- a/background.js +++ b/background.js @@ -211,7 +211,7 @@ chrome.webRequest.onBeforeRequest.addListener(function (details) { ["blocking"] ); **/ - + // Disable javascript for these sites/general paywall-scripts chrome.webRequest.onBeforeRequest.addListener(function(details) { if (!isSiteEnabled(details)) { @@ -378,16 +378,6 @@ chrome.webRequest.onCompleted.addListener(function(details) { urls: [""] }); -var _gaq = _gaq || []; -_gaq.push(['_setAccount', 'UA-69824169-2']); -_gaq.push(['_trackPageview']); - -(function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = 'https://ssl.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); -})(); - function isSiteEnabled(details) { var isEnabled = enabledSites.some(function(enabledSite) { var useSite = (details.url.indexOf("." + enabledSite) !== -1 || details.url.indexOf("/" + enabledSite) !== -1);