Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 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 *://deimos.margonem.pl/
  7. // @match *://berufs.margonem.pl/
  8. // @match *://fobos.margonem.pl/
  9. // @grant none
  10. // ==/UserScript==
  11. var ready_to_runboost = false;
  12. $("<div id='speed' style='width: 15px; height: 15px; background: red; position: absolute; top: 240px; left: 122px; border-radius: 50%'><div>").appendTo("#panel");
  13. setTimeout(function() {
  14. document.getElementById("speed").style.background = "green";
  15. ready_to_runboost = true;
  16. }, 10000);
  17.  
  18. document.addEventListener("keyup", function(e) {
  19. if (e.target.tagName != "INPUT" && e.target.tagName != "TEXTAREA" && e.which == 71 && ready_to_runboost == true) {
  20. ready_to_runboost = false;
  21. document.getElementById("speed").style.background = "orange";
  22. var runboost = setInterval(gameThread, 150);
  23. setTimeout(function() {
  24. document.getElementById("speed").style.background = "red";
  25. clearInterval(runboost);
  26. setTimeout(function() {
  27. document.getElementById("speed").style.background = "green";
  28. ready_to_runboost = true;
  29. }, 10000);
  30. }, 2000);
  31. }
  32. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement