Cryzen.io Auto BH

Auto BH pod spację, aktywowany przez funkcję enableUP()

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/537334/1600776/Cryzenio%20Auto%20BH.js

  1. // ==UserScript==
  2. // @name Cryzen.io Auto BH
  3. // @namespace ViolentMonkey
  4. // @version 1.6
  5. // @description Auto BH pod spację, aktywowany przez funkcję enableUP()
  6. // @author Diwi
  7. // @match *://cryzen.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. 'use strict';
  13.  
  14. let autoBunnyHopInterval = null;
  15. let scope = null;
  16. const newScopeURL = ""; // Jeśli chcesz dodać celownik
  17.  
  18. function enableUP() {
  19. console.log("Auto Bunny Hop activé !");
  20. document.addEventListener('keydown', (event) => {
  21. if (event.key === ' ' && autoBunnyHopInterval === null) {
  22. autoBunnyHopInterval = setInterval(() => {
  23. const spaceEvent = new KeyboardEvent('keydown', {
  24. key: ' ',
  25. code: 'Space',
  26. keyCode: 32,
  27. which: 32,
  28. bubbles: true,
  29. cancelable: true
  30. });
  31.  
  32. Object.defineProperty(spaceEvent, 'keyCode', { get: () => 32 });
  33. Object.defineProperty(spaceEvent, 'which', { get: () => 32 });
  34.  
  35. document.dispatchEvent(spaceEvent);
  36. }, 30); // Szybkość bhopa
  37. }
  38. });
  39.  
  40. document.addEventListener('keyup', (event) => {
  41. if (event.key === ' ') {
  42. clearInterval(autoBunnyHopInterval);
  43. autoBunnyHopInterval = null;
  44. }
  45. });
  46. }
  47.  
  48. function disableUP() {
  49. console.log("Auto Bunny Hop désactivé !");
  50. clearInterval(autoBunnyHopInterval);
  51. autoBunnyHopInterval = null;
  52. }
  53.  
  54. function createScopeOverlay() {
  55. scope = document.createElement("img");
  56. scope.src = newScopeURL;
  57. scope.id = "custom-sniper-scope";
  58. scope.style.position = "fixed";
  59. scope.style.top = "50%";
  60. scope.style.left = "50%";
  61. scope.style.transform = "translate(-50%, -50%)";
  62. scope.style.pointerEvents = "none";
  63. scope.style.maxWidth = "100vw";
  64. scope.style.maxHeight = "100vh";
  65. scope.style.zIndex = "99999";
  66. document.body.appendChild(scope);
  67. }
  68.  
  69. function enableCROSS() {
  70. if (!scope) {
  71. createScopeOverlay();
  72. } else {
  73. scope.style.display = "block";
  74. }
  75. }
  76.  
  77. function disableCROSS() {
  78. if (scope) {
  79. scope.style.display = "none";
  80. }
  81. }
  82.  
  83. // Dodaj od razu info w konsoli i na ekranie
  84. console.log("Success: Injected");
  85. const injectedDiv = document.createElement('div');
  86. injectedDiv.textContent = 'Injected';
  87. injectedDiv.style.position = 'fixed';
  88. injectedDiv.style.top = '10px';
  89. injectedDiv.style.right = '10px';
  90. injectedDiv.style.background = 'rgba(0, 0, 0, 0.6)';
  91. injectedDiv.style.color = 'lime';
  92. injectedDiv.style.padding = '4px 10px';
  93. injectedDiv.style.fontFamily = 'monospace';
  94. injectedDiv.style.fontSize = '14px';
  95. injectedDiv.style.borderRadius = '6px';
  96. injectedDiv.style.zIndex = '9999';
  97. document.body.appendChild(injectedDiv);
  98.  
  99. // Jeśli chcesz aktywować auto z automatu:
  100. // enableUP();
  101.  
  102. // Lub z poziomu menu/konsole:
  103. window.enableUP = enableUP;
  104. window.disableUP = disableUP;
  105. })();