Macros For Zenu

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 Macros For Zenu
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  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 Zenu :D
  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://agario.city/
  15. // @grant none
  16. // @run-at document-end
  17. // ==/UserScript==
  18. window.addEventListener('keydown', keydown);
  19. window.addEventListener('keyup', keyup);
  20. var Feed = false;
  21. var Dingus = false;
  22. var imlost = 25;
  23. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>E</b> or <b>4</b> Tricksplit</span></span></center>";
  24. 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>";
  25. 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>";
  26. load();
  27. function load() {
  28. if (document.getElementById("overlays").style.display!="none") {
  29. document.getElementById("settings").style.display = "block";
  30. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  31. document.getElementById('showMass').click();
  32. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  33. document.getElementById('darkTheme').click();
  34. // 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
  35. } else {
  36. setTimeout(load, 100);
  37. }
  38. }
  39. function keydown(event) {
  40. if (event.keyCode == 81) {
  41. Feed = true;
  42. setTimeout(fukherriteindapussie, imlost);
  43. } // Tricksplit
  44. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  45. ilikedick();
  46. setTimeout(ilikedick, imlost);
  47. setTimeout(ilikedick, imlost*2);
  48. setTimeout(ilikedick, imlost*3);
  49. } // Doublesplit
  50. if (event.keyCode == 68 || event.keyCode == 50) {
  51. ilikedick();
  52. setTimeout(ilikedick, imlost);
  53. } // Split
  54. if (event.keyCode == 49) {
  55. ilikedick();
  56. }
  57. } // When Player Lets Go Of Q, It Stops Feeding
  58. function keyup(event) {
  59. if (event.keyCode == 81) {
  60. Feed = false;
  61. }
  62. if (event.keyCode == 79) {
  63. Dingus = false;
  64. }
  65. }
  66. // Feed Macro With Q
  67. function fukherriteindapussie() {
  68. if (Feed) {
  69. window.onkeydown({keyCode: 87});
  70. window.onkeyup({keyCode: 87});
  71. setTimeout(fukherriteindapussie, imlost);
  72. }
  73. }
  74. function ilikedick() {
  75. $("body").trigger($.Event("keydown", { keyCode: 32}));
  76. $("body").trigger($.Event("keyup", { keyCode: 32}));
  77. }
  78. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)