Skip to content

Instantly share code, notes, and snippets.

@nntoan
Forked from dedy-purwanto/10fastfinger_bot.js
Created November 26, 2013 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nntoan/7667455 to your computer and use it in GitHub Desktop.
Save nntoan/7667455 to your computer and use it in GitHub Desktop.
/*
* BOT for 10fastfingers, automatic typing with adjustable speed
* ================================================================
*
* bored in my apartment and decided to hack this game: http://indonesian-speedtest.10fastfingers.com/
* just start the game, when you're ready to type, DON'T TYPE ANYTHING, open up
* your Developer Tools in Chrome (CTRL+SHIFT+J) and click Console tab, and
* then paste the whole code below, then press enter, and enjoy the show.
*
* twitter.com/kecebongsoft
*/
var word_idx = 0;
var interval_per_word = 250; // in milliseconds
function hackit(){
if(word_idx<words.length){
$('#inputfield').val(words[word_idx] + ' ');
var keyup = jQuery.Event('keyup');
keyup.which = 32;
$('#inputfield').trigger(keyup);
word_idx++;
setTimeout('hackit()', interval_per_word);
}
}
setTimeout('hackit()', interval_per_word);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment