Agario ???? Script:No Ads, Best Macros, CSStyler, AutoDarkTheme, Music - Works after update-☑

Combines CSStyler, Agario Electronic Music, and Best Tricksplit, Doublesplit, and Feeding Macros scripts.

  1. // ==UserScript==
  2. // @name Agario ???? Script:No Ads, Best Macros, CSStyler, AutoDarkTheme, Music - Works after update-☑
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  5. // @description Combines CSStyler, Agario Electronic Music, and Best Tricksplit, Doublesplit, and Feeding Macros scripts.
  6. // @author Ajax Playz + Tom Burris
  7. // @match http://agar.io/*
  8. // @grant none
  9. // ==/UserScript==
  10. document.getElementById("instructions").innerHTML = document.getElementById("instructions").innerHTML.replace("</center>", "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>E</b> or <b>4</b> to split 4x</span></span>"+
  11. "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span>"+
  12. "<center><span class='text-muted'><span data-itr='instructions_d'> Press <b>D</b> or <b>2</b> to split 2x</span></span>"+
  13. "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>Q</b> for macro feed</span></span></center>");
  14. document.getElementById("nick").music = true;
  15. setTimeout(function() {
  16. "use strict";
  17. var styler = document.getElementById("nick").styler;
  18. console.log("styler is: "+styler);
  19. var scr = document.getElementsByClassName("side-container right-container")[0];
  20. scr.id = "side-container-right";
  21. scr.class = "";
  22. if (!styler) {
  23. scr.removeChild(document.getElementById("agario-web-incentive"));
  24. scr.removeChild(document.getElementsByClassName("agario-promo")[0]);
  25. var clone = document.getElementById("adbg").cloneNode(true);
  26. clone.style.left = "-9999px";
  27. document.getElementsByTagName("body")[0].appendChild(clone);
  28. document.getElementById("overlays").removeChild(document.getElementById("adbg"));
  29. var clone2 = document.getElementById("s300x250").cloneNode(true);
  30. clone2.style.left = "-9999px";
  31. document.getElementsByTagName("body")[0].appendChild(clone2);
  32. document.getElementById("stats").removeChild(document.getElementById("s300x250"));
  33. document.getElementById("stats").removeChild(document.getElementById("stats").getElementsByTagName("hr")[1]);
  34. }
  35. var child = document.createElement("div");
  36. child.id = "child";
  37. child.innerHTML = '<iframe id="YTVideo" width="300" height="300" src="" style="display:none;"></iframe>';
  38. scr.appendChild(child);
  39. document.getElementById("YTVideo").style.border = "1px solid white";
  40. var checked = false;
  41. var src = "https://www.youtube.com/embed/17fuFLCEKyY?rel=0&amp;controls=0&amp;showinfo=0;autoplay=1";
  42. var child2 = document.createElement("div");
  43. child2.id = "child2";
  44. child2.innerHTML = '<input style="float:left; width:20px; height:20px;" type="checkbox" id="mbox"><center><h2>Music</h2></center>'+
  45. '<form id="moptions" style="margin-bottom:20px; display:none;"><br>'+
  46. '<label><input type="radio" name="music" id="op1" style="margin-left:10px; margin-right:5px;" checked><span style="margin-right:40px;">Dubstep</span></label>'+
  47. '<label><input type="radio" name="music" id="op2" style="margin-right:5px;"><span style="margin-right:40px;">Trap</span></label>'+
  48. '<label><input type="radio" name="music" id="op3" style="margin-right:5px;"><span>Electro</span></label>'+
  49. '</form>';
  50. var clone = document.getElementById("adbg").cloneNode(true);
  51. clone.style.left = "-9999px";
  52. document.getElementsByTagName("body")[0].appendChild(clone);
  53. document.getElementById("mainPanel").replaceChild(child2, document.getElementById("adbg").parentNode);
  54. document.getElementById("mbox").addEventListener("click", changed);
  55. document.getElementById("op1").addEventListener("click", function() {change(1);});
  56. document.getElementById("op2").addEventListener("click", function() {change(2);});
  57. document.getElementById("op3").addEventListener("click", function() {change(3);});
  58. function changed(event) {
  59. if(this.checked) {
  60. document.getElementById("YTVideo").src = src;
  61. $("#YTVideo").show();
  62. $("#moptions").show();
  63. } else if(!this.checked) {
  64. document.getElementById("YTVideo").src = "";
  65. $("#YTVideo").hide();
  66. $("#moptions").hide();
  67. }
  68. }
  69. function change(which) {
  70. switch(which) {
  71. case 1:
  72. src = "https://www.youtube.com/embed/17fuFLCEKyY?rel=0&amp;controls=0&amp;showinfo=0;autoplay=1";
  73. document.getElementById("YTVideo").src = src;
  74. break;
  75. case 2:
  76. src = "https://www.youtube.com/embed/j5tUmWzEAO4?rel=0&amp;controls=0&amp;showinfo=0;autoplay=1";
  77. document.getElementById("YTVideo").src = src;
  78. break;
  79. case 3:
  80. src = "https://www.youtube.com/embed/XOyjT-yOfOk?rel=0&amp;controls=0&amp;showinfo=0;autoplay=1";
  81. document.getElementById("YTVideo").src = src;
  82. break;
  83. }
  84. }
  85. }, 100);
  86. document.getElementById("nick").styler = true;
  87. setTimeout(function() {
  88. 'use strict';
  89. var music = document.getElementById("nick").music;
  90. console.log("music is: "+music);
  91. var panels = document.getElementsByClassName("agario-panel");
  92. for (var n = 0;n<panels.length;n++) {
  93. panels[n].style.backgroundColor = "black";
  94. panels[n].style.color = "white";
  95. panels[n].style.outline = "1px solid white";
  96. panels[n].style.borderRadius = "0px";
  97. }
  98. remove();
  99. $("#settings").show();
  100. $("#instructions").show();
  101. document.getElementsByClassName("btn btn-info btn-settings")[0].addEventListener('click', function() {$("#instructions").show();});
  102. var inputs = document.getElementsByTagName("input");
  103. for (var n = 0; n < inputs.length; n++) {
  104. if (inputs[n].type == "text" || (inputs[n].type != "radio" && inputs[n].type != "checkbox")) {
  105. inputs[n].style.backgroundColor = "black";
  106. inputs[n].style.color = "white";
  107. if (inputs[n].id===null || inputs[n].id === "") {
  108. inputs[n].id = "uniqueID"+n;
  109. }
  110. document.styleSheets[document.styleSheets.length-1].addRule('#'+inputs[n].id+'::selection','background: green');
  111. }
  112. }
  113. //document.styleSheets[document.styleSheets.length-1].insertRule('#nick::focus {outline:0px none transparent;}', 0);
  114. document.getElementById("gamemode").style.backgroundColor = "black";
  115. document.getElementById("gamemode").style.color = "white";
  116. //document.styleSheets[document.styleSheets.length-1].addRule('option::hover','background: green');
  117. document.getElementById("region").style.backgroundColor = "black";
  118. document.getElementById("region").style.color = "white";
  119. document.getElementById("quality").style.backgroundColor = "black";
  120. document.getElementById("quality").style.color = "white";
  121. document.getElementById("statsGraph").style.bottom = "";
  122. document.getElementById("statsGraph").style.top = "40px";
  123. document.getElementById("stats").getElementsByTagName("hr")[0].style.top = "270px";
  124. document.getElementById("socialStats").style.bottom = "";
  125. document.getElementById("socialStats").style.top = "290px";
  126. document.getElementById("statsContinue").style.bottom = "20px";
  127. document.getElementById("statsContinue").style.top = "344px";
  128. document.getElementById("stats").getElementsByTagName("hr")[1].style.top = "40px";
  129. document.getElementById("stats").style.height = "398px";
  130. document.getElementById("stats").style.padding = "0 0 0";
  131. document.getElementsByClassName("agario-exp-bar progress")[0].style.backgroundColor = "black";
  132. var subs = document.getElementById("stats").getElementsByTagName("span");
  133. for (var n = 0; n < subs.length; n++) {
  134. if (subs[n].id == "statsSubtext" || subs[n].id == "statsText") {
  135. subs[n].style.color = "white";
  136. subs[n].style.opacity = 0.5;
  137. }
  138. }
  139. function remove() {
  140. var clone = document.getElementById("adsBottom").cloneNode(true);
  141. clone.style.left = "-9999px";
  142. document.getElementsByTagName("body")[0].appendChild(clone);
  143. document.getElementById("overlays").removeChild(document.getElementById("adsBottom"));
  144. var clone = document.getElementById("s300x250").cloneNode(true);
  145. clone.style.left = "-9999px";
  146. document.getElementsByTagName("body")[0].appendChild(clone);
  147. document.getElementById("stats").removeChild(document.getElementById("s300x250"));
  148. if (!music) {
  149. var clone = document.getElementById("adbg").cloneNode(true);
  150. clone.style.left = "-9999px";
  151. document.getElementsByTagName("body")[0].appendChild(clone);
  152. document.getElementById("mainPanel").removeChild(document.getElementsByTagName("center")[5]);
  153. }
  154. document.getElementsByClassName("agario-panel agario-side-panel agario-shop-panel")[0].removeChild(document.getElementById("blocker"));
  155. document.getElementsByClassName("agario-panel agario-side-panel agario-panel-freecoins")[0].removeChild(document.getElementById("coins-blocker"));
  156. document.getElementsByClassName("side-container right-container")[0].removeChild(document.getElementById("agario-web-incentive"));
  157. document.getElementsByClassName("side-container right-container")[0].removeChild(document.getElementsByClassName("agario-promo")[0]);
  158. if (!music) {
  159. document.getElementById("mainPanel").removeChild(document.getElementsByTagName("hr")[1]);
  160. }
  161. //document.getElementsByClassName("row")[0].removeChild(document.getElementsByClassName("btn btn-info btn-settings")[0]);
  162. }
  163. }, 100);
  164. window.addEventListener('keydown', keydown);
  165. window.addEventListener('keyup', keyup);
  166. var Feed = false;
  167. var Dingus = false;
  168. var imlost = 25;
  169. load();
  170. function load() {
  171. if (document.getElementById("overlays").style.display!="none") {
  172. document.getElementById("settings").style.display = "block";
  173. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  174. document.getElementById('showMass').click();
  175. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  176. document.getElementById('darkTheme').click();
  177. // I changed the above because now agario 'remembers' your preferences, but doesn't actually work, so if they're already set to be true, you need to undo it, then re click to true
  178. } else {
  179. setTimeout(load, 100);
  180. }
  181. }
  182. function keydown(event) {
  183. if (event.keyCode == 81) {
  184. Feed = true;
  185. setTimeout(fukherriteindapussie, imlost);
  186. } // Tricksplit
  187. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  188. ilikedick();
  189. setTimeout(ilikedick, imlost);
  190. setTimeout(ilikedick, imlost*2);
  191. setTimeout(ilikedick, imlost*3);
  192. } // Triplesplit
  193. if (event.keyCode == 51 || event.keyCode == 65) {
  194. ilikedick();
  195. setTimeout(ilikedick, imlost);
  196. setTimeout(ilikedick, imlost*2);
  197. } // Doublesplit
  198. if (event.keyCode == 68 || event.keyCode == 50) {
  199. ilikedick();
  200. setTimeout(ilikedick, imlost);
  201. } // Split
  202. if (event.keyCode == 49) {
  203. ilikedick();
  204. }
  205. } // When Player Lets Go Of Q, It Stops Feeding
  206. function keyup(event) {
  207. if (event.keyCode == 81) {
  208. Feed = false;
  209. }
  210. if (event.keyCode == 79) {
  211. Dingus = false;
  212. }
  213. }
  214. // Feed Macro With Q
  215. function fukherriteindapussie() {
  216. if (Feed) {
  217. window.onkeydown({keyCode: 87});
  218. window.onkeyup({keyCode: 87});
  219. setTimeout(fukherriteindapussie, imlost);
  220. }
  221. }
  222. function ilikedick() {
  223. $("body").trigger($.Event("keydown", { keyCode: 32}));
  224. $("body").trigger($.Event("keyup", { keyCode: 32}));
  225. }
  226. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)