Sleazy Fork is available in English.

KasperAgar customes macro

Be the best macro

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