Skip to content

Instantly share code, notes, and snippets.

@chnbohwr
Created September 19, 2015 02:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chnbohwr/e88144ab00c4dcef5448 to your computer and use it in GitHub Desktop.
Save chnbohwr/e88144ab00c4dcef5448 to your computer and use it in GitHub Desktop.
/**
* 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