Gota Script

T - 16 Split -|- Y - Triple Split -|- U - Double Split

当前为 2016-11-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Gota Script
  3. // @namespace Pretty Good Gota Script
  4. // @description T - 16 Split -|- Y - Triple Split -|- U - Double Split
  5. // @version 9.5
  6. // @author FFEC - Editted By Silf
  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. //Custom Font, Logo, Minimap
  20. addStyleSheet('@import url(https://fonts.googleapis.com/css?family=Ubuntu);');
  21. GM_addStyle('* #logo {background-image: url("http://i.imgur.com/l0QnU0E.png");}');
  22. GM_addStyle('* #minimap-canvas {background-image: url("http://i.imgur.com/QMBgZaC.png");}');
  23. GM_addStyle('*{font-family: Ubuntu;}');
  24. GM_addStyle('* .coordinates {font-family: Ubuntu;}');
  25. GM_addStyle('* #leaderboard-panel {font-size: 24px;}');
  26.  
  27. var fillTextz = CanvasRenderingContext2D.prototype.fillText;
  28. CanvasRenderingContext2D.prototype.fillText = function(){
  29. var argumentz = arguments;
  30. if(this.canvas.id == 'leaderboard-canvas'){
  31. this.font = 'bold 15px Ubuntu';
  32. }
  33. if(this.canvas.id == 'minimap-canvas'){
  34. this.font = 'bold 15px Ubuntu';
  35. }
  36. if(this.canvas.id == 'party-canvas'){
  37. this.font = 'bold 15px Ubuntu';
  38. }
  39. fillTextz.apply(this, arguments);
  40. };
  41.  
  42. //Border Removal
  43. document.getElementById("leaderboard-panel").style.borderRadius = "0";
  44. document.getElementById("leaderboard-panel").style.borderWidth = "0px";
  45. document.getElementById("leaderboard-panel").style.boxShadow = "0px 0px 0px black";
  46. document.getElementById("score-panel").style.borderRadius = "0";
  47. document.getElementById("score-panel").style.borderWidth = "0px";
  48. document.getElementById("score-panel").style.boxShadow = "0px 0px 0px black";
  49. document.getElementById("minimap-panel").style.borderRadius = "0";
  50. document.getElementById("minimap-panel").style.borderWidth = "0px";
  51. document.getElementById("minimap-panel").style.boxShadow = "0px 0px 0px black";
  52. document.getElementById("minimap-panel").style.marginBottom = "3px";
  53. document.getElementById("party-panel").style.borderRadius = "0";
  54. document.getElementById("party-panel").style.borderWidth = "0px";
  55. document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";
  56.  
  57. //Panel Borders
  58. GM_addStyle('* .main-panel {border: solid 3px rgba(99, 97, 95, 0.5)}');
  59. GM_addStyle('* .main-panel {border-radius: 0px}');
  60. GM_addStyle('* .main-panel {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  61. GM_addStyle('* .gota-btn {border-radius: 15px}');
  62. GM_addStyle('* .main-bottom-stats {border-radius: 5px}');
  63. GM_addStyle('* #popup-party {border-radius: 0px}');
  64. GM_addStyle('* #popup-party {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  65. GM_addStyle('* #popup-login {border-radius: 0px}');
  66. GM_addStyle('* #popup-login {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  67. GM_addStyle('* .login-input {border-radius: 0px}');
  68. GM_addStyle('* #chat-input {border-radius: 0 0 0px 0px}');
  69. GM_addStyle('* .ui-pane {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  70. GM_addStyle('* #main-cover {display: none}');
  71.  
  72. //Chat Size
  73. GM_addStyle('* #chat-panel {width: 300px}');
  74. GM_addStyle('* #chat-panel {height: 195px}');
  75.  
  76. //Social Media Buttons Removal
  77. $(".main-bottom-links").replaceWith("");
  78.  
  79. //Instructions
  80. var maincontent = document.getElementById("main-content");
  81. var version = document.createElement("div");
  82. version.innerHTML = 'T - Tricksplit -|- Y - Triplesplit -|- U - Double split';
  83. version.id = 'instructions';
  84. maincontent.appendChild(version);
  85. document.getElementById("instructions").style.textAlign = "center";
  86. document.getElementById("instructions").style.fontSize = "12px";
  87. document.getElementById("instructions").style.color = "white";
  88.  
  89. //Ad Remove
  90. $("#main-rb").replaceWith("");
  91. GM_addStyle ('* #main {left: 350px;}');
  92.  
  93. //Custom Cursor
  94. GM_addStyle ('* body {cursor: crosshair;}');
  95.  
  96. //Double Split
  97. (function() {
  98. var amount = 2;
  99. var duration = 5;
  100.  
  101. var overwriting = function(evt) {
  102. if (evt.keyCode === 85) {
  103. for (var i = 0; i < amount; ++i) {
  104. setTimeout(function() {
  105. window.onkeydown({keyCode: 32});
  106. window.onkeyup({keyCode: 32});
  107. }, i * duration);
  108. }
  109. }
  110. };
  111.  
  112. window.addEventListener('keydown', overwriting);
  113. })();
  114.  
  115. //Triple Split Macro
  116. (function() {
  117. var amount = 3;
  118. var duration = 5;
  119.  
  120. var overwriting = function(evt) {
  121. if (evt.keyCode === 89) {
  122. for (var i = 0; i < amount; ++i) {
  123. setTimeout(function() {
  124. window.onkeydown({keyCode: 32});
  125. window.onkeyup({keyCode: 32});
  126. }, i * duration);
  127. }
  128. }
  129. };
  130.  
  131. window.addEventListener('keydown', overwriting);
  132. })();
  133.  
  134. //16 Split Macro
  135. (function() {
  136. var amount = 4;
  137. var duration = 5;
  138.  
  139. var overwriting = function(evt) {
  140. if (evt.keyCode === 84) {
  141. for (var i = 0; i < amount; ++i) {
  142. setTimeout(function() {
  143. window.onkeydown({keyCode: 32});
  144. window.onkeyup({keyCode: 32});
  145. }, i * duration);
  146. }
  147. }
  148. };
  149.  
  150. window.addEventListener('keydown', overwriting);
  151. })();
  152.  
  153. //Hide Chat
  154. document.addEventListener('keydown', function(e) {
  155. var key = e.keyCod || e.which;
  156. switch (key) {case 67: // C
  157. document.getElementById("cHideChat").click();}});
  158.  
  159. //Hide Pellets
  160. document.addEventListener('keydown', function(e) {
  161. var key = e.keyCod || e.which;
  162. switch (key) {case 70: // P
  163. document.getElementById("cHideFood").click();}});
  164.  
  165. //Hide Skins
  166. document.addEventListener('keydown', function(e) {
  167. var key = e.keyCod || e.which;
  168. switch (key) {case 83: // S
  169. document.getElementById("cHideSkins").click();}});
  170. //Remove some of the code sections if you dislike them