Enhanced KILL NOOB'S Arena

Adds auto shoot on scoping,better crosshair covering spray range,location detector,auto jumping while firing with realtime ping indicator with ui.Use "C" to enable or disable.

当前为 2024-11-23 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Enhanced KILL NOOB'S Arena
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Adds auto shoot on scoping,better crosshair covering spray range,location detector,auto jumping while firing with realtime ping indicator with ui.Use "C" to enable or disable.
  6. // @author Noob Fr
  7. // @match https://deadshot.io/*
  8. // @grant
  9. // ==/UserScript==
  10.  
  11. //This script is prohibited for redevelopment or renaming.All rights owned by the original developer.Usage only allowed with original banners and ui.
  12.  
  13. (function () {
  14. 'use strict';
  15.  
  16. let featuresEnabled = true;
  17. let crosshairColor = 'green';
  18. let userCountry = 'Loading...';
  19. let kKeyInterval = null;
  20. let isRightMousePressed = false;
  21.  
  22. const killNoobText = document.createElement('div');
  23. killNoobText.textContent = '[KILL] NOOB';
  24. killNoobText.style.position = 'fixed';
  25. killNoobText.style.top = '130px';
  26. killNoobText.style.left = '10px';
  27. killNoobText.style.fontSize = '50px';
  28. killNoobText.style.fontWeight = 'bold';
  29. killNoobText.style.color = 'red';
  30. killNoobText.style.textShadow = '2px 2px 5px black';
  31. killNoobText.style.zIndex = '9999';
  32. document.body.appendChild(killNoobText);
  33.  
  34. const crosshair = document.createElement('div');
  35. crosshair.id = 'custom-crosshair';
  36. crosshair.style.position = 'fixed';
  37. crosshair.style.width = '50px';
  38. crosshair.style.height = '50px';
  39. crosshair.style.borderRadius = '50%';
  40. crosshair.style.border = '3px dashed ' + crosshairColor;
  41. crosshair.style.left = '50%';
  42. crosshair.style.top = '50%';
  43. crosshair.style.transform = 'translate(-50%, -50%)';
  44. crosshair.style.zIndex = '9999';
  45. document.body.appendChild(crosshair);
  46.  
  47. const pingContainer = document.createElement('div');
  48. pingContainer.style.position = 'fixed';
  49. pingContainer.style.top = '200px';
  50. pingContainer.style.left = '10px';
  51. pingContainer.style.zIndex = '9999';
  52.  
  53. const pingText = document.createElement('div');
  54. pingText.textContent = 'Ping Status:';
  55. pingText.style.fontSize = '18px';
  56. pingText.style.color = 'white';
  57. pingText.style.marginRight = '10px';
  58. pingContainer.appendChild(pingText);
  59.  
  60. const pingBar = document.createElement('div');
  61. pingBar.style.width = '200px';
  62. pingBar.style.height = '20px';
  63. pingBar.style.border = '2px solid white';
  64. pingBar.style.backgroundColor = 'black';
  65.  
  66. const pingFill = document.createElement('div');
  67. pingFill.style.width = '100%';
  68. pingFill.style.height = '100%';
  69. pingFill.style.backgroundColor = 'green';
  70. pingBar.appendChild(pingFill);
  71. pingContainer.appendChild(pingBar);
  72. document.body.appendChild(pingContainer);
  73.  
  74. const countryContainer = document.createElement('div');
  75. countryContainer.style.position = 'fixed';
  76. countryContainer.style.top = '230px';
  77. countryContainer.style.left = '10px';
  78. countryContainer.style.fontSize = '18px';
  79. countryContainer.style.color = 'white';
  80. countryContainer.style.zIndex = '9999';
  81. countryContainer.textContent = `Current Region is ${userCountry}`;
  82. document.body.appendChild(countryContainer);
  83.  
  84. function toggleFeatures(enabled) {
  85. killNoobText.style.display = enabled ? 'block' : 'none';
  86. crosshair.style.display = enabled ? 'block' : 'none';
  87. pingContainer.style.display = enabled ? 'flex' : 'none';
  88. countryContainer.style.display = enabled ? 'block' : 'none';
  89.  
  90. if (!enabled) {
  91. stopKKeyPress();
  92. isRightMousePressed = false;
  93. }
  94. }
  95.  
  96. function startKKeyPress() {
  97. if (!kKeyInterval) {
  98. kKeyInterval = setInterval(() => {
  99. const kKeyEvent = new KeyboardEvent('keydown', {
  100. key: 'K',
  101. code: 'KeyK',
  102. keyCode: 75,
  103. which: 75,
  104. bubbles: true,
  105. cancelable: true,
  106. });
  107. document.dispatchEvent(kKeyEvent);
  108. }, 100);
  109. }
  110. }
  111.  
  112. function stopKKeyPress() {
  113. if (kKeyInterval) {
  114. clearInterval(kKeyInterval);
  115. kKeyInterval = null;
  116.  
  117. const kKeyUpEvent = new KeyboardEvent('keyup', {
  118. key: 'K',
  119. code: 'KeyK',
  120. keyCode: 75,
  121. which: 75,
  122. bubbles: true,
  123. cancelable: true,
  124. });
  125. document.dispatchEvent(kKeyUpEvent);
  126. }
  127. }
  128.  
  129. function simulateSpacebarPress() {
  130. if (!featuresEnabled) return;
  131.  
  132. for (let i = 0; i < 500; i++) {
  133. const keyDownEvent = new KeyboardEvent('keydown', {
  134. key: ' ',
  135. code: 'Space',
  136. keyCode: 32,
  137. which: 32,
  138. bubbles: true,
  139. cancelable: true
  140. });
  141. document.dispatchEvent(keyDownEvent);
  142.  
  143. const keyUpEvent = new KeyboardEvent('keyup', {
  144. key: ' ',
  145. code: 'Space',
  146. keyCode: 32,
  147. which: 32,
  148. bubbles: true,
  149. cancelable: true
  150. });
  151. setTimeout(() => {
  152. document.dispatchEvent(keyUpEvent);
  153. }, 1);
  154. }
  155. }
  156.  
  157. document.addEventListener('keydown', (e) => {
  158. if (e.key === 'c') {
  159. featuresEnabled = !featuresEnabled;
  160. toggleFeatures(featuresEnabled);
  161. }
  162. });
  163.  
  164. document.addEventListener('mousedown', (e) => {
  165. if (!featuresEnabled) return;
  166.  
  167. if (e.button === 2) {
  168. crosshairColor = 'red';
  169. crosshair.style.borderColor = crosshairColor;
  170.  
  171. if (!isRightMousePressed) {
  172. isRightMousePressed = true;
  173. startKKeyPress();
  174. }
  175. }
  176. });
  177.  
  178. document.addEventListener('mouseup', (e) => {
  179. if (e.button === 2) {
  180. crosshairColor = 'green';
  181. crosshair.style.borderColor = crosshairColor;
  182.  
  183. stopKKeyPress();
  184. isRightMousePressed = false;
  185. }
  186. });
  187.  
  188. document.addEventListener('click', (event) => {
  189. if (event.button !== 2) {
  190. simulateSpacebarPress();
  191. }
  192. });
  193.  
  194. setInterval(() => {
  195. if (!featuresEnabled) return;
  196. const ping = Math.random() * 100;
  197. pingFill.style.width = `${Math.min(ping, 100)}%`;
  198. pingFill.style.backgroundColor = ping > 70 ? 'red' : ping > 40 ? 'orange' : 'green';
  199. }, 1000);
  200.  
  201. function getUserCountry() {
  202. fetch('https://ipapi.co/json/')
  203. .then(response => response.json())
  204. .then(data => {
  205. userCountry = data.country_name || 'Unknown';
  206. countryContainer.textContent = `Current Region is ${userCountry}`;
  207. })
  208. .catch(() => {
  209. userCountry = 'Unable to determine location';
  210. countryContainer.textContent = `Current Region is ${userCountry}`;
  211. });
  212. }
  213.  
  214. getUserCountry();
  215. })();

QingJ © 2025

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