Advertisement
IdontCare21

Untitled

Jul 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. //Here
  2.  
  3. var jq = document.createElement('script');
  4. jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
  5. document.getElementsByTagName('head')[0].appendChild(jq);
  6. // ... give time for script to load, then type.
  7. jQuery.noConflict();
  8. // execute the following script in the console
  9. (function($)
  10. {
  11. var inputText;
  12. var flag = true;
  13. var i = 0;
  14. $('body').on('keypress','.txtInput',function(e)
  15. {
  16. if(flag)
  17. {
  18. inputText = $('.inputPanel tr:first').text();
  19. flag = false;
  20. }
  21. if(inputText[i] == " ")
  22. {
  23. if((e.which || e.keyCode)==32)
  24. i++;
  25. else
  26. e.preventDefault();
  27. }
  28. else
  29. {
  30. e.preventDefault();
  31. $( '.txtInput' ).val($( '.txtInput' ).val()+inputText[i]);
  32. i++;
  33. }
  34. });
  35. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement