$(document).ready(function(){var b;(function(){$(".i18n").each(function(){var a=this.id;$(this).html(chrome.i18n.getMessage(a.replace(/-/,"")))});$(".title").each(function(){var a=this.id;$(this).attr({title:chrome.i18n.getMessage(a.replace(/-/,"")+"_title")})})})();chrome.windows.getCurrent(function(a){chrome.tabs.getSelected(a.id,function(c){b=c.url;if(b.match(/https?:\/\/*\/*/gi)==null||b.match(/https:\/\/chrome.google.com\/extensions/i))$("#entire, #selected").attr({title:chrome.i18n.getMessage("disableEntireTitle")}).css({color:"#909090"}).unbind("click")})});
chrome.extension.onRequest.addListener(function(a){switch(a){case "script_not_running":$("#script_off").siblings().hide().end().show().find("a").click(function(){chrome.extension.sendRequest({action:"reload_tab"});window.close()});break}});$("a").click(function(){var a=this.id;chrome.extension.sendRequest({action:a});if(a=="entire"){$("ul").remove();$("#capturing").fadeIn("slow")}a=="selected"&&window.close()})});
