SwepSplit

Swep extensão, para funcionar ative o "DarkTheme" e o "ShowMass".

  1. // ==UserScript==
  2. // @name SwepSplit
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Swep extensão, para funcionar ative o "DarkTheme" e o "ShowMass".
  6. // @author Swep(Mateus)
  7. // @match *.agar.io/*
  8. // @grant none
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12. window.addEventListener('keydown', keydown);
  13. window.addEventListener('keyup', keyup);
  14. var DioMasa = false;
  15. var MovDetenido = false;
  16. var DuracionDelay = 25;
  17. AplicarConfiguracion();
  18. function AplicarConfiguracão() {
  19. if (document.getElementById("overlays").style.display!="none") {
  20. document.getElementById("settings").style.display = "block";
  21. if (document.getElementById('showMass').checked) {document.getElementById('showMass').click();}
  22. document.getElementById('showMass').click();
  23. if (document.getElementById('darkTheme').checked) {document.getElementById('darkTheme').click();}
  24. document.getElementById('darkTheme').click();
  25. } else {
  26. setTimeout(AplicarConfiguracion, 100);
  27. }
  28. }
  29. // Função de Swep dar massa com W
  30. function FunçãoMassa() {
  31. if (DioMasa) {
  32. window.onkeydown({keyCode: 87});
  33. window.onkeyup({keyCode: 87});
  34. setTimeout(funcionmasa, DuracionDelay);
  35. }
  36. }
  37. // Função de Swep Split
  38. function DarSplit() {
  39. $("body").trigger($.Event("keydown", { keyCode: 32}));
  40. $("body").trigger($.Event("keyup", { keyCode: 32}));
  41. }
  42. function keydown(event) {
  43. if (event.keyCode == 87 && DioMasa === false) {
  44. DioMasa = true;
  45. setTimeout(funcionmasa, DuracionDelay);
  46. } // Dar massa
  47. if (event.keyCode == 52) {
  48. DarSplit();
  49. setTimeout(DarSplit, DuracionDelay);
  50. setTimeout(DarSplit, DuracionDelay*2);
  51. setTimeout(DarSplit, DuracionDelay*3);
  52. } // Tricksplit (Split 4x)
  53. if (event.keyCode == 51) {
  54. DarSplit();
  55. setTimeout(DarSplit, DuracionDelay);
  56. setTimeout(DarSplit, DuracionDelay*2);
  57. } // Triplesplit (Split 3x)
  58. if (event.keyCode == 50) {
  59. DarSplit();
  60. setTimeout(DarSplit, DuracionDelay);
  61. } // Doublesplit (Split 2x)
  62. if (event.keyCode == 49) {
  63. DarSplit();
  64. } // Split Normal (Split 1x)
  65. if (event.keyCode == 83) {
  66. X = window.innerWidth/2;
  67. Y = window.innerHeight/2;
  68. $("canvas").trigger($.Event("mousemove", {clientX: X, clientY: Y}));
  69. } // Detener movimiento
  70. }
  71. // Quando o jogador parar de der massa com w ele para.
  72. function keyup(event) {
  73. if (event.keyCode == 87) {
  74. DioMasa = false;
  75. }
  76. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址