Macro Script Made By Pizza

This script provides a tricksplit with SHIFT or T, triplesplit with 3, doublesplit with D or 2, faster feeding with W.

  1. // ==UserScript==
  2. // @name Macro Script Made By Pizza
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.9
  5. // @description This script provides a tricksplit with SHIFT or T, triplesplit with 3, doublesplit with D or 2, faster feeding with W.
  6. // @author Pizza
  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 imPro= 25;
  16. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_e'> Press <b>SHIFT</b> or <b>T</b> to split 4x</span></span></center>";
  17. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>";
  18. 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>";
  19. document.getElementById("instructions").innerHTML += "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>W</b> for macro feed</span></span></center>";
  20. load();
  21. function load() {
  22. if (document.getElementById("overlays").style.display!="none") {
  23. document.getElementById("settings").style.display = "block";
  24. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  25. document.getElementById('showMass').click();
  26. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  27. document.getElementById('darkTheme').click();
  28. } else {
  29. setTimeout(load, 100);
  30. }
  31. }
  32. function keydown(event) {
  33. if (event.keyCode == 87) {
  34. Feed = true;
  35. setTimeout(ifkpussy, imPro);
  36. } // Tricksplit
  37. if (event.keyCode == 84 || event.keyCode == 16) { //( ͡° ͜ʖ ͡°)
  38. wtfisthis();
  39. setTimeout(wtfisthis, imPro);
  40. setTimeout(wtfisthis, imPro*2);
  41. setTimeout(wtfisthis, imPro*3);
  42. } // Triplesplit
  43. if (event.keyCode == 51 || event.keyCode == 65) {
  44. wtfisthis();
  45. setTimeout(wtfisthis, imPro);
  46. setTimeout(wtfisthis, imPro*2);
  47. } // Doublesplit
  48. if (event.keyCode == 68 || event.keyCode == 50) {
  49. wtfisthis();
  50. setTimeout(wtfisthis, imPro);
  51. }
  52. }// When Player Lets Go Of Q, It Stops Feeding
  53. function keyup(event) {
  54. if (event.keyCode == 87) {
  55. Feed = false;
  56. }
  57. if (event.keyCode == 79) {
  58. Dingus = false;
  59. }
  60. }
  61. // Feed Macro With Q
  62. function ifkpussy() {
  63. if (Feed) {
  64. window.onkeydown({keyCode: 87});
  65. window.onkeyup({keyCode: 87});
  66. setTimeout(ifkpussy, imPro);
  67. }
  68. }
  69. function wtfisthis() {
  70. $("body").trigger($.Event("keydown", { keyCode: 32}));
  71. $("body").trigger($.Event("keyup", { keyCode: 32}));
  72. }