Created
September 19, 2015 02:14
-
-
Save chnbohwr/e88144ab00c4dcef5448 to your computer and use it in GitHub Desktop.
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
/** | |
* game url : http://zzzscore.com/1to50/en/ | |
* paste code in console , and happy to hack | |
*/ | |
var Hacker = function () { | |
var self = this; | |
self.now_click_number = 1; | |
function getNextBox() { | |
if (self.now_click_number > 50) { | |
return; | |
} | |
var box_list = $('#grid div'); | |
for (var i in box_list) { | |
var box = box_list[i]; | |
if (parseInt(box.textContent) === self.now_click_number) { | |
clickBox($(box)); | |
return; | |
} | |
} | |
} | |
function clickBox(box) { | |
box.trigger('tap'); | |
self.now_click_number += 1; | |
setTimeout(getNextBox,100); | |
} | |
getNextBox(); | |
} | |
new Hacker(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment