var USE_RECORD_GAP=18E4,_gaq=window._gaq||[];_gaq.push(["_setAccount","UA-28870762-4"]);_gaq.push(["_trackPageview",location.href.replace(/\?.*$/,"")]);function initGAS(){if(chrome.extension.getBackgroundPage().setting.misc.tracking){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src="https://ssl.google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}else _gaq.push=function(){}}
window.addEventListener("load",initGAS,!1);var useHistory={},issueHistory={};function trackCheckSpan(a,b){var c=a[b];if(c&&Date.now()-c<USE_RECORD_GAP)return!1;a[b]=Date.now();return!0}function trackIssue(a){trackCheckSpan(issueHistory,a.identifier)&&_gaq.push(["_trackEvent","usage","error",""+a.identifier])}function trackVersion(a){_gaq.push(["_trackEvent","option","version",a])}function serializeRule(a){return a.type[0]+" "+a.value}
function trackUse(a){trackCheckSpan(useHistory,a)&&("custom_"==a.substr(0,7)?(a=setting.getItem(a),_gaq.push(["_trackEvent","usage","use-custom",serializeRule(a)])):_gaq.push(["_trackEvent","usage","use",a]))}var urlHistory={};function trackNotUse(a){trackCheckSpan(urlHistory,a)&&_gaq.push(["_trackEvent","usage","notuse",a])}function trackDisable(a){_gaq.push(["_trackEvent","option","disable",a])}function trackAutoEnable(a){_gaq.push(["_trackEvent","option","autoenable",a])}
function trackEnable(a){_gaq.push(["_trackEvent","option","enable",a])}function trackAddCustomRule(a,b){var c="add";b&&(c="add-"+b);_gaq.push(["_trackEvent","option",c,serializeRule(a)])}function trackManualUpdate(){_gaq.push(["_trackEvent","update","manual"])}function trackUpdateFile(a){_gaq.push(["_trackEvent","update","file",a])};
