Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- hover_zoom-5.7_0/js/background.js.orig 2015-03-16 00:57:39.641351085 -0500
+++ hover_zoom-5.7_0/js/background.js 2015-03-26 09:17:53.562204063 -0500
@@ -79,11 +79,12 @@
});
});
break;
- case 'trackEvent':
- if (options.enableStats && _gaq) {
- _gaq.push(['_trackEvent', message.event.category, message.event.action, message.event.label]);
- }
- break;
+// [defanged by DC]
+// case 'trackEvent':
+// if (options.enableStats && _gaq) {
+// _gaq.push(['_trackEvent', message.event.category, message.event.action, message.event.label]);
+// }
+// break;
}
}
@@ -101,49 +102,52 @@
// Sets up anonymous stats
function setUpStats() {
- _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-394270-15']);
- _gaq.push(['_setSampleRate', '0.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';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
- })();
+// [defanged by DC]
+// _gaq = _gaq || [];
+// _gaq.push(['_setAccount', 'UA-394270-15']);
+// _gaq.push(['_setSampleRate', '0.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';
+// (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
+// })();
}
// Report options stats
// No user data (browser history, etc) is reported
function optionsStats() {
- _gaq.push(['_trackEvent', 'Options', 'extensionEnabled', options.extensionEnabled.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'pageActionEnabled', options.pageActionEnabled.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'updateNotifications', options.updateNotifications.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'mouseUnderlap', options.mouseUnderlap.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'showCaptions', options.showCaptions.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'showHighRes', options.showHighRes.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'addToHistory', options.addToHistory.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'alwaysPreload', options.alwaysPreload.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'enableAds', options.enableAds.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'showWhileLoading', options.showWhileLoading.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'whiteListMode', options.whiteListMode.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'displayDelay', options.displayDelay.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'fadeDuration', options.fadeDuration.toString()]);
- _gaq.push(['_trackEvent', 'Options', 'picturesOpacity', options.picturesOpacity.toString()]);
- /*_gaq.push(['_trackEvent', 'Options', 'actionKey', keyCodeToKeyName(options.actionKey)]);
- _gaq.push(['_trackEvent', 'Options', 'fullZoomKey', keyCodeToKeyName(options.fullZoomKey)]);
- for (var i=0; i<options.excludedSites.length; i++) {
- _gaq.push(['_trackEvent', 'Options', 'excludedSites', options.excludedSites[i]]);
- }*/
+// [defanged by DC]
+// _gaq.push(['_trackEvent', 'Options', 'extensionEnabled', options.extensionEnabled.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'pageActionEnabled', options.pageActionEnabled.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'updateNotifications', options.updateNotifications.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'mouseUnderlap', options.mouseUnderlap.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'showCaptions', options.showCaptions.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'showHighRes', options.showHighRes.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'addToHistory', options.addToHistory.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'alwaysPreload', options.alwaysPreload.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'enableAds', options.enableAds.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'showWhileLoading', options.showWhileLoading.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'whiteListMode', options.whiteListMode.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'displayDelay', options.displayDelay.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'fadeDuration', options.fadeDuration.toString()]);
+// _gaq.push(['_trackEvent', 'Options', 'picturesOpacity', options.picturesOpacity.toString()]);
+// /*_gaq.push(['_trackEvent', 'Options', 'actionKey', keyCodeToKeyName(options.actionKey)]);
+// _gaq.push(['_trackEvent', 'Options', 'fullZoomKey', keyCodeToKeyName(options.fullZoomKey)]);
+// for (var i=0; i<options.excludedSites.length; i++) {
+// _gaq.push(['_trackEvent', 'Options', 'excludedSites', options.excludedSites[i]]);
+// }*/
}
// Report miscellaneous stats
// No user data (browser history, etc) is reported
function miscStats() {
- _gaq.push(['_trackEvent', 'Misc', 'extensionVersion', chrome.app.getDetails().version]);
- _gaq.push(['_trackEvent', 'Misc', 'downloadedFrom', 'Chrome Web Store']);
+// [defanged by DC]
+// _gaq.push(['_trackEvent', 'Misc', 'extensionVersion', chrome.app.getDetails().version]);
+// _gaq.push(['_trackEvent', 'Misc', 'downloadedFrom', 'Chrome Web Store']);
}
// Checks if the extension has been updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment