var extension={dir:"",ver:function(c,b){if(!b){b=manifest.version}if(!c){c=manifest.version}c=c.split(".");b=b.split(".");for(var a=0;a<c.length;a++){if(c[a]>b[a]||!b[a]){return{left:true,right:false,equal:false,string:"left"}}if(c[a]<b[a]){return{left:false,right:true,equal:false,string:"right"}}}if(!c[a]&&b[a]){return{left:false,right:true,equal:false,string:"right"}}return({left:false,right:false,equal:true,string:"equal"})},manifest:"",version:0,load:function(){extension.dir=chrome.i18n.getMessage("dir");if(window.jQuery){extension.manifest=JSON.parse(jQuery.ajax({url:"manifest.json",async:false}).responseText);extension.version=extension.manifest.version;jQuery(function(){jQuery(".msg").each(function(){jQuery(this).html(chrome.i18n.getMessage(jQuery(this).attr("tag")))});jQuery(".ver").each(function(){jQuery(this).html(extension.manifest.version)});jQuery(document.body).attr("dir",chrome.i18n.getMessage("dir"))})}else{console.log("extension.js cannot work without jQuery")}}};if(navigator.appVersion.indexOf("Win")!=-1){extension.windows=true}if(navigator.appVersion.indexOf("Mac")!=-1){extension.mac=true}if(navigator.appVersion.indexOf("X11")!=-1){extension.x11=true}if(navigator.appVersion.indexOf("Linux")!=-1){extension.linux=true}extension.load();