Skip to content

Instantly share code, notes, and snippets.

@JohnnySheffield
Created April 28, 2014 20:49
Show Gist options
  • Save JohnnySheffield/11383578 to your computer and use it in GitHub Desktop.
Save JohnnySheffield/11383578 to your computer and use it in GitHub Desktop.
A small simple script to run in console for auto-playing Notch's game "Drowning in Problems" here: http://game.notch.net/drowning/#
window.setInterval(function(){
elementList = document.querySelectorAll("a");
for (var i = 0; i < elementList.length; ++i) {
var item = elementList[i];
item.click();
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment