From cca5655fcf634a6a4d7aedbcaea1fa41810de401 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 29 Jan 2013 16:11:34 -0500 Subject: [PATCH] delete Google Analytics usage This is for the official plugin only. --- javascript/clearhistory.js | 19 ------------------- manifest.json | 3 +-- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/javascript/clearhistory.js b/javascript/clearhistory.js index af8fdce..d73827a 100644 --- a/javascript/clearhistory.js +++ b/javascript/clearhistory.js @@ -87,8 +87,6 @@ function clearHistory() { * {@code localStorage} */ chrome.browserAction.onClicked.addListener(function(tab) { - //calls the method to provide the Google Analytics Data - getAnalyticsData(); // Get the value from localStorage var showPrompt = localStorage['prompt'] || CONSTANTS.YES; @@ -102,20 +100,3 @@ chrome.browserAction.onClicked.addListener(function(tab) { clearCookies(clearHistory); } }); - - var _gaq = _gaq || []; -/** - * provides the Google analytics data - */ -function getAnalyticsData() { - _gaq.push(['_setAccount', 'UA-28968723-1']); - _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); - })(); -} diff --git a/manifest.json b/manifest.json index 478ce59..de75f53 100644 --- a/manifest.json +++ b/manifest.json @@ -32,6 +32,5 @@ }, "web_accessible_resources": [ "images/icon48.png" - ], - "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'" + ] } -- 2.39.5