Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Best Tricksplit, Doublesplit, and Feeding Macros + Auto Settings + Triplesplit Macro + Freeze Cell
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.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
  6. // @author Jack Burch + Tom Burris
  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. var Feed = false;
  20. var Dingus = false;
  21. var imlost = 25;
  22. var instructions = document.getElementById("instructions");
  23. instructions.style.lineHeight = "1.15";
  24. instructions.style.fontSize = "12.5px";
  25. instructions.style.marginTop = "-30px";
  26. 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>" +
  27. "<center><span class='text-muted'><span data-itr='instructions_3'> Press <b>3</b> to split 3x</span></span></center>" +
  28. "<center><span class='text-muted'><span data-itr='instructions_d'> Press <b>D</b> or <b>2</b> to split 2x</span></span></center>" +
  29. "<center><span class='text-muted'><span data-itr='instructions_q'> Press and hold <b>Q</b> for macro feed</span></span></center>";
  30. function keydown(event) {
  31. if (event.keyCode == 87) {
  32. Feed = true;
  33. setTimeout(fukherriteindapussie, imlost);
  34. } // Tricksplit
  35. if (event.keyCode == 84 || event.keyCode == 52) { //( ͡° ͜ʖ ͡°)
  36. ilikedick();
  37. setTimeout(ilikedick, imlost);
  38. setTimeout(ilikedick, imlost*2);
  39. setTimeout(ilikedick, imlost*3);
  40. } // Triplesplit
  41. if (event.keyCode == 51 || event.keyCode == 65) {
  42. ilikedick();
  43. setTimeout(ilikedick, imlost);
  44. setTimeout(ilikedick, imlost*2);
  45. } // Doublesplit
  46. if (event.keyCode == 68 || event.keyCode == 50) {
  47. ilikedick();
  48. setTimeout(ilikedick, imlost);
  49. } // Split
  50. if (event.keyCode == 49) {
  51. ilikedick();
  52. }// When Player Lets Go Of Q, It Stops Feeding
  53. if (event.keyCode == 83) { //key S
  54. X = window.innerWidth/2;
  55. Y = window.innerHeight/2;
  56. $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
  57. }// Freeze
  58. }
  59. function keyup(event) {
  60. if (event.keyCode == 87) {
  61. Feed = false;
  62. }
  63. if (event.keyCode == 79) {
  64. Dingus = false;
  65. }
  66. }
  67. // Feed Macro With Q
  68. function fukherriteindapussie() {
  69. if (Feed) {
  70. window.onkeydown({keyCode: 87});
  71. window.onkeyup({keyCode: 87});
  72. setTimeout(fukherriteindapussie, imlost);
  73. }
  74. }
  75. function ilikedick() {
  76. $("body").trigger($.Event("keydown", { keyCode: 32}));
  77. $("body").trigger($.Event("keyup", { keyCode: 32}));
  78. }
  79. //Looking through the code now are we? ( ͡° ͜ʖ ͡°)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement