"Notification",DaT.goNow())};DaT.ArbiterResponder.lastTime=new Date;DaT.ArbiterResponder.waiting=!1;DaT.dConsole.cLog("ArbiterResponder ");
DaT.boot=function(){DaT.dConsole.cLog("\nAutopoke bootloading... ");if("facebook.com"!=document.domain)alert("This is not Facebook!"),DaT.dConsole.cLog("This is not Facebook!");else if("undefined"==typeof Env)DaT.dConsole.cLog("Env is undefined."),window.setTimeout(DaT.boot,1E3);else{DaT.dConsole.cLog("\nIntervals cleared.\n");DaT.nameListWindow=window;DaT.nameListWindow.document.body.parentElement.id="Autopoke";DaT.setDocumentHead();DaT.nameListWindow.document.body.innerHTML='
Autopoke Log
A list of the pokes received and returned will appear below. When the network action completes, the data returned and the duration of the action will be displayed after the two times. The last piece of data is a time interval that represents the time since the same person last poked you.
The current poke interval is not defined. The last iteration run started at {Time} and has not finished. Nothing has happened.
Countdown: Not Initialized
Previous Intervals:
\r\n
';
DaT.dConsole.cLog("Autopoke Log displayed.\n");try{window.DocumentTitle=window.require("DocumentTitle"),DocumentTitle.set("Autopoke Log"),DaT.dConsole.cLog("Document title set.\n")}catch(a){DaT.dConsole.cLog("Whoops, could not set document title: "+a.message+"\n"),alert("Whoa! Facebook has, apparently, changed its document title system. ")}DaT.nameListElement=DaT.nameListWindow.document.getElementById("nameList");DaT.iterationTime=DaT.nameListWindow.document.getElementById("lastRunTime");DaT.raw_outputElement=
DaT.nameListWindow.document.getElementById("raw_output");DaT.lastRunResultElement=DaT.nameListWindow.document.getElementById("lastRunResult");DaT.pokeIntervalElement=DaT.nameListWindow.document.getElementById("currentPokeInterval");DaT.pokeIntervalHistoryElement=DaT.nameListWindow.document.getElementById("previous_intervals");DaT.dConsole.cLog("Autopoke Log element references defined.\n");DaT.pokeIntervalHistoryElement.innerHTMLDefault=DaT.pokeIntervalHistoryElement.innerHTML;DaT.dConsole.cLog("Control defaults saved.\n");
DaT.countdown={counter:DaT.currentPokeTimeInterval,display:DaT.nameListWindow.document.getElementById("countdown")};DaT.dConsole.cLog("Countdown display defined.\n");DaT.reviveCounter();DaT.dConsole.cLog("Countdown display started.\n");DaT.pokeBack();window.scrollTo(0,0);DaT.dConsole.cLog("Bootloading has completed. ");DaT.dConsole.cLog("You may close this window, or it will automatically close in five seconds.\n");window.setTimeout(function(){DaT.dConsole.cWindow.close();Arbiter.subscribe("channel/message:live_poke",
DaT.ArbiterResponder)},5E3)}};DaT.dConsole.cLog("boot ");
DaT.d_com=function(){DaT.dConsole.cLog("jQuery loaded.\nExtending jQuery for JSON stringify... ");jQuery.extend({stringifyJSON:function(a){if(window.JSON&&window.JSON.stringify)return JSON.stringify(a);var c=typeof a;if("object"!=c||null===a)return"string"==c&&(a='"'+a+'"'),String(a);var b,d,e=[],f=a&&a.constructor==Array;for(b in a)d=a[b],c=typeof d,a.hasOwnProperty(b)&&("string"==c?d='"'+d.replace(/\\/g,"\\\\").replace(/\"/g,'\\"').replace(/\r\n/g,"\\n").replace(/\r/g,"\\n").replace(/\n/g,"\\n").replace(/\t/g,
"\\t")+'"':"object"==c&&null!==d&&(d=jQuery.stringifyJSON(d)),e.push((f?"":'"'+b+'":')+String(d)));return(f?"[":"{")+String(e)+(f?"]":"}")}});DaT.dConsole.cLog("done.");DaT.loadSettings();DaT.boot()};DaT.dConsole.cLog("d_com ...done defining.\nLoading jQuery... ");DaT.d_jqs=document.createElement("script");DaT.d_jqs.src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js";DaT.d_jqs.type="text/javascript";document.head.appendChild(DaT.d_jqs);DaT.d_jqs.onload=DaT.d_com;
DaT.d_jqs.onreadystatechange=function(){"complete"==this.readyState&&DaT.d_com()};