Gota Script

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

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

  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
  6. // @author FFEC & Freebie - 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. //LeaderBoard
  89. var fz = "   ᒪᗴᗩᗪᗴᖇ ᗷᗝᗩᖇᗪ";
  90.  
  91. $(".lh").replaceWith(fz);
  92.  
  93. $("#main-rb").replaceWith("");
  94. GM_addStyle ('* #main {left: 350px;}');
  95.  
  96. $("#btnforums").replaceWith("");
  97. GM_addStyle ('* #main {left: 350px;}');
  98.  
  99. //Custom Cursor
  100. GM_addStyle ('* body {cursor: crosshair;}');
  101.  
  102. //Double Split
  103. (function() {
  104. var amount = 2;
  105. var duration = 5;
  106.  
  107. var overwriting = function(evt) {
  108. if (evt.keyCode === 85) {
  109. for (var i = 0; i < amount; ++i) {
  110. setTimeout(function() {
  111. window.onkeydown({keyCode: 32});
  112. window.onkeyup({keyCode: 32});
  113. }, i * duration);
  114. }
  115. }
  116. };
  117.  
  118. window.addEventListener('keydown', overwriting);
  119. })();
  120.  
  121. //Triple Split Macro
  122. (function() {
  123. var amount = 3;
  124. var duration = 5;
  125.  
  126. var overwriting = function(evt) {
  127. if (evt.keyCode === 89) {
  128. for (var i = 0; i < amount; ++i) {
  129. setTimeout(function() {
  130. window.onkeydown({keyCode: 32});
  131. window.onkeyup({keyCode: 32});
  132. }, i * duration);
  133. }
  134. }
  135. };
  136.  
  137. window.addEventListener('keydown', overwriting);
  138. })();
  139.  
  140. //16 Split Macro
  141. (function() {
  142. var amount = 4;
  143. var duration = 5;
  144.  
  145. var overwriting = function(evt) {
  146. if (evt.keyCode === 84) {
  147. for (var i = 0; i < amount; ++i) {
  148. setTimeout(function() {
  149. window.onkeydown({keyCode: 32});
  150. window.onkeyup({keyCode: 32});
  151. }, i * duration);
  152. }
  153. }
  154. };
  155.  
  156. window.addEventListener('keydown', overwriting);
  157. })();
  158. //Remove some of the code sections if you dislike them