From: Mike Frysinger Date: Tue, 29 Jan 2013 21:11:34 +0000 (-0500) Subject: delete Google Analytics usage X-Git-Tag: v1.5.0~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cca5655fcf634a6a4d7aedbcaea1fa41810de401;p=chrome-ext%2Fclearhistory-advance-fork.git delete Google Analytics usage This is for the official plugin only. --- 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'" + ] }