Split Macros

Tricksplit With T, Triplesplit With 3,Double Split With D,Q for Macro Feed

目前为 2016-08-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Split Macros
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.6
  5. // @description Tricksplit With T, Triplesplit With 3,Double Split With D,Q for Macro Feed
  6. // @author Gv Eclipse
  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>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> 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>Q</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. // 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
  29. } else {
  30. setTimeout(load, 100);
  31. }
  32. }
  33. function keydown(event) {
  34. if (event.keyCode == 81) {
  35. Feed = true;
  36. setTimeout(fukherriteindapussie, imlost);
  37. } // Tricksplit
  38. if (event.keyCode == 84 || event.keyCode == 84) { //( ͡° ͜ʖ ͡°)
  39. ilikedick();
  40. setTimeout(ilikedick, imlost);
  41. setTimeout(ilikedick, imlost*2);
  42. setTimeout(ilikedick, imlost*3);
  43. } // Triplesplit
  44. if (event.keyCode == 51 || event.keyCode == 65) {
  45. ilikedick();
  46. setTimeout(ilikedick, imlost);
  47. setTimeout(ilikedick, imlost*2);
  48. } // Doublesplit
  49. if (event.keyCode == 68 || event.keyCode == 50) {
  50. ilikedick();
  51. setTimeout(ilikedick, imlost);
  52. } // Split
  53. if (event.keyCode == 49) {
  54. ilikedick();
  55. }
  56. } // When Player Lets Go Of Q, It Stops Feeding
  57. function keyup(event) {
  58. if (event.keyCode == 81) {
  59. Feed = false;
  60. }
  61. if (event.keyCode == 79) {
  62. Dingus = false;
  63. }
  64. }
  65. // Feed Macro With Q
  66. function fukherriteindapussie() {
  67. if (Feed) {
  68. window.onkeydown({keyCode: 87});
  69. window.onkeyup({keyCode: 87});
  70. setTimeout(fukherriteindapussie, imlost);
  71. }
  72. }
  73. function ilikedick() {
  74. $("body").trigger($.Event("keydown", { keyCode: 32}));
  75. $("body").trigger($.Event("keyup", { keyCode: 32}));
  76. }
  77. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)