Split Macro | Made By XamBo

Sets show mass and dark theme to true, provides a tricksplit with E or 4, triplesplit with 3, doublesplit with D or 2, faster feeding with Q, and split with 1

  1. // ==UserScript==
  2. // @name Split Macro | Made By XamBo
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.9
  5. // @description Sets show mass and dark theme to true, provides a tricksplit with E or 4, triplesplit with 3, doublesplit with D or 2, faster feeding with Q, and split with 1
  6. // @author Jack Burch + Tom Burris
  7. // @match http://abs0rb.me/*
  8. // @match http://agar.io/*
  9. // @match http://agarabi.com/*
  10. // @match http://agarly.com/*
  11. // @match http://en.agar.bio/*
  12. // @match http://agar.pro/*
  13. // @match http://agar.biz/*
  14. // @match http://alis.io/*
  15.  
  16. // @grant none
  17. // @run-at document-end
  18. // ==/UserScript==
  19. window.addEventListener('keydown', keydown);
  20. window.addEventListener('keyup', keyup);
  21. var Feed = false;
  22. var Dingus = false;
  23. var imlost = 25;
  24. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>E</b> or <b>4</b> to split 4x</span></span></center>";
  25. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
  26. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_d'> Press <b>D</b> or <b>2</b> to split 2x</span></span></center>";
  27. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>Q</b> for macro feed</span></span></center>";
  28. load();
  29. function load() {
  30. if (document.getElementById("overlays").style.display!="none") {
  31. document.getElementById("settings").style.display = "block";
  32. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  33. document.getElementById('showMass').click();
  34. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  35. document.getElementById('darkTheme').click();
  36. // 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
  37. } else {
  38. setTimeout(load, 100);
  39. }
  40. }
  41. function keydown(event) {
  42. if (event.keyCode == 81) {
  43. Feed = true;
  44. setTimeout(fukherriteindapussie, imlost);
  45. } // Tricksplit
  46. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  47. ilikedick();
  48. setTimeout(ilikedick, imlost);
  49. setTimeout(ilikedick, imlost*2);
  50. setTimeout(ilikedick, imlost*3);
  51. } // Triplesplit
  52. if (event.keyCode == 51 || event.keyCode == 65) {
  53. ilikedick();
  54. setTimeout(ilikedick, imlost);
  55. setTimeout(ilikedick, imlost*2);
  56. } // Doublesplit
  57. if (event.keyCode == 68 || event.keyCode == 50) {
  58. ilikedick();
  59. setTimeout(ilikedick, imlost);
  60. } // Split
  61. if (event.keyCode == 49) {
  62. ilikedick();
  63. }
  64. } // When Player Lets Go Of Q, It Stops Feeding
  65. function keyup(event) {
  66. if (event.keyCode == 81) {
  67. Feed = false;
  68. }
  69. if (event.keyCode == 79) {
  70. Dingus = false;
  71. }
  72. }
  73. function fukherriteindapussie() {
  74. if (Feed) {
  75. window.onkeydown({keyCode: 87});
  76. window.onkeyup({keyCode: 87});
  77. setTimeout(fukherriteindapussie, imlost);
  78. }
  79. }
  80. function ilikedick() {
  81. $("body").trigger($.Event("keydown", { keyCode: 32}));
  82. $("body").trigger($.Event("keyup", { keyCode: 32}));
  83. }
  84. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)