Gota Script

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

目前為 2016-11-22 提交的版本,檢視 最新版本

  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 8.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.  
  71. //Chat Size
  72. GM_addStyle('* #chat-panel {width: 300px}');
  73. GM_addStyle('* #chat-panel {height: 195px}');
  74.  
  75. //Social Media Buttons Removal
  76. $(".main-bottom-links").replaceWith("");
  77.  
  78. //Instructions
  79. var maincontent = document.getElementById("main-content");
  80. var version = document.createElement("div");
  81. version.innerHTML = 'T - Tricksplit -|- Y - Triplesplit -|- U - Double split';
  82. version.id = 'instructions';
  83. maincontent.appendChild(version);
  84. document.getElementById("instructions").style.textAlign = "center";
  85. document.getElementById("instructions").style.fontSize = "12px";
  86. document.getElementById("instructions").style.color = "white";
  87.  
  88. //Ad Remove
  89. $("#main-rb").replaceWith("");
  90. GM_addStyle ('* #main {left: 350px;}');
  91.  
  92. //Custom Cursor
  93. GM_addStyle ('* body {cursor: crosshair;}');
  94.  
  95. //Double Split
  96. (function() {
  97. var amount = 2;
  98. var duration = 5;
  99.  
  100. var overwriting = function(evt) {
  101. if (evt.keyCode === 85) {
  102. for (var i = 0; i < amount; ++i) {
  103. setTimeout(function() {
  104. window.onkeydown({keyCode: 32});
  105. window.onkeyup({keyCode: 32});
  106. }, i * duration);
  107. }
  108. }
  109. };
  110.  
  111. window.addEventListener('keydown', overwriting);
  112. })();
  113.  
  114. //Triple Split Macro
  115. (function() {
  116. var amount = 3;
  117. var duration = 5;
  118.  
  119. var overwriting = function(evt) {
  120. if (evt.keyCode === 89) {
  121. for (var i = 0; i < amount; ++i) {
  122. setTimeout(function() {
  123. window.onkeydown({keyCode: 32});
  124. window.onkeyup({keyCode: 32});
  125. }, i * duration);
  126. }
  127. }
  128. };
  129.  
  130. window.addEventListener('keydown', overwriting);
  131. })();
  132.  
  133. //16 Split Macro
  134. (function() {
  135. var amount = 4;
  136. var duration = 5;
  137.  
  138. var overwriting = function(evt) {
  139. if (evt.keyCode === 84) {
  140. for (var i = 0; i < amount; ++i) {
  141. setTimeout(function() {
  142. window.onkeydown({keyCode: 32});
  143. window.onkeyup({keyCode: 32});
  144. }, i * duration);
  145. }
  146. }
  147. };
  148.  
  149. window.addEventListener('keydown', overwriting);
  150. })();
  151. //Remove some of the code sections if you dislike them