The ULTIMATE Agario Script

Easily configurable keys in code. Credits to Jack Burch, Tom Burris AND Ali Ahfad Mehdi

  1. // ==UserScript==
  2. // @name The ULTIMATE Agario Script
  3. // @name:en The ULTIMATE Agario Script
  4. // @name:de The ULTIMATE Agario Script
  5. // @namespace http://tampermonkey.net/
  6. // @version 2.4.1
  7. // @description Easily configurable keys in code. Credits to Jack Burch, Tom Burris AND Ali Ahfad Mehdi
  8. // @description:de Easily configurable keys in code. Credits to Jack Burch, Tom Burris AND Ali Ahfad Mehdi
  9. // @author Arnie
  10. // @match http://agar.io/*
  11. // @match https://agar.io/*
  12. // @match http://cellcraft.io/*
  13. // @match https://cellcraft.io/*
  14. // @grant none
  15. // @run-at document-end
  16. // @require https://greatest.deepsurf.us/scripts/21918-color-changer/code/color%20changer.js?version=139529
  17. // @require https://greatest.deepsurf.us/scripts/28186-element-constructor/code/Element%20constructor.js?version=181746
  18. // ==/UserScript==
  19.  
  20. window.addEventListener('keydown', keydown);
  21. window.addEventListener('keyup', keyup);
  22. var Feed = false;
  23. var Speed = 50;
  24.  
  25. //Funtions
  26. function split() {
  27. $("body").trigger($.Event("keydown", { keyCode: 32}));
  28. $("body").trigger($.Event("keyup", { keyCode: 32}));
  29. }
  30. function mass() {
  31. if (Feed) {
  32. window.onkeydown({keyCode: 87});
  33. window.onkeyup({keyCode: 87});
  34. setTimeout(mass, Speed);
  35. }
  36. }
  37.  
  38. function keydown(event) {
  39. switch(event.keyCode){
  40. // Feed Macro
  41. case 81: // Q
  42. {
  43. Feed = true;
  44. setTimeout(mass,Speed);
  45. }// Center
  46. case 83: // S
  47. X = window.innerWidth/2;
  48. Y = window.innerHeight/2;
  49. $("canvas").trigger($.Event("mousemove", {clientX: X,clientY: Y}));
  50. break;
  51. // Tricksplit
  52. case 16: // Shift and 4
  53. split();
  54. setTimeout(split, Speed);
  55. setTimeout(split, Speed*2);
  56. setTimeout(split, Speed*3);
  57. break; // Triplesplit
  58. case 65: // A and Put in Your Key
  59. split();
  60. setTimeout(split, Speed);
  61. setTimeout(split, Speed*2);
  62. break; // Doublesplit
  63. case 68: // D and Put in Your Key
  64. split();
  65. setTimeout(split, Speed);
  66. break;
  67. }
  68. } // When Player Lets Go Of Q,It Stops Feeding
  69. function keyup(event) {
  70. if (event.keyCode == 81) {
  71. Feed = false;
  72. }
  73. }
  74.  
  75. //Mouse Clicks
  76. (function() {
  77. $("#canvas").bind("mousedown",function(event) {
  78. switch(event.which){
  79. case 1:
  80. split();
  81. break;
  82. case 2:
  83. split();
  84. setTimeout(split, Speed);
  85. setTimeout(split, Speed*2);
  86. setTimeout(split, Speed*3);
  87. break;
  88. case 3:
  89. Feed = true;
  90. setTimeout(mass, Speed);
  91. break;
  92. }
  93. });
  94.  
  95. $("#canvas").bind("mouseup",function(event) {
  96. if (event.which == 3) {
  97. Feed = false;
  98. }
  99. });
  100. $('#canvas').bind('contextmenu',function(e) {
  101. e.preventDefault();
  102. });
  103. }());
  104.  
  105.  
  106. //all name-skins
  107. var skin = {
  108. people: [
  109. 'tsipras',
  110. 'trump','queen',
  111. 'obama',
  112. 'palin',
  113. 'putin',
  114. 'dilma',
  115. 'fidel',
  116. 'hillary',
  117. 'hollande',
  118. 'kim jong-un',
  119. 'merkel',
  120. 'berlusconi',
  121. 'blatter',
  122. 'boris',
  123. 'bush',
  124. 'cameron',
  125. 'chavez',
  126. 'clinton',
  127. 'chaplin',
  128. 'stalin'
  129. ],
  130. brands: [
  131. 'cia',
  132. 'reddit',
  133. '9gag','2ch.hk',
  134. '4chan',
  135. '8ch',
  136. 'tumblr',
  137. 'facebook',
  138. 'facepunch',
  139. 'prodota',
  140. 'steam',
  141. 'stussy',
  142. 'ea',
  143. 'origin',
  144. 'vinesauce',
  145. 'nasa',
  146. 'irs',
  147. 'receita federal'
  148. ],
  149. countries: [
  150. 'argentina',
  151. 'australia',
  152. 'austria',
  153. 'bangladesh',
  154. 'belgium',
  155. 'bosnia',
  156. 'botswana',
  157. 'brazil',
  158. 'bulgaria',
  159. 'cambodia',
  160. 'canada',
  161. 'chile',
  162. 'china',
  163. 'croatia',
  164. 'denmark',
  165. 'estonia',
  166. 'finland',
  167. 'france',
  168. 'germany',
  169. 'greece',
  170. 'hong kong',
  171. 'hungary',
  172. 'india',
  173. 'indiana',
  174. 'indonesia',
  175. 'iran',
  176. 'iraq',
  177. 'ireland',
  178. 'isis',
  179. 'italy',
  180. 'jamaica',
  181. 'japan',
  182. 'kc',
  183. 'latvia',
  184. 'lithuania',
  185. 'luxembourg',
  186. 'maldivas',
  187. 'mexico',
  188. 'netherlands',
  189. 'nigeria',
  190. 'north korea',
  191. 'norway',
  192. 'pakistan',
  193. 'peru',
  194. 'poland',
  195. 'portugal',
  196. 'quebec',
  197. 'romania',
  198. 'russia',
  199. 'scotland',
  200. 'somalia',
  201. 'south korea',
  202. 'spain',
  203. 'sweden',
  204. 'switzerland',
  205. 'taiwan',
  206. 'texas',
  207. 'thailand',
  208. 'turkey',
  209. 'ukraine',
  210. 'united kingdom',
  211. 'usa',
  212. 'cuba',
  213. 'venezuela'
  214. ],
  215. signs: [
  216. 'confederate',
  217. 'ussr',
  218. 'german empire',
  219. 'european union',
  220. 'qing dynasty',
  221. 'kc',
  222. 'quebec',
  223. 'sealand',
  224. 'tsarist russia',
  225. 'prussia',
  226. 'byzantium',
  227. 'imperial japan',
  228. 'french kingdom',
  229. 'satanist',
  230. 'nazi',
  231. 'matriarchy',
  232. 'patriarchy',
  233. 'feminism',
  234. 'bait','8'
  235. ],
  236. memes: [
  237. 'wojak',
  238. 'yaranaika',
  239. 'piccolo',
  240. 'sanik',
  241. 'ayy lmao',
  242. 'sir',
  243. 'doge',
  244. 'pokerface'
  245. ],
  246. other: [
  247. 'earth',
  248. 'moon',
  249. 'mars'
  250. ]
  251. }
  252.  
  253. //create all new DOM elements
  254. var element = Element([
  255. 'center',
  256. 'button',
  257. 'button',
  258. 'select'
  259. ],
  260. [
  261. {
  262. style: 'margin: 0 0 20px 0; cursor: default',
  263. innerHTML: '<br><u><b>Ultimate Agar.io Script controlls:</b></u><br>Press <b>Q</b> to feed macro<br>Press <b>A</b> to triplesplit<br>Press <b>D</b> to doublesplit<br>Press <b>S</b> to center your cell(s)<br><b>left click</b> to split<br><b>mouse click</b> to tricksplit<br><b>right click</b> to macro feed'},
  264. {
  265. style: 'margin: 5px 0; position: absolute; left: 25px; bottom: 90px; width: 300px',
  266. class: 'btn btn-primary',
  267. innerHTML: 'Reload',
  268. onclick: 'location.reload()'},
  269. {
  270. style: 'margin: 5px 0; position: absolute; right: 25px; bottom: 10px; width: 147px',
  271. class: 'btn btn-primary',
  272. innerHTML: 'Respawn',
  273. onclick: 'MC.setNick(document.getElementById("nick").value); return false;'},
  274. {
  275. style: 'margin: 5px 0 0 5px; width: 135px',
  276. class: 'form-control',
  277. onclick: 'changeSkin(this.value)'
  278. }
  279. ])
  280.  
  281. $(document.querySelector('#instructions').querySelector('center')).after(element[0])
  282. $('#socialStats').before(element[1])
  283. $('#statsContinue').after(element[2])
  284. $('#instructions').css({cursor: 'default'})
  285. $('#stats').css({height: '368px'})
  286. $('#statsGraph').css({bottom: '140px'})
  287. $('#statsContinue').css({width: '147px'})
  288. $('.agario-panel').css({color: 'rgba(255, 255, 255, 1)', 'background-color': 'rgba(0, 0, 0, 0.5)'})
  289. $('.agario-wallet-container').css({'background-color': 'rgba(255, 255, 255, 1)'})
  290. $('.agario-wallet-label')[0].css({color: 'black'})
  291. $('hr').css({'width':'0px','height':'0px'});
  292. $('span').css({'color':'white'});
  293. $('.text-muted')[1].css({color: 'rgba(255, 255, 255, 1)'})
  294. $('#advertisement').css({position:'absolute',left:'-1000%', visibility: 'hidden'})
  295.  
  296. /*
  297. Script by Ali Ahfad Mehdi and Arnie
  298. CREDITS TO: JACK BURCH,TOM BURRIS
  299. */