Krayagar

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