Created
June 14, 2014 01:30
-
-
Save yjroot/a2bcad20ff426ac052af to your computer and use it in GitHub Desktop.
Auto fork
This file contains 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
function GetForkButton(uid) | |
{ | |
return document.getElementById('poke_live_item_' + uid).firstChild.firstChild.nextSibling.firstChild.nextSibling.firstChild.nextSibling.firstChild.firstChild | |
} | |
function AutoFork(uid){ | |
fork_button = GetForkButton(uid) | |
if (fork_button.tagName != 'A'){ | |
setTimeout(function(){AutoFork(uid)}, (5000+Math.random()*5000)) | |
return 0; | |
} | |
function PressButton(){ | |
GetForkButton(uid).click() | |
} | |
setTimeout(function(){console.log('aaa');setTimeout(function(){AutoFork(uid)}, (5000+Math.random()*5000));}, (5000+Math.random()*5000)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment