Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. // ==UserScript==
  2. // @name SZYBKO CHOĆ
  3. // @version 0.1
  4. // @description dsadsadsa
  5. // @author
  6. // @match *://*/
  7. // @match https://www.margonem.pl/?task=*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. ! function(oldU, oldN) {
  12. var i = 0;
  13. var ready_to_runboost = false;
  14. var box1 = document.createElement("div");
  15. box1.id = "speed";
  16. box1.style = "width: 15px; height: 15px; background: red; position: absolute; top: -7px; left: 265px; border-radius: 50%";
  17. document.querySelector("#panel").appendChild(box1);
  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. i = 0;
  22. document.querySelector("#speed").style.background = "orange";
  23. var runboost = setInterval(gameThread, 150);
  24. setTimeout(function() {
  25. document.querySelector("#speed").style.background = "red";
  26. clearInterval(runboost);
  27. }, 2000);
  28. }
  29. })
  30. hero._u = function(e) {
  31. i++;
  32. if (i * 0.52 >= 5 && ready_to_runboost == false && document.querySelector("#speed").style.background == "red") {
  33. document.querySelector("#speed").style.background = "green";
  34. ready_to_runboost = true;
  35. }
  36. oldU.apply(this, arguments);
  37. }
  38. //ukrycie tej jebanej choinki w ithan pod ktora sie chowają cepy
  39. newNpc = e => {
  40. oldN(e);
  41. for(var i in e){
  42. var npc = e[i];
  43. if(npc.id == "77002"){
  44. document.querySelector(`#npc${npc.id}`).style.display = `none`;
  45. break;
  46. }
  47. }
  48. }
  49. }(hero._u, newNpc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement