Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 10fastfingers.com - cheat
- **** @@v2 - UPDATE 29/03/13
- * by kyl3 (www.pastebin.com/u/kyl3)
- Hotkeys:
- - Press E for auto-type the next word and auto-enter.
- - Press I for full auto-type by the seconds that you set.
- - Press P for preview your results while you're typing/hacking.
- */
- if (!"jQuery" in window) throw "jQuery ($) not defined";
- var preview = false;
- (window.Hack = (function () {
- var Word = document.getElementsByClassName('highlight')[0];
- $('#inputfield').val(Word.innerHTML).trigger({
- type: 'keyup',
- which: 32
- });
- if (error_correct >= 319) {
- alert("Finished");
- (D) ? window.clearInterval(D) : null;
- }
- }))
- $(function () {
- $(document).keydown(function (k) {
- if (k.keyCode == 69) {
- Hack();
- return !1;
- }
- if (k.keyCode == 73) {
- window.D = window.setInterval(function () {
- Hack();
- }, prompt("Delay (in seconds)", "") * 1000);
- return !1;
- }
- if (preview) {
- wpm_now = Math.round(error_keystrokes / 5) + 2;
- $('#results-preview').html("<font size='+3'><b>WPM:</b> " + wpm_now + "<br><b>KeyStr:</b> " + error_keystrokes + "<br><b>Hits:</b> " + error_correct + "<br><b>Wrongs:</b> " + error_wrong + "</<font size='+3'>");
- }
- if (k.keyCode == 80) {
- $('#words').before("<div id='results-preview'></div>");
- preview = true;
- }
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement