Advertisement
Guest User

Meow

a guest
Oct 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.58 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Gota Script
  3. // @namespace Pretty Good Gota Script
  4. // @description T - 16 Split -|- Y - Triple Split -|- U - Double Split -|- Tab - Cursor Center -|- ~ - Blue Mode -|- F - Hide Pellets -|- N - Hide Names + More
  5. // @version Meow
  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, Viruses and Mothercells
  20. spike.src = "http://i.imgur.com/taMytTI.png";
  21. spike_mother.src = "http://i.imgur.com/1ZmrbW4.png";
  22. addStyleSheet('@import url(https://fonts.googleapis.com/css?family=Ubuntu);');
  23. GM_addStyle('* #logo {background-image: url("http://i.imgur.com/l0QnU0E.png");}');
  24. GM_addStyle('* #minimap-canvas {background-image: url("http://i.imgur.com/QMBgZaC.png");}');
  25. GM_addStyle('*{font-family: Ubuntu;}');
  26. GM_addStyle('* .coordinates {font-family: Ubuntu;}');
  27. GM_addStyle('* #leaderboard-panel {font-size: 24px;}');
  28.  
  29. var fillTextz = CanvasRenderingContext2D.prototype.fillText;
  30. CanvasRenderingContext2D.prototype.fillText = function(){
  31. var argumentz = arguments;
  32. if(this.canvas.id == 'leaderboard-canvas'){
  33. this.font = 'bold 15px Ubuntu';
  34. }
  35. if(this.canvas.id == 'minimap-canvas'){
  36. this.font = 'bold 15px Ubuntu';
  37. }
  38. if(this.canvas.id == 'party-canvas'){
  39. this.font = 'bold 15px Ubuntu';
  40. }
  41. fillTextz.apply(this, arguments);
  42. };
  43.  
  44. //Border Removal
  45. document.getElementById("leaderboard-panel").style.borderRadius = "0";
  46. document.getElementById("leaderboard-panel").style.borderWidth = "0px";
  47. document.getElementById("leaderboard-panel").style.boxShadow = "0px 0px 0px black";
  48. document.getElementById("score-panel").style.borderRadius = "0";
  49. document.getElementById("score-panel").style.borderWidth = "0px";
  50. document.getElementById("score-panel").style.boxShadow = "0px 0px 0px black";
  51. document.getElementById("minimap-panel").style.borderRadius = "0";
  52. document.getElementById("minimap-panel").style.borderWidth = "0px";
  53. document.getElementById("minimap-panel").style.boxShadow = "0px 0px 0px black";
  54. document.getElementById("minimap-panel").style.marginBottom = "3px";
  55. document.getElementById("party-panel").style.borderRadius = "0";
  56. document.getElementById("party-panel").style.borderWidth = "0px";
  57. document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";
  58.  
  59. //Panel Borders
  60. GM_addStyle('* .main-panel {border: solid 3px rgba(99, 97, 95, 0.5)}');
  61. GM_addStyle('* .main-panel {border-radius: 0px}');
  62. GM_addStyle('* .main-panel {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  63. GM_addStyle('* .gota-btn {border-radius: 15px}');
  64. GM_addStyle('* .main-bottom-stats {border-radius: 5px}');
  65. GM_addStyle('* #popup-party {border-radius: 0px}');
  66. GM_addStyle('* #popup-party {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  67. GM_addStyle('* #popup-login {border-radius: 0px}');
  68. GM_addStyle('* #popup-login {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  69. GM_addStyle('* .login-input {border-radius: 0px}');
  70. GM_addStyle('* #chat-input {border-radius: 0 0 0px 0px}');
  71. GM_addStyle('* .ui-pane {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  72.  
  73. //Chat Size
  74. GM_addStyle('* #chat-panel {width: 300px}');
  75. GM_addStyle('* #chat-panel {height: 195px}');
  76.  
  77. //Social Media Buttons Removal
  78. $(".main-bottom-links").replaceWith("");
  79.  
  80. //Instructions
  81. var maincontent = document.getElementById("main-content");
  82. var ffscversion = document.createElement("div");
  83. ffscversion.innerHTML = 'T - Tricksplit -|- Y - Triplesplit -|- U - Double split -|- Tab - Linesplit';
  84. ffscversion.id = 'instructions';
  85. maincontent.appendChild(ffscversion);
  86. document.getElementById("instructions").style.textAlign = "center";
  87. document.getElementById("instructions").style.fontSize = "12px";
  88. document.getElementById("instructions").style.color = "white";
  89.  
  90. //LeaderBoard
  91. var fz = "   ᒪᗴᗩᗪᗴᖇ ᗷᗝᗩᖇᗪ";
  92.  
  93. $(".lh").replaceWith(fz);
  94.  
  95. $("#main-rb").replaceWith("");
  96. GM_addStyle ('* #main {left: 350px;}');
  97.  
  98. $("#btnforums").replaceWith("");
  99. GM_addStyle ('* #main {left: 350px;}');
  100.  
  101. //Custom Cursor
  102. GM_addStyle ('* body {cursor: crosshair;}');
  103.  
  104. //Line Split Macro
  105. document.onkeydown = checkKey;
  106. function checkKey(e) {
  107. e = e || window.event;
  108. if (e.keyCode == '9') {
  109. player.mouseRawX = canvas.width / 2;
  110. player.mouseRawY = canvas.height / 2;
  111. }
  112. }
  113.  
  114. //Double Split
  115. (function() {
  116. var amount = 2;
  117. var duration = 5;
  118.  
  119. var overwriting = function(evt) {
  120. if (evt.keyCode === 85) {
  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. //Triple Split Macro
  134. (function() {
  135. var amount = 3;
  136. var duration = 5;
  137.  
  138. var overwriting = function(evt) {
  139. if (evt.keyCode === 89) {
  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.  
  152. //16 Split Macro
  153. (function() {
  154. var amount = 4;
  155. var duration = 5;
  156.  
  157. var overwriting = function(evt) {
  158. if (evt.keyCode === 84) {
  159. for (var i = 0; i < amount; ++i) {
  160. setTimeout(function() {
  161. window.onkeydown({keyCode: 32});
  162. window.onkeyup({keyCode: 32});
  163. }, i * duration);
  164. }
  165. }
  166. };
  167.  
  168. window.addEventListener('keydown', overwriting);
  169. })();
  170.  
  171. document.addEventListener('keydown', function(e) {
  172. var key = e.keyCode || e.which;
  173. switch (key) {
  174. case 70:
  175. if (options.cHideFood === true) {
  176. options.cHideFood = false;
  177. } else {
  178. options.cHideFood = true;
  179. }
  180. }
  181. });
  182. document.addEventListener('keydown', function(e) {
  183. var key = e.keyCode || e.which;
  184. switch (key) {
  185. case 83:
  186. if (options.cHideSkins === true) {
  187. options.cHideSkins = false;
  188. } else {
  189. options.cHideSkins = true;
  190. }
  191. }
  192. });
  193. document.addEventListener('keydown', function(e) {
  194. var key = e.keyCode || e.which;
  195. switch (key) {
  196. case 78:
  197. if (options.cHideNames === true) {
  198. options.cHideNames = false;
  199. } else {
  200. options.cHideNames = true;
  201. }
  202. }
  203. });
  204. //Blue Mode
  205. document.addEventListener('keydown', function(e) {
  206. var key = e.keyCode || e.which;
  207. switch (key) {
  208. case 192:
  209. if (player.rainbow === false) {
  210. player.rainbow = true;
  211. rainbowColors = ["#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff", "#0000ff"];
  212. } else {
  213. player.rainbow = false;
  214. }
  215. }
  216. });
  217. //Remove some of the code sections if you dislike them
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement