Created
August 8, 2012 15:42
-
-
Save systemsoverload/3296078 to your computer and use it in GitHub Desktop.
Google Doodle 08/08 AimBot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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