Shadow19

10fastfingers Bot

Apr 3rd, 2014
417
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @id             TFFE
  3. // @name           TFF Exploit.
  4. // @version        1
  5. // @namespace      TFFEx
  6. // @author         Shadow19
  7. // @description    Exploit for 10fastfingers, all you do is wait for the first word to appear, then press space over and over. note: The WPM tracker is like 2-3 words off everytime cause the server uses ajax to determine the WPM, and the timezone is different than most peoples(unless you live in Germany) but it's fairly accurate.
  8. // @include        http://10fastfingers.com/*
  9. // @require        http://code.jquery.com/jquery-2.1.0.min.js
  10. // @grant unsafeWindow
  11. // @grant GM_notification
  12. // @run-at         document-end
  13. // ==/UserScript==
  14. var words, word, wordindex, input, start_time, correct_keystroke_counter, passed_time_in_seconds, tmp, started, sandbox, global;
  15. started = false;
  16. sandbox = false;
  17. window.unsafeWindow = window;
  18. window.onload=init
  19. function init(){
  20.     document.getElementById('reload-btn').onclick = function() {started = false; document.getElementById('top1000-auswertung').style.display = 'none'; };
  21.     global = setInterval(function(){
  22.         if(!started){
  23.             correct_keystroke_counter = 0;
  24.             passed_time_in_seconds = 0;
  25.             input = document.getElementById('inputfield');
  26.             wordindex = 0;
  27.             words = getWords();
  28.             word = words.split('|');
  29.             input.value = word[wordindex];
  30.             if(!sandbox){
  31.                 $('#inputfield').bind('keypress', function(event) {
  32.                     if(String.fromCharCode(event.charCode) == " "){
  33.                         if(!started){start_time = gT(); setInterval(function(){ passed_time_in_seconds = ((gT() - start_time) / 1000);},500);}
  34.                         Next();
  35.                         started = true;
  36.                     }
  37.                 })
  38.                 sandbox = true;
  39.             }
  40.         }
  41.     },1500);
  42. }
  43. function getWords(){return document.getElementById('wordlist').innerHTML;}
  44. function Next(){
  45.     tmp = parseInt(word[wordindex].length) + 1;
  46.     word = words.split('|');
  47.     input.value = word[wordindex];
  48.     correct_keystroke_counter += tmp;
  49.     wordindex+=1;
  50.     live_wpm = Math.round((correct_keystroke_counter/5) / (passed_time_in_seconds / 60));
  51.     passed_time_in_seconds = Math.round(passed_time_in_seconds);
  52.     GM_notification(wordindex + ' Words. WPM: '+live_wpm.toString() + ' seconds: '+ passed_time_in_seconds.toString());
  53. }
  54. function gT() {return new Date().getTime();}
RAW Paste Data