Agarplus.io/Gota

Gota.io script

  1. // ==UserScript==
  2. // @name Agarplus.io/Gota
  3. // @namespace YOLO
  4. // @version 1.2.2
  5. // @description Gota.io script
  6. // @author freebie - (editied by Christian)
  7. // @match http://gota.io/web/*
  8. // @grant GM_addStyle
  9. // @contributor pussi
  10. // ==/UserScript==
  11.  
  12. spike.src = "http://i.imgur.com/9h5l8WR.png";
  13. spike_mother.src = "https://3.bp.blogspot.com/-v7ske0vYsvI/V1n0QXZBhlI/AAAAAAAACoQ/_7ZKdQJVnFk8wx8duBPeOjyzPHKd82vGgCLcB/s320/zen5.png";
  14. GM_addStyle('* #logo {background-image: url("http://i.imgur.com/ehoqATC.png");}');
  15. addStyleSheet('@import url(https://fonts.googleapis.com/css?family=Ubuntu);');
  16. GM_addStyle('* @font-face {font-family: "Ubuntu"; src: url("https://fonts.googleapis.com/css?family=Ubuntu");}');
  17. GM_addStyle('* .coordinates {font-family: Ubuntu;}');
  18. GM_addStyle('* #leaderboard-panel {font-size: 25px;}');
  19.  
  20. var fillTextz = CanvasRenderingContext2D.prototype.fillText;
  21. CanvasRenderingContext2D.prototype.fillText = function(){
  22. var argumentz = arguments;
  23. if(this.canvas.id == 'leaderboard-canvas'){
  24. this.font = 'bold 13px Ubuntu';
  25. }
  26. if(this.canvas.id == 'minimap-canvas'){
  27. this.font = 'bold 15px Ubuntu';
  28. }
  29. if(this.canvas.id == 'party-canvas'){
  30. this.font = 'bold 12px Ubuntu';
  31. }
  32. fillTextz.apply(this, arguments);
  33. };
  34. function addStyleSheet(style){
  35. var getHead = document.getElementsByTagName("HEAD")[0];
  36. var cssNode = window.document.createElement( 'style' );
  37. var elementStyle= getHead.appendChild(cssNode);
  38. elementStyle.innerHTML = style;
  39. return elementStyle;
  40. }
  41. //DoubleSplit(Press Q)
  42. (function() {
  43. var amount = 2;
  44. var duration = 1; //ms
  45.  
  46. var overwriting = function(evt) {
  47. if (evt.keyCode === 81) { // KEY_Q
  48. for (var i = 0; i < amount; ++i) {
  49. setTimeout(function() {
  50. window.onkeydown({keyCode: 32}); // KEY_space
  51. window.onkeyup({keyCode: 32});
  52. }, i * duration);
  53. }
  54. }
  55. };
  56.  
  57. window.addEventListener('keydown', overwriting);
  58. })();
  59.  
  60. //Triple(Press E)
  61. (function() {
  62. var amount = 3;
  63. var duration = 1; //ms
  64.  
  65. var overwriting = function(evt) {
  66. if (evt.keyCode === 69) { // KEY_E
  67. for (var i = 0; i < amount; ++i) {
  68. setTimeout(function() {
  69. window.onkeydown({keyCode: 32}); // KEY_space
  70. window.onkeyup({keyCode: 32});
  71. }, i * duration);
  72. }
  73. }
  74. };
  75.  
  76. window.addEventListener('keydown', overwriting);
  77. })();
  78.  
  79. //16xSplit (Press Q)
  80. (function() {
  81. var amount = 4;
  82. var duration = 1; //ms
  83.  
  84. var overwriting = function(evt) {
  85. if (evt.keyCode === 16) { // KEY_SHIFT
  86. for (var i = 0; i < amount; ++i) {
  87. setTimeout(function() {
  88. window.onkeydown({keyCode: 32}); // KEY_space
  89. window.onkeyup({keyCode: 32});
  90. }, i * duration);
  91. }
  92. }
  93. };
  94.  
  95. window.addEventListener('keydown', overwriting);
  96. })();
  97.  
  98. //LineSplitKey
  99. document.onkeydown = checkKey;
  100. function checkKey(e) {
  101. e = e || window.event;
  102. if (e.keyCode == '82') {
  103. player.mouseRawX = canvas.width / 2;
  104. player.mouseRawY = canvas.height / 2;
  105. }
  106. }
  107.  
  108.  
  109.  
  110. //Custom Crosshair
  111. GM_addStyle ('* body {cursor: crosshair;}');
  112.  
  113. //Version
  114. var maincontent = document.getElementById("main-content");
  115. var ffscversion = document.createElement("div");
  116. ffscversion.innerHTML = "Version: 1.2.2 || By Christian " + "<br> Q -Double Split , E - TripleSplit , Shift - TrickSplit , R - LineSplit </br>" + "<br> F - Hide/Show Mass </br>";
  117. ffscversion.id = 'ffecscript';
  118. maincontent.appendChild(ffscversion);
  119. document.getElementById("ffecscript").style.textAlign = "center";
  120. document.getElementById("ffecscript").style.fontSize = "12px";
  121. document.getElementById("ffecscript").style.color = "white";
  122.  
  123. //social buttons remove
  124. $(".main-bottom-links").replaceWith("");
  125.  
  126. //Border Removal
  127. document.getElementById("leaderboard-panel").style.borderRadius = "0";
  128. document.getElementById("leaderboard-panel").style.borderWidth = "0px";
  129. document.getElementById("leaderboard-panel").style.boxShadow = "0px 0px 0px black";
  130. document.getElementById("score-panel").style.borderRadius = "4px";
  131. document.getElementById("score-panel").style.borderWidth = "0px";
  132. document.getElementById("score-panel").style.boxShadow = "0px 2px 0px gray";
  133. document.getElementById("minimap-panel").style.borderRadius = "0";
  134. document.getElementById("minimap-panel").style.borderWidth = "0px";
  135. document.getElementById("minimap-panel").style.boxShadow = "0px 0px 0px white";
  136. document.getElementById("minimap-panel").style.marginBottom = "3px";
  137. document.getElementById("party-panel").style.borderRadius = "0";
  138. document.getElementById("party-panel").style.borderWidth = "0px";
  139. document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";
  140.  
  141. //Custom Borders
  142. GM_addStyle('* .main-panel {border: solid 3px rgba(99, 97, 95, 0.5)}');
  143. GM_addStyle('* .main-panel {border-radius: 0px}');
  144. GM_addStyle('* .main-panel {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  145. GM_addStyle('* .gota-btn {border-radius: 15px}');
  146. GM_addStyle('* .main-bottom-stats {border-radius: 7px}');
  147. GM_addStyle('* #popup-party {border-radius: 0px}');
  148. GM_addStyle('* #popup-party {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  149. GM_addStyle('* #popup-login {border-radius: 0px}');
  150. GM_addStyle('* #popup-login {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
  151. GM_addStyle('* .login-input {border-radius: 2px}');
  152. GM_addStyle('* #chat-input {border-radius: 0 0 0px 0px}');
  153. GM_addStyle('* .ui-pane {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
  154.  
  155. //Miscellaneous UI Changing code
  156. GM_addStyle('* #chat-panel {width: 300px}');
  157. GM_addStyle('* #chat-panel {height: 195px}');
  158. GM_addStyle('* #chat-input {font-weight: bold}');
  159. GM_addStyle('* .stext {margin-top: 2px}');
  160. GM_addStyle('* .stext {margin-bottom: 2px}');
  161.  
  162. //For LeaderBoard
  163. var fz = "Â Â Â Agarplus.io";
  164.  
  165. //LeaderBoard
  166. $(".lh").replaceWith(fz);
  167.  
  168. $("#main-rb").replaceWith("Cunt");
  169. GM_addStyle ('* #main {left: 350px;}');
  170.  
  171. $("#btnforums").replaceWith("Fuck");
  172. GM_addStyle ('* #main {left: 350px;}');
  173.  
  174. //Score Panel
  175. setInterval(function() {
  176. document.getElementById("score-panel").innerText = " Score: " + player.score + " " + " " + "\n Cells: " + player.myCells.length + "/16" + " " + "\n Rainbow: F2 \n Alpha: F4 \n Zoom: ~ \n  " + "Edited By Cristian ";
  177. }, 100);
  178. //Keypress
  179. document.addEventListener('keydown', function(e) {
  180. var key = e.keyCode || e.which;
  181. switch (key) {
  182. case 113:
  183. if (player.rainbow === false) {
  184. player.rainbow = true;
  185. } else {
  186. player.rainbow = false;
  187. }
  188. }
  189. });
  190.  
  191. document.addEventListener('keydown', function(e) {
  192. var key = e.keyCode || e.which;
  193. switch (key) {
  194. case 115:
  195. if (settings.alpha === 1) {
  196. settings.alpha = 0.4;
  197. } else {
  198. settings.alpha = 1;
  199. }
  200. }
  201. });
  202.  
  203. document.addEventListener('keydown', function(e) {
  204. var key = e.keyCod || e.which;
  205. switch (key) {
  206. case 192:
  207. player.mouseZoom = player.mouseZoom - 0.1;
  208. }
  209. });
  210.  
  211. document.addEventListener('keydown', function(e) {
  212. var key = e.keyCode || e.which;
  213. switch (key) {
  214. case 70:
  215. if (options.cHideFood === true) {
  216. options.cHideFood = false;
  217. } else {
  218. options.cHideFood = true;
  219. }
  220. }
  221. });