Last active
May 3, 2016 14:08
-
-
Save prise6/4db814a580d80cc3818a92412341fd3e to your computer and use it in GitHub Desktop.
Hack of http://10fastfingers.com website - greasemonkey \o/
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
// ==UserScript== | |
// @name 10fast | |
// @namespace test | |
// @include http://10fastfingers.com/typing-test/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$('body').on('click', function(){ | |
var word = $('#row1 span[wordnr]') | |
var i = 0; | |
$('#inputfield').on('keypress', function(e){ | |
$('#inputfield').val(word.get(i).innerHTML) | |
i++; | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
_Just for fun :)_