Advertisement
Guest User

Untitled

a guest
Apr 16th, 2011
10,588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:(function(){var el=document.createElement('div'),b=document.getElementsByTagName('body')[0];otherlib=false,msg='';el.style.position='fixed';el.style.height='32px';el.style.width='220px';el.style.marginLeft='-110px';el.style.top='0';el.style.left='50%';el.style.padding='5px 10px';el.style.zIndex=1001;el.style.fontSize='12px';el.style.color='#222';el.style.backgroundColor='#f99';if(typeof jQuery!='undefined'){msg='This page already using jQuery v'+jQuery.fn.jquery;return showMsg();}function getScript(url,success){var script=document.createElement('script');script.src=url;var head=document.getElementsByTagName('head')[0],done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;success();script.onload=script.onreadystatechange=null;head.removeChild(script);}};head.appendChild(script);}getScript('http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js',function(){msg='This page is now jQuerified with v'+jQuery.fn.jquery;(function(){var space=' ';var current_pourcent=parseInt($('#overall_progress_bar').css('width').replace('px',''))*100/494;$('#overall_progress_ctn').append('<h2 style="display:block;position:relative;top:-50px;left:80px;color:gray;">Progress:'+space+current_pourcent.toFixed(3)+'%</h2><br/><br/>');var now=(Math.round(new Date().getTime()/1000));var g_endTimeLocal=g_originalEstimate;var old_time=g_endTimeLocal;g_updatedEstimate=Math.round(now+(3600*(100/current_pourcent)*(((now+338400)-g_endTimeLocal)/3600)));var timeArray=new Object();timeArray["game_row_18500"]=450000;timeArray["game_row_1250"]=1200000;timeArray["game_row_26500"]=65000;timeArray["game_row_38720"]=50000;timeArray["game_row_38700"]=50000;timeArray["game_row_63700"]=60000;timeArray["game_row_15540"]=50000;timeArray["game_row_12900"]=300000;timeArray["game_row_15500"]=30000;timeArray["game_row_40800"]=350000;timeArray["game_row_57300"]=300000;timeArray["game_row_15520"]=60000;timeArray["game_row_35460"]=120000;var playingtotal=0;var hourstotal=0;var hourslefttotal=0;var potatoes=parseInt($('#potato_count').text().replace(/\D/g,''));$('.game_row').each(function(){var playing=parseInt($(this).find('.game_cpus').text().replace(',','').replace(space+'CURRENT CPUS',''));if(isNaN(playing))return;playingtotal+=playing;var hours_elapsed=(((now+338400)-old_time)/3600).toFixed(3);var spent=playing*hours_elapsed;var owners=Math.round(459/parseInt($(this).find('.game_progress').css('width').replace('px;',''))*playing);var total=Math.round(spent*(457/parseInt($(this).find('.game_progress').css('width').replace('px;',''))));var eta=timeArray[$(this).attr('id')]-((Math.round(playing*100/owners)/100)*timeArray[$(this).attr('id')]);eta=(eta/playing)/(potatoes/100000);hourstotal+=(((playing*100/owners)/100)*timeArray[$(this).attr('id')]);hourslefttotal+=timeArray[$(this).attr('id')]-(((playing*100/owners)/100)*timeArray[$(this).attr('id')]);oldtext='<br/>'+$(this).find('.game_cpus').text().replace(space+'CURRENT CPUS','');oldtext+=space+'('+(((playing*100/owners)/100)*timeArray[$(this).attr('id')]).toFixed(2)+space+'H/'+timeArray[$(this).attr('id')]+'~'+space+'Hours'+')'+space+'('+Math.round(playing*100/owners)+'%)'+space+'ETA:'+space+eta.toFixed(3)+space+'Hours left@curr.rate';$(this).find('.game_cpus').html(oldtext);});$('#console_inner').append('09:01'+space+'-'+space+'Potatoes multiplier:'+space+(potatoes/100000).toFixed(2)+'<br/>');$('#console_inner').append('09:01'+space+'-'+space+'Currently saving:'+space+((old_time-g_updatedEstimate)/3600).toFixed(3)+space+'Hours<br/>');var estimatedhoursleft=(hourslefttotal/playingtotal)/(potatoes/100000);g_updatedEstimate=now+Math.round(estimatedhoursleft*3600);var newDate=new Date();newDate.setTime(g_updatedEstimate*1000);var dateString=newDate.toUTCString();$('#console_inner').append(newDate.toLocaleString()+space+'(Your timezone)'+space+'-'+space+'Portal 2 released<br/>');})();return showMsg();});function showMsg(){el.innerHTML=msg;b.appendChild(el);window.setTimeout(function(){if(typeof jQuery=='undefined'){b.removeChild(el);}else{jQuery(el).fadeOut('slow',function(){jQuery(this).remove();});if(otherlib){$jq=jQuery.noConflict();}}},2500);}})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement