Created
October 27, 2014 12:49
-
-
Save Nessworthy/3338b8fda083c6c0598c to your computer and use it in GitHub Desktop.
PickerBot for game.ioxapp.com/color
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
/** | |
* Run this in your console, close your console and hit "Start". Refresh the page afterwards. | |
*/ | |
setInterval(function() { | |
var colors = {}; | |
$('#box').children().each(function() { | |
var t = $(this); | |
var x = t.css('background-color'); | |
if(typeof colors[x] == "undefined") { | |
colors[x] = t; | |
} else { | |
colors[x] = false; | |
} | |
}); | |
Object.keys(colors).map(function(key) { | |
if(colors[key] !== false) { | |
colors[key].click(); | |
} | |
}); | |
}, 5); // Will attempt to solve the active puzzle every 5ms. If you think you can go faster without your browser imploding, reduce this number. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment