SHEGGY MACRO SPLİT ! Press Shift !

Shift Macro Split, Q Macro Feed !

  1. // ==UserScript==
  2. // @name SHEGGY MACRO SPLİT ! Press Shift !
  3. // @namespace SHEGGY MACRO SPLİT
  4. // @version 1
  5. // @description Shift Macro Split, Q Macro Feed !
  6. // @author Gökhan Kıraç !
  7. // @match http://bubble.am/*
  8. // @match http://agarz.com/*
  9. // @match http://alis.io/*
  10. // @match http://rata.io/*
  11. // @match http://www.agarw.com/*
  12. // @match http://agar.io/*
  13. // @grant none
  14. // ==/UserScript==
  15. / jshint -W097 /
  16. 'use strict';
  17.  
  18. var SplitInterval;
  19. var MacroInterval;
  20. var SplitDebounce = false;
  21. var MacroDebounce = false;
  22. $(document).on('keydown', function(input) {
  23. console.log("got keydown")
  24. if (input.keyCode == 16) {
  25. if (SplitDebounce) {
  26. return;
  27. }
  28. SplitDebounce = true;
  29. SplitInterval = setInterval(function() {
  30. $("body").trigger($.Event("keydown", {
  31. keyCode: 32
  32. }));
  33. $("body").trigger($.Event("keyup", {
  34. keyCode: 32
  35. }));
  36. }, 0);
  37. } else if (input.keyCode == 81) {
  38. if (MacroDebounce) {
  39. return;
  40. }
  41. MacroDebounce = true;
  42. MacroInterval = setInterval(function() {
  43. $("body").trigger($.Event("keydown", {
  44. keyCode: 87
  45. }));
  46. $("body").trigger($.Event("keyup", {
  47. keyCode: 87
  48. }));
  49. }, 0);
  50. }
  51. })
  52.  
  53. $(document).on('keyup', function(input) {
  54. if (input.keyCode == 16) {
  55. SplitDebounce = false;
  56. clearInterval(SplitInterval);
  57. return;
  58. } else if (input.keyCode == 81) {
  59. MacroDebounce = false;
  60. clearInterval(MacroInterval);
  61. return;
  62. }
  63. })