Skip to content

Instantly share code, notes, and snippets.

@angelo-v
Last active November 27, 2015 18:51
Show Gist options
  • Save angelo-v/c26629ddd02b74ce38d0 to your computer and use it in GitHub Desktop.
Save angelo-v/c26629ddd02b74ce38d0 to your computer and use it in GitHub Desktop.
Literally a "cheat code" for the speed test at http://10fastfingers.com/typing-test/
(function() {
var next = jQuery.Event("keyup");
next.which = 32;
var firstword = $('#words span.highlight').text()
var typenext = function(word) {
$('#inputfield').val(word);
$('#inputfield').trigger(next);
var nextword = $('#words span.highlight').text()
if (nextword) {
setTimeout(typenext, 10, nextword);
}
}
typenext(firstword)
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment