Skip to content

Instantly share code, notes, and snippets.

@systemsoverload
Created August 8, 2012 15:42
Show Gist options
  • Save systemsoverload/3296078 to your computer and use it in GitHub Desktop.
Save systemsoverload/3296078 to your computer and use it in GitHub Desktop.
Google Doodle 08/08 AimBot
doodle = document.getElementById('hplogo');
fakeEvt = {preventDefault:function(){}}
function getPowerVal(){
if (ballCount==0){
return 210;
}
if (ballCount < 31){
return 120;
}
if (ballCount < 40){
return 600;
}
return 760;
}
function power(){
doodle.onmousedown(fakeEvt);
running && setTimeout(shoot, getPowerVal());
}
function shoot(){
doodle.onmouseup(fakeEvt);
ballCount++;
running && setTimeout(power, 100)
}
function run(){
running=true;
ballCount=0;
power();
setTimeout('running=false;console.log("STOPPED RUNNING")', 24000);
}
run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment