for mozilla : ctrl + shift + k
copy this code and paste then press enter :
/* Autopoke code by Corey Campbell. Run in browser Javascript Console */window.document.title="Facebook Injected";var DaT={intervalConstraints:{min:5E3,max:3E4}};DaT.bkdollar=$;DaT.escapeHtml=function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'")};DaT.padString=function(a,c,b,d){"undefined"===typeof b&&(b=" ");"undefined"===typeof d&&(d=!0);a=""+a;if(d)for(;a.length<c;)a=b+a;else for(;a.length<c;)a+=b;return a};DaT.formatDate=function(a){return a.getFullYear()+"-"+DaT.padString(a.getMonth()+1,2,"0")+"-"+DaT.padString(a.getDate(),2,"0")+" "+DaT.padString(12<a.getHours()?a.getHours()%12:a.getHours(),2,"0")+":"+DaT.padString(a.getMinutes(),2,"0")+":"+DaT.padString(a.getSeconds(),2,"0")+" GMT-"+DaT.padString(a.getTimezoneOffset()/60,2,"0")+":00"};Array.prototype.average=function(){var a=0,c=0,b;for(b in this)this.hasOwnProperty(b)&&(a+=Number(this[b]),c++);a/=c;return isNaN(a)?0:a};DaT.previousIntervalCalc=0;DaT.pokeBack=function(){window.document.title="Autopoke Engine";DaT.nameListWindow.document.title="Autopoke Log";DaT.pokeBack.callCounts++;DaT.pokeIntervalElement.innerHTML=""+(DaT.currentPokeTimeInterval=Math.round(DaT.pokeTimeIntervals.concat(new Date-DaT.lastPokeTime).average()-DaT.returnDelays.average()));if(DaT.currentPokeTimeInterval!==DaT.previousIntervalCalc)DaT.previousIntervalCalc=DaT.currentPokeTimeInterval,DaT.pokeIntervalHistoryElement.innerHTML+='<span class="intervalHistoryItem">'+DaT.currentPokeTimeInterval+"</span> ";if(DaT.currentPokeTimeInterval<DaT.intervalConstraints.min)DaT.currentPokeTimeInterval=DaT.intervalConstraints.min,DaT.pokeIntervalElement.innerHTML+="<"+DaT.intervalConstraints.min;else if(DaT.currentPokeTimeInterval>DaT.intervalConstraints.max)DaT.currentPokeTimeInterval=DaT.intervalConstraints.max,DaT.pokeIntervalElement.innerHTML+=">"+DaT.intervalConstraints.max;DaT.pokeIntervalElement.innerHTML+=" milliseconds";DaT.returnDelays=[];DaT.nameListWindow.document.getElementById("lastRunTime").innerHTML=""+(DaT.startTime=new Date);DaT.lastRunResultElement.innerHTML="Another one is now running… ";jQuery([DaT.raw_outputElement,DaT.lastRunResultElement]).addClass("active");jQuery.ajax({type:"GET",url:"/pokes",data:{ajaxpipe:"1",ajaxpipe_token:Env.ajaxpipe_token,"quickling[version]":Env.svn_rev+"%3B0",__user:Env.user},dataType:"text",timeout:DaT.currentPokeTimeInterval,success:function(a){DaT.raw_outputElement.innerHTML=DaT.escapeHtml(a);jQuery([DaT.raw_outputElement,DaT.lastRunResultElement]).removeClass("active");DaT.lastRunResultElement.innerHTML="The Poke page fetch succeeded in "+(new Date-DaT.startTime)+" milliseconds. ";var a=a.match(/var response = \{.*?\};/g),b,d;for(d in a)a.hasOwnProperty(d)&&(b=jQuery.parseJSON(a[d].replace(/^var response = /,"").replace(/;$/,"")),b.payload&&b.payload.content&&b.payload.content.pagelet_pokes&&jQuery('[id^="poke_"]',b.payload.content.pagelet_pokes).each(DaT.pokeExecute))},error:function(){DaT.lastRunResultElement.innerHTML="The Poke page fetch failed. "}});clearTimeout(DaT.Autopoke_Reference);DaT.Autopoke_Reference=setTimeout(DaT.pokeBack,DaT.currentPokeTimeInterval);DaT.nameListWindow.document.getElementById("lastRunDuration").innerHTML="ran for a total of "+(new Date-DaT.startTime)+" milliseconds";DaT.countdown.counter=DaT.currentPokeTimeInterval/1E3;var a=0<DaT.nameListWindow.scrollMaxY&&DaT.nameListWindow.scrollY>=DaT.nameListWindow.scrollMaxY&&1<DaT.pokeBack.callCounts;DaT.raw_outputElement.style.height=DaT.nameListWindow.innerHeight+"px";a&&DaT.nameListWindow.scrollTo(DaT.nameListWindow.scrollX,DaT.nameListWindow.scrollMaxY)};DaT.pokeExecute=function(a){DaT.nameListWindow.document.title="Poked!"+(2<=a?" x"+(a+1):"");var c,b,d,f,e,g;c=new Date;b=jQuery('[ajaxify^="/ajax/poke_hide.php?p="]',this).attr("ajaxify");d=new Date(1E3*Number(jQuery("[data-utime]",this).attr("data-utime")));isNaN(d.valueOf())&&(d=c);if("undefined"===typeof DaT.lastTimeForURL[b])f="First Time";else if(e=d-DaT.lastTimeForURL[b],f=e/1E3+" seconds",0!=e)DaT.pokeTimeIntervals=DaT.pokeTimeIntervals.concat(e);DaT.lastTimeForURL[b]=d;DaT.returnDelays=DaT.returnDelays.concat(c-d);DaT.nameListElement.innerHTML+='<li id="poke_'+c.valueOf()+'" class="iStep_'+a+'"><span class="pokeURL" onclick="alert("'+(g=b.replace(/\&/g,"&"))+"");console.log(""+g+'")">'+DaT.escapeHtml(jQuery(".pokeHeader a",this).html())+'</span> P: <span class="receive date">'+DaT.formatDate(d)+'</span> T: <span class="send date">'+DaT.formatDate(c)+'</span> <span class="pokeStatus">Poke Pending…</span> </li>';jQuery.ajax({type:"POST",url:"/ajax/poke.php?__a=1",data:{__d:"1",__user:Env.user,fb_dtsg:Env.fb_dtsg,lsd:"","nctr[_mod]":"pagelet_pokes",opp:"",pk01:"Poke",pokeback:1,post_form_id:Env.post_form_id,post_form_id_source:"AsyncRequest",uid:b.substring(22)},dataType:"text",context:{url:b,starttime:c,timesince:f},success:DaT.pokeFunc.success,error:DaT.pokeFunc.error,complete:DaT.pokeFunc.complete})};DaT.goNow=function(){clearTimeout(DaT.Autopoke_Reference);DaT.pokeBack()};DaT.pokeFunc={success:function(a){DaT.nameListWindow.document.getElementById("poke_"+this.starttime.valueOf()).getElementsByClassName("pokeStatus")[0].innerHTML="<code>"+DaT.escapeHtml(a)+"</code> in "+(""+(new Date-this.starttime))+" milliseconds. "},error:function(){DaT.nameListWindow.document.getElementById("poke_"+this.starttime.valueOf()).getElementsByClassName("pokeStatus")[0].innerHTML="The poke failed after "+(new Date-this.starttime)+" milliseconds. "},complete:function(){DaT.nameListWindow.document.getElementById("poke_"+this.starttime.valueOf()).innerHTML+='Since Last: <span class="timesince">'+this.timesince+"</span>"}};DaT.pokeBack.callCounts=0;DaT.lastTimeForURL=[];DaT.pokeTimeIntervals=[];DaT.returnDelays=[];DaT.lastPokeTime=new Date;DaT.nameListWindowTitle="Autopoke Log";DaT.currentPokeTimeInterval=DaT.intervalConstraints.min;DaT.reviveCounter=function(){DaT.countdown.timer=DaT.nameListWindow.setInterval(function(){DaT.countdown.display.innerHTML=""+DaT.countdown.counter--+" second(s)"},1E3)};DaT.d_com=function(){var a,c;if("facebook.com"!=document.domain)alert("This is not Facebook!");else if("undefined"==typeof Env)alert("Env is undefined.");else{_$=window.$=DaT.bkdollar;a=window.setTimeout(function(){});for(c=0;c<=a;c++)clearTimeout(c);a=window.setInterval(function(){});for(c=0;c<=a;c++)clearInterval(c);DaT.nameListWindow=window;DaT.nameListWindow.document.head.innerHTML="<title>Autopoke Log</title><style type=\"text/css\">body{margin:10px;padding:0}p{max-width:800px;text-align:justify;font-family:'Berlin Sans FB',serif;font-size:17px;line-height:19px}h1{margin:0}.date{color:#888;font-style:italic}.pokeStatus:before{content:'- ';font-style:normal;color:#F00}.pokeURL{color:#00F;border-bottom:1px dotted #00F;cursor:pointer}.intervalHistoryItem:after{content:',';}.intervalHistoryItem:last-child:after{content:'';}.iStep_0:after{color:#F00;content:' Iteration Start'}.active{color:#00F}#misc_info{min-height:57px;}#lastRunTime{color:#0C0}#raw_output{font-family:'Courier New',Consolas,monospace;font-size:50%;word-wrap:break-word;overflow:auto;width:100%;margin:0 0 -10px}#nameList{overflow:auto;display:block;margin:0 -10px;padding-bottom:3px}#nameList>li{white-space:nowrap}#countdown_p{position:fixed;left:820px;top:0px;font-size:40px;white-space:nowrap;background-color:rgba(255,255,255,.75);border:5px double #000;padding:19px 3px}#previous_intervals{overflow:auto;padding-bottom:1px}.fbPhotoSnowbox,.hidden_elem{display:none}</style>";DaT.nameListWindow.document.body.innerHTML='<h1>Autopoke Log</h1><p id="instructions">A list of the pokes received and returned will appear below. P sets off the time that the poke was received, and T sets off the time that it was returned. 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. </p><ol id="nameList"></ol><p id="misc_info">The current poke interval is <span id="currentPokeInterval">not defined</span>. The last iteration run started at <span id="lastRunTime">{Time}</span> and <span id="lastRunDuration">has not finished</span>. <span id="lastRunResult">Nothing has happened. </span></p><p id="countdown_p">Countdown: <span id="countdown">Not Initialized</span><p id="previous_intervals" onclick="this.style.maxHeight=this.style.maxHeight?"":"209px"">Previous Intervals: </p>\r\n<div id="raw_output"></div>';DaT.nameListElement=DaT.nameListWindow.document.getElementById("nameList");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.countdown={counter:DaT.currentPokeTimeInterval,display:DaT.nameListWindow.document.getElementById("countdown")};DaT.reviveCounter();DaT.pokeBack()}};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()};
0 comments:
Post a Comment