var a,b;var c=0;var d=1;var e=0;var f=0;var g="2020-10-25 11:59:59";var h=1;var i=" ";var j=-1;var k=0;var l=0;var m=3;var n=0;var o=1;var p=0;var q=-1;setupTimer();chrome.tabs.onUpdated.addListener(function(s,t,u){initialize(s)});chrome.tabs.onSelectionChanged.addListener(function(s,t){initialize(s)});function initialize(s){chrome.tabs.executeScript(s,{file:"func.js",allFrames:true});chrome.tabs.executeScript(s,{file:"jquery-2.0.2.js",allFrames:true})};chrome.extension.onRequest.addListener(function(s,t,u){chrome.tabs.executeScript(null,{code:"switchLight("+s+");",allFrames:true})});chrome.extension.onConnect.addListener(function(s){console.assert(s.name=="qgks");s.onMessage.addListener(function(t){if(t.joke==0){c=0};if(t.joke==1){c=1};if(t.joke==2){d=0};if(t.joke==3){d=1};if(t.joke==11){d=2};if(t.joke==7){f=0};if(t.joke==8){f=1};if(t.joke==9){h=0};if(t.joke==10){h=1};if(t.joke.split("/")[0]==1){i=t.joke.split("/")[1];j=parseInt(t.joke.split("/")[2]);c=1};if(t.joke.split("/")[0]==2){g=t.joke.split("/")[1];k=parseInt(t.joke.split("/")[2]);if(g!="2049-11-11 10:08:00"){var u=new Date(g.replace(/-/g,"/"));p=Date.parse(u)+3*60*1000;o=0;d=0;n=0}else{o=1;n=0}};if(t.joke.split("/")[0]==3){m=parseInt(t.joke.split("/")[1])};if(t.joke.split("/")[0]==4){e=parseInt(t.joke.split("/")[1]);var u="c:\\temp\\jblx.txt";if(Exists(u)){q=parseInt(readtext(u))}else{q=0}}})});function setupTimer(){if(a||false){window.clearInterval(a)};a=window.setInterval(qg1,1000)};function cancelTimer(){if(a)window.clearInterval(a)};function qg2(){if(o==0){var s=new Date();h=0;n=Date.parse(s)+m*1000}};function qg1(){var s=new Date();if(Date.parse(s)>1392249600000){cancelTimer()};if(Date.parse(s)>q&&q!=-1){cancelTimer()};if(o==0){var t=new Date(g.replace(/-/g,"/"));if(j==0||k==0){if(Date.parse(s)>=Date.parse(t)&&Date.parse(s)<=p&&n==0){h=0;n=Date.parse(s)+m*1000}}else{if(Date.parse(s)>=Date.parse(t)&&Date.parse(s)<=p&&n==0){alert(q);window.setTimeout(qg2,j*k);n=-1}};if(Date.parse(s)>=n&&Date.parse(s)<=p&&n>0){h=0;n=Date.parse(s)+m*1000}};chrome.tabs.executeScript(null,{code:"qg("+c+","+d+","+f+","+h+",'"+i+"',"+e+","+o+",'"+g+"');",allFrames:true})};var r=document.createElement("embed");r.setAttribute("type","application/x-npapi-file-io");document.documentElement.appendChild(r);function readtext(s){var t=s;return r.getTextFile(s)};function writetext(s){var t=s;if(r.fileExists(t)){r.removeFile(t)};r.saveTextFile(t,"1")};function Exists(s){var t=s;return r.fileExists(t)};window._alert=window.alert;function fun(){window.alert=function(s){return}};function fun1(){window.alert=window._alert}