Ventionware Deadshot.io

Adds a custom crosshair to deadshot.io with UI to enable/disable and change colors, plus smooth rainbow text. THIS IS OUTDATED. THE LATEST IS https://greasyfork.org/en/scripts/524040-deadshot-io-ventionware-v2

  1. // ==UserScript==
  2. // @name Ventionware Deadshot.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Adds a custom crosshair to deadshot.io with UI to enable/disable and change colors, plus smooth rainbow text. THIS IS OUTDATED. THE LATEST IS https://greasyfork.org/en/scripts/524040-deadshot-io-ventionware-v2
  6. // @author TheApkDownloader
  7. // @icon https://deadshot.io/favicon.png
  8. // @match https://deadshot.io/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Variables to store crosshair and its colors
  16. let crosshairEnabled = true;
  17. let leftClickColor = 'green';
  18. let rightClickColor = 'orange';
  19.  
  20. // Create a crosshair element
  21. const crosshair = document.createElement('div');
  22. crosshair.id = 'custom-crosshair';
  23. crosshair.style.position = 'fixed';
  24. crosshair.style.width = '20px';
  25. crosshair.style.height = '20px';
  26. crosshair.style.backgroundColor = 'transparent';
  27. crosshair.style.border = '2px solid red';
  28. crosshair.style.left = '50%';
  29. crosshair.style.top = '50%';
  30. crosshair.style.transform = 'translate(-50%, -50%)';
  31. crosshair.style.zIndex = '9999';
  32. document.body.appendChild(crosshair);
  33.  
  34. // UI Container
  35. const uiContainer = document.createElement('div');
  36. uiContainer.style.position = 'fixed';
  37. uiContainer.style.bottom = '20px';
  38. uiContainer.style.right = '20px';
  39. uiContainer.style.padding = '10px';
  40. uiContainer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  41. uiContainer.style.color = 'white';
  42. uiContainer.style.borderRadius = '5px';
  43. uiContainer.style.zIndex = '10000';
  44. uiContainer.style.display = 'none'; // Hidden by default
  45. document.body.appendChild(uiContainer);
  46.  
  47. // UI Title
  48. const uiTitle = document.createElement('div');
  49. uiTitle.textContent = 'Ventionware Crosshair';
  50. uiTitle.style.fontSize = '16px';
  51. uiTitle.style.fontWeight = 'bold';
  52. uiTitle.style.marginBottom = '10px';
  53. uiContainer.appendChild(uiTitle);
  54.  
  55. // UI Elements
  56. const toggleButton = document.createElement('button');
  57. toggleButton.textContent = 'Toggle Crosshair';
  58. toggleButton.style.marginBottom = '10px';
  59. toggleButton.style.display = 'block';
  60. uiContainer.appendChild(toggleButton);
  61.  
  62. const leftColorInput = document.createElement('input');
  63. leftColorInput.type = 'color';
  64. leftColorInput.value = '#00FF00'; // Default green
  65. leftColorInput.style.marginBottom = '10px';
  66. uiContainer.appendChild(document.createTextNode('LMB Color: '));
  67. uiContainer.appendChild(leftColorInput);
  68.  
  69. const rightColorInput = document.createElement('input');
  70. rightColorInput.type = 'color';
  71. rightColorInput.value = '#FFA500'; // Default orange
  72. rightColorInput.style.marginBottom = '10px';
  73. uiContainer.appendChild(document.createTextNode('RMB Color: '));
  74. uiContainer.appendChild(rightColorInput);
  75.  
  76. const toggleUI = document.createElement('button');
  77. toggleUI.textContent = 'Settings';
  78. toggleUI.style.position = 'fixed';
  79. toggleUI.style.bottom = '20px';
  80. toggleUI.style.right = '20px';
  81. toggleUI.style.padding = '10px';
  82. toggleUI.style.zIndex = '10001';
  83. toggleUI.style.borderRadius = '5px';
  84. toggleUI.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  85. toggleUI.style.color = 'white';
  86. document.body.appendChild(toggleUI);
  87.  
  88. // Toggle Crosshair on/off
  89. toggleButton.addEventListener('click', () => {
  90. crosshairEnabled = !crosshairEnabled;
  91. crosshair.style.display = crosshairEnabled ? 'block' : 'none';
  92. });
  93.  
  94. // Update colors on input change
  95. leftColorInput.addEventListener('input', (e) => {
  96. leftClickColor = e.target.value;
  97. });
  98.  
  99. rightColorInput.addEventListener('input', (e) => {
  100. rightClickColor = e.target.value;
  101. });
  102.  
  103. // Toggle UI visibility
  104. toggleUI.addEventListener('click', () => {
  105. uiContainer.style.display = uiContainer.style.display === 'none' ? 'block' : 'none';
  106. });
  107.  
  108. // Event listeners for mouse clicks
  109. document.addEventListener('mousedown', function(e) {
  110. if (!crosshairEnabled) return;
  111. if (e.button === 0) {
  112. crosshair.style.borderColor = leftClickColor;
  113. }
  114. if (e.button === 2) {
  115. if (!e.buttons || e.buttons === 2) {
  116. crosshair.style.borderColor = rightClickColor;
  117. }
  118. }
  119. });
  120.  
  121. document.addEventListener('mouseup', function(e) {
  122. if (!crosshairEnabled) return;
  123. if (e.button === 0 || e.button === 2) {
  124. if (e.buttons & 1) {
  125. crosshair.style.borderColor = leftClickColor;
  126. } else {
  127. crosshair.style.borderColor = 'red';
  128. }
  129. }
  130. });
  131.  
  132. // Prevent context menu from appearing on right-click
  133. document.addEventListener('contextmenu', function(e) {
  134. e.preventDefault();
  135. });
  136.  
  137. // Rainbow Glowing Text with Smooth Transition
  138. const rainbowText = document.createElement('div');
  139. rainbowText.textContent = 'Ventionware Deadshot.io';
  140. rainbowText.style.position = 'fixed';
  141. rainbowText.style.top = '10px';
  142. rainbowText.style.left = '10px';
  143. rainbowText.style.fontSize = '24px';
  144. rainbowText.style.fontWeight = 'bold';
  145. rainbowText.style.backgroundClip = 'text';
  146. rainbowText.style.color = 'white';
  147. rainbowText.style.zIndex = '10001';
  148. rainbowText.style.animation = 'rainbow 5s infinite linear';
  149. document.body.appendChild(rainbowText);
  150.  
  151. // Add smooth color transition
  152. const style = document.createElement('style');
  153. style.innerHTML = `
  154. @keyframes rainbow {
  155. 0% { color: red; }
  156. 16% { color: orange; }
  157. 33% { color: yellow; }
  158. 50% { color: green; }
  159. 66% { color: blue; }
  160. 83% { color: indigo; }
  161. 100% { color: violet; }
  162. }
  163. `;
  164. document.head.appendChild(style);
  165.  
  166. })();