Gota.io MACRO!

E - 16 Split -|- Q - Triple Split -|- D - Double Split |- R - Pop Split

  1. // ==UserScript==
  2. // @name Gota.io MACRO!
  3. // @namespace Good Macro For Gota.io
  4. // @description E - 16 Split -|- Q - Triple Split -|- D - Double Split |- R - Pop Split
  5. // @version 3.0
  6. // @author Zypho
  7. // @match http://gota.io/web/*
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. function addStyleSheet(style){
  12. var getHead = document.getElementsByTagName("HEAD")[0];
  13. var cssNode = window.document.createElement( 'style' );
  14. var elementStyle= getHead.appendChild(cssNode);
  15. elementStyle.innerHTML = style;
  16. return elementStyle;
  17. }
  18.  
  19. //Border Removal
  20. document.getElementById("leaderboard-panel").style.borderRadius = "0";
  21. document.getElementById("leaderboard-panel").style.borderWidth = "0px";
  22. document.getElementById("leaderboard-panel").style.boxShadow = "0px 0px 0px black";
  23. document.getElementById("score-panel").style.borderRadius = "0";
  24. document.getElementById("score-panel").style.borderWidth = "0px";
  25. document.getElementById("score-panel").style.boxShadow = "0px 0px 0px black";
  26. document.getElementById("minimap-panel").style.borderRadius = "0";
  27. document.getElementById("minimap-panel").style.borderWidth = "0px";
  28. document.getElementById("minimap-panel").style.boxShadow = "0px 0px 0px black";
  29. document.getElementById("minimap-panel").style.marginBottom = "3px";
  30. document.getElementById("party-panel").style.borderRadius = "0";
  31. document.getElementById("party-panel").style.borderWidth = "0px";
  32. document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";
  33.  
  34. //Panel Borders
  35. GM_addStyle('* .main-panel {border: solid 3px rgba(99, 97, 95, 0.5)}');
  36. GM_addStyle('* .main-panel {border-radius: 0px}');
  37. GM_addStyle('* .main-panel {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  38. GM_addStyle('* .gota-btn {border-radius: 15px}');
  39. GM_addStyle('* .main-bottom-stats {border-radius: 5px}');
  40. GM_addStyle('* #popup-party {border-radius: 0px}');
  41. GM_addStyle('* #popup-party {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  42. GM_addStyle('* #popup-login {border-radius: 0px}');
  43. GM_addStyle('* #popup-login {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  44. GM_addStyle('* .login-input {border-radius: 0px}');
  45. GM_addStyle('* #chat-input {border-radius: 0 0 0px 0px}');
  46. GM_addStyle('* .ui-pane {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  47.  
  48. //Custom Cursor
  49. GM_addStyle ('* body {cursor: crosshair;}');
  50.  
  51. //Chat Size
  52. GM_addStyle('* #chat-panel {width: 300px}');
  53. GM_addStyle('* #chat-panel {height: 195px}');
  54.  
  55. //Social Media Buttons Removal
  56. $(".main-bottom-links").replaceWith("");
  57.  
  58. //Instructions
  59. var maincontent = document.getElementById("main-content");
  60. var version = document.createElement("div");
  61. version.innerHTML = 'E - 16 Split -|- T - Triple Split -|- D - Double Split |- R - Pop Split ';
  62. version.id = 'instructions';
  63. maincontent.appendChild(version);
  64. document.getElementById("instructions").style.textAlign = "center";
  65. document.getElementById("instructions").style.fontSize = "12px";
  66. document.getElementById("instructions").style.color = "white";
  67.  
  68. //Ad Remove
  69. $("#main-rb").replaceWith("");
  70. GM_addStyle ('* #main {left: 350px;}');
  71.  
  72. //Custom Cursor
  73. GM_addStyle ('* body {cursor: crosshair;}');
  74.  
  75. //Double Split
  76. (function() {
  77. var amount = 2;
  78. var duration = 5;
  79.  
  80. var overwriting = function(evt) {
  81. if (evt.keyCode === 68) {
  82. for (var i = 0; i < amount; ++i) {
  83. setTimeout(function() {
  84. window.onkeydown({keyCode: 32});
  85. window.onkeyup({keyCode: 32});
  86. }, i * duration);
  87. }
  88. }
  89. };
  90.  
  91. window.addEventListener('keydown', overwriting);
  92. })();
  93.  
  94. //Triple Split Macro
  95. (function() {
  96. var amount = 3;
  97. var duration = 5;
  98.  
  99. var overwriting = function(evt) {
  100. if (evt.keyCode === 81) {
  101. for (var i = 0; i < amount; ++i) {
  102. setTimeout(function() {
  103. window.onkeydown({keyCode: 32});
  104. window.onkeyup({keyCode: 32});
  105. }, i * duration);
  106. }
  107. }
  108. };
  109.  
  110. window.addEventListener('keydown', overwriting);
  111. })();
  112.  
  113. //16 Split Macro
  114. (function() {
  115. var amount = 4;
  116. var duration = 5;
  117.  
  118. var overwriting = function(evt) {
  119. if (evt.keyCode === 69) {
  120. for (var i = 0; i < amount; ++i) {
  121. setTimeout(function() {
  122. window.onkeydown({keyCode: 32});
  123. window.onkeyup({keyCode: 32});
  124. }, i * duration);
  125. }
  126. }
  127. };
  128.  
  129. window.addEventListener('keydown', overwriting);
  130. })();
  131.  
  132. //Pop Split
  133. (function() {
  134. var amount = 2;
  135. var duration = 120;
  136.  
  137. var overwriting = function(evt) {
  138. if (evt.keyCode === 82) {
  139. for (var i = 0; i < amount; ++i) {
  140. setTimeout(function() {
  141. window.onkeydown({keyCode: 32});
  142. window.onkeyup({keyCode: 32});
  143. }, i * duration);
  144. }
  145. }
  146. };
  147.  
  148. window.addEventListener('keydown', overwriting);
  149. })();