toqqicodez - Best macro's extension.

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 Made by toqqicodez

  1. // ==UserScript==
  2. // @name toqqicodez - Best macro's extension.
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  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 Made by toqqicodez
  6. // @author toqqicodez
  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://sigmally.com/*
  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> to split 4x</span></span></center>";
  24. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
  25. 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>";
  26. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>Q</b> for macro feed 2x | Extension made by <b>Tinix</b></span></span></center>";
  27. load();
  28. function load() {
  29. if (document.getElementById("overlays").style.display!="none") {
  30. document.getElementById("settings").style.display = "block";
  31. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  32. document.getElementById('showMass').click();
  33. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  34. document.getElementById('darkTheme').click();
  35. // 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
  36. } else {
  37. setTimeout(load, 100);
  38. }
  39. }
  40. function keydown(event) {
  41. if (event.keyCode == 81) {
  42. Feed = true;
  43. setTimeout(fukherriteindapussie, imlost);
  44. } // Tricksplit
  45. if (event.keyCode == 69 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  46. ilikedick();
  47. setTimeout(ilikedick, imlost);
  48. setTimeout(ilikedick, imlost*2);
  49. setTimeout(ilikedick, imlost*3);
  50. } // Triplesplit
  51. if (event.keyCode == 51 || event.keyCode == 65) {
  52. ilikedick();
  53. setTimeout(ilikedick, imlost);
  54. setTimeout(ilikedick, imlost*2);
  55. } // Doublesplit
  56. if (event.keyCode == 68 || event.keyCode == 50) {
  57. ilikedick();
  58. setTimeout(ilikedick, imlost);
  59. } // Split
  60. if (event.keyCode == 49) {
  61. ilikedick();
  62. }
  63. } // When Player Lets Go Of Q, It Stops Feeding
  64. function keyup(event) {
  65. if (event.keyCode == 81) {
  66. Feed = false;
  67. }
  68. if (event.keyCode == 79) {
  69. Dingus = false;
  70. }
  71. }
  72. // Feed Macro With Q
  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? ( ͡° ͜ʖ ͡°)