Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. // ==UserScript==
  2. // @name speedhack v2
  3. // @version 2.00
  4. // @description przyspiesza postac pod przycisk(F)
  5. // @author adison
  6. // @match *://fobos.margonem.pl/
  7. // @match *://gefion.margonem.pl/
  8. // @grant none
  9. // ==/UserScript==
  10. var ready_to_runboost = false;
  11. $("<div id='speed' style='width: 15px; height: 15px; background: red; position: absolute; top: 240px; left: 122px; border-radius: 50%'><div>").appendTo("#panel");
  12. setTimeout(function() {
  13. document.getElementById("speed").style.background = "green";
  14. ready_to_runboost = true;
  15. }, 10000);
  16.  
  17. document.addEventListener("keyup", function(e) {
  18. if (e.target.tagName != "INPUT" && e.target.tagName != "TEXTAREA" && e.which == 71 && ready_to_runboost == true) {
  19. ready_to_runboost = false;
  20. document.getElementById("speed").style.background = "orange";
  21. var runboost = setInterval(gameThread, 150);
  22. setTimeout(function() {
  23. document.getElementById("speed").style.background = "red";
  24. clearInterval(runboost);
  25. setTimeout(function() {
  26. document.getElementById("speed").style.background = "green";
  27. ready_to_runboost = true;
  28. }, 10000);
  29. }, 2000);
  30. }
  31. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement