]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/commitdiff
delete Google Analytics usage
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jan 2013 21:11:34 +0000 (16:11 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jan 2013 03:40:09 +0000 (22:40 -0500)
This is for the official plugin only.

javascript/clearhistory.js
manifest.json

index af8fdcebc4184ebe38963620be859328a55da2fa..d73827a7e57aed5349752130ab9baa38eea0044b 100644 (file)
@@ -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);
-  })();
-}
index 478ce59d3c518f8d845c000ae47d0b8a84790cd1..de75f53bc8f71479da39e4b4659dc9827767628a 100644 (file)
@@ -32,6 +32,5 @@
   },
   "web_accessible_resources": [
     "images/icon48.png"
-  ],
-  "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'"
+  ]
 }