Advertisement
Josiahiscool73

Visions | Xbox cloud gaming

Apr 2nd, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.45 KB | None | 0 0
  1. (function() {
  2. // Create the UI container
  3. const uiContainer = document.createElement('div');
  4. uiContainer.style.cssText = `
  5. position: fixed; top: 20px; right: 20px; width: 380px;
  6. background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  7. border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.9), inset 0 0 15px rgba(255,255,255,0.08);
  8. z-index: 9999; font-family: 'Segoe UI', Arial, sans-serif; color: #ececec; padding: 20px;
  9. border: 2px solid #606060; transition: transform 0.3s;
  10. `;
  11. uiContainer.addEventListener('mouseover', () => uiContainer.style.transform = 'scale(1.02)');
  12. uiContainer.addEventListener('mouseout', () => uiContainer.style.transform = 'scale(1)');
  13. document.body.appendChild(uiContainer);
  14.  
  15. // Tab navigation
  16. const tabGroups = {
  17. 'Vision': ['Thermal (I)', 'Night (K)', 'X-Ray (J)', 'Predator (H)', 'Invert (G)', 'Neon (F)', 'Grayscale (T)', 'Normal (Y)'],
  18. 'Zoom': ['Zoom In (O)', 'Zoom Out (L)', 'Pan Left (Shift+O)', 'Pan Right (Shift+L)'],
  19. 'Overlays': ['Crosshair (P)', 'Grid (N)', 'Radar (M)', 'Heatmap (Shift+P)', 'Compass (Shift+N)'],
  20. 'Tools': ['Speed (PageUp)', 'Slow (PageDown)', 'Freeze (Home)', 'FPS (End)', 'Ghost Mode (Shift+PageUp)', 'Pulse (Shift+PageDown)', 'Glow Edges (Shift+Home)'],
  21. 'Reset': ['Reset All (U)']
  22. };
  23. const tabNav = document.createElement('div');
  24. tabNav.style.cssText = `
  25. display: flex; justify-content: space-around; background: linear-gradient(90deg, #252525, #3a3a3a);
  26. border-radius: 12px 12px 0 0; padding: 12px; border-bottom: 2px solid #666; box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
  27. `;
  28. uiContainer.appendChild(tabNav);
  29.  
  30. const contentArea = document.createElement('div');
  31. contentArea.style.cssText = `
  32. padding: 20px; background: linear-gradient(145deg, #222222, #2c2c2c);
  33. border-radius: 0 0 12px 12px; min-height: 240px; border-top: 2px solid #666;
  34. box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  35. `;
  36. uiContainer.appendChild(contentArea);
  37.  
  38. // Create tabs
  39. const tabElements = [];
  40. Object.keys(tabGroups).forEach((group, index) => {
  41. const tab = document.createElement('button');
  42. tab.innerText = group;
  43. tab.style.cssText = `
  44. background: linear-gradient(135deg, #3f3f3f, #505050); border: none; color: #fff; padding: 10px 16px;
  45. cursor: pointer; flex: 1; margin: 0 4px; border-radius: 8px; transition: all 0.3s; font-weight: 700;
  46. text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  47. `;
  48. tab.addEventListener('mouseover', () => { tab.style.background = 'linear-gradient(135deg, #606060, #777777)'; tab.style.transform = 'scale(1.06)'; });
  49. tab.addEventListener('mouseout', () => { tab.style.background = tab === activeTab ? 'linear-gradient(135deg, #505050, #606060)' : 'linear-gradient(135deg, #3f3f3f, #505050)'; tab.style.transform = 'scale(1)'; });
  50. tab.addEventListener('click', () => switchTab(group));
  51. tabNav.appendChild(tab);
  52. tabElements.push(tab);
  53. });
  54.  
  55. let activeTabIndex = 0;
  56. let activeTab = tabElements[activeTabIndex];
  57. activeTab.style.background = 'linear-gradient(135deg, #505050, #606060)';
  58.  
  59. // Content display
  60. function switchTab(group) {
  61. contentArea.innerHTML = `<h3 style="margin: 0 0 15px; font-size: 20px; color: #00eaff; text-shadow: 0 0 8px rgba(0,234,255,0.6);">${group}</h3>`;
  62. const list = document.createElement('ul');
  63. list.style.cssText = `list-style: none; padding: 0; margin: 0;`;
  64. tabGroups[group].forEach(item => {
  65. const li = document.createElement('li');
  66. li.innerText = item;
  67. li.style.cssText = `padding: 8px 0; border-bottom: 1px solid #404040; font-size: 15px; transition: all 0.2s; background: rgba(255,255,255,0.02); margin-bottom: 2px; border-radius: 4px;`;
  68. li.addEventListener('mouseover', () => { li.style.color = '#00eaff'; li.style.background = 'rgba(255,255,255,0.05)'; });
  69. li.addEventListener('mouseout', () => { li.style.color = '#ececec'; li.style.background = 'rgba(255,255,255,0.02)'; });
  70. list.appendChild(li);
  71. });
  72. contentArea.appendChild(list);
  73. activeTab = tabElements[Object.keys(tabGroups).indexOf(group)];
  74. activeTabIndex = Object.keys(tabGroups).indexOf(group);
  75. tabElements.forEach(tab => tab.style.background = tab === activeTab ? 'linear-gradient(135deg, #505050, #606060)' : 'linear-gradient(135deg, #3f3f3f, #505050)');
  76. }
  77.  
  78. // Initial tab
  79. switchTab('Vision');
  80. const status = document.createElement('p');
  81. status.style.cssText = `margin-top: 15px; font-size: 13px; color: #ccc; background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2)); padding: 8px; border-radius: 6px; box-shadow: inset 0 0 5px rgba(0,0,0,0.5);`;
  82. contentArea.appendChild(status);
  83.  
  84. // Target game canvas or body
  85. const gameCanvas = document.querySelector('canvas') || document.body;
  86.  
  87. // State variables
  88. let states = {
  89. thermal: false, night: false, xray: false, predator: false, invert: false, neon: false, grayscale: false,
  90. zoomLevel: 1, panX: 0, crosshair: false, grid: false, radar: false, heatmap: false, compass: false,
  91. speed: false, slow: false, freeze: false, fps: false, ghost: false, pulse: false, glow: false
  92. };
  93. let crosshairEl = null, gridEl = null, radarEl = null, heatmapEl = null, compassEl = null, fpsEl = null;
  94.  
  95. // Update status
  96. function updateStatus() {
  97. status.innerText = `Thermal: ${states.thermal ? 'ON' : 'OFF'} | Night: ${states.night ? 'ON' : 'OFF'} | X-Ray: ${states.xray ? 'ON' : 'OFF'} |
  98. Predator: ${states.predator ? 'ON' : 'OFF'} | Invert: ${states.invert ? 'ON' : 'OFF'} | Neon: ${states.neon ? 'ON' : 'OFF'} |
  99. Grayscale: ${states.grayscale ? 'ON' : 'OFF'} | Zoom: ${states.zoomLevel}x | Pan: ${states.panX}px | Crosshair: ${states.crosshair ? 'ON' : 'OFF'}`;
  100. }
  101. updateStatus();
  102.  
  103. // Keybind handlers
  104. document.addEventListener('keydown', (e) => {
  105. const key = e.key.toLowerCase();
  106. const shift = e.shiftKey;
  107.  
  108. // Arrow key navigation
  109. if (e.key === 'ArrowRight' && activeTabIndex < tabElements.length - 1) {
  110. activeTabIndex++;
  111. switchTab(Object.keys(tabGroups)[activeTabIndex]);
  112. } else if (e.key === 'ArrowLeft' && activeTabIndex > 0) {
  113. activeTabIndex--;
  114. switchTab(Object.keys(tabGroups)[activeTabIndex]);
  115. }
  116.  
  117. const resetFilters = () => {
  118. states.thermal = states.night = states.xray = states.predator = states.invert = states.neon = states.grayscale = false;
  119. gameCanvas.style.filter = states.glow ? 'drop-shadow(0 0 5px #00ff00)' : '';
  120. };
  121.  
  122. switch (true) {
  123. // Vision Modes
  124. case key === 'i': resetFilters(); states.thermal = !states.thermal; gameCanvas.style.filter = states.thermal ? 'contrast(1.5) hue-rotate(90deg) brightness(1.2)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  125. case key === 'k': resetFilters(); states.night = !states.night; gameCanvas.style.filter = states.night ? 'brightness(0.8) sepia(0.3) hue-rotate(120deg)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  126. case key === 'j': resetFilters(); states.xray = !states.xray; gameCanvas.style.filter = states.xray ? 'contrast(2) brightness(1.5) saturate(0.5)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  127. case key === 'h': resetFilters(); states.predator = !states.predator; gameCanvas.style.filter = states.predator ? 'hue-rotate(180deg) contrast(1.8) saturate(2)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  128. case key === 'g': resetFilters(); states.invert = !states.invert; gameCanvas.style.filter = states.invert ? 'invert(1)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  129. case key === 'f': resetFilters(); states.neon = !states.neon; gameCanvas.style.filter = states.neon ? 'contrast(2) brightness(1.3) hue-rotate(270deg)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  130. case key === 't': resetFilters(); states.grayscale = !states.grayscale; gameCanvas.style.filter = states.grayscale ? 'grayscale(1)' : states.glow ? 'drop-shadow(0 0 5px #00ff00)' : ''; break;
  131. case key === 'y': resetFilters(); break; // Normal vision
  132.  
  133. // Zoom
  134. case key === 'o' && !shift: states.zoomLevel += 0.5; gameCanvas.style.transform = `scale(${states.zoomLevel}) translateX(${states.panX}px)`; break;
  135. case key === 'l' && !shift: states.zoomLevel = Math.max(1, states.zoomLevel - 0.5); gameCanvas.style.transform = `scale(${states.zoomLevel}) translateX(${states.panX}px)`; break;
  136. case key === 'o' && shift: states.panX -= 50; gameCanvas.style.transform = `scale(${states.zoomLevel}) translateX(${states.panX}px)`; break;
  137. case key === 'l' && shift: states.panX += 50; gameCanvas.style.transform = `scale(${states.zoomLevel}) translateX(${states.panX}px)`; break;
  138.  
  139. // Overlays
  140. case key === 'p' && !shift: // Enhanced Crosshair
  141. if (!crosshairEl) {
  142. crosshairEl = document.createElement('div');
  143. crosshairEl.style.cssText = `
  144. position: fixed; top: 50%; left: 50%; width: 34px; height: 34px;
  145. background: radial-gradient(circle, rgba(255,0,0,0.9) 15%, transparent 60%);
  146. border: 2px solid #ff4444; border-radius: 50%; transform: translate(-50%, -50%);
  147. z-index: 10000; pointer-events: none; box-shadow: 0 0 12px rgba(255,0,0,0.6);
  148. `;
  149. const innerLines = document.createElement('div');
  150. innerLines.style.cssText = `
  151. position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
  152. background: linear-gradient(90deg, transparent 40%, #ff4444 40%, #ff4444 60%, transparent 60%),
  153. linear-gradient(0deg, transparent 40%, #ff4444 40%, #ff4444 60%, transparent 60%);
  154. transform: translate(-50%, -50%);
  155. `;
  156. crosshairEl.appendChild(innerLines);
  157. document.body.appendChild(crosshairEl);
  158. }
  159. states.crosshair = !states.crosshair; crosshairEl.style.display = states.crosshair ? 'block' : 'none'; break;
  160. case key === 'n' && !shift: // Grid
  161. if (!gridEl) {
  162. gridEl = document.createElement('div');
  163. gridEl.style.cssText = `position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(0,255,0,0.25) 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0,255,0,0.25) 20px); z-index: 10000; pointer-events: none;`;
  164. document.body.appendChild(gridEl);
  165. }
  166. states.grid = !states.grid; gridEl.style.display = states.grid ? 'block' : 'none'; break;
  167. case key === 'm' && !shift: // Radar
  168. if (!radarEl) {
  169. radarEl = document.createElement('div');
  170. radarEl.style.cssText = `position: fixed; bottom: 20px; right: 420px; width: 110px; height: 110px; border: 2px solid #00ff00; border-radius: 50%; background: radial-gradient(circle, rgba(0,255,0,0.25), transparent); z-index: 10000; pointer-events: none; box-shadow: 0 0 10px rgba(0,255,0,0.5);`;
  171. document.body.appendChild(radarEl);
  172. }
  173. states.radar = !states.radar; radarEl.style.display = states.radar ? 'block' : 'none'; break;
  174. case key === 'p' && shift: // Heatmap Overlay
  175. if (!heatmapEl) {
  176. heatmapEl = document.createElement('div');
  177. heatmapEl.style.cssText = `position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(255,100,0,0.2), rgba(255,0,0,0.1), transparent); z-index: 10000; pointer-events: none;`;
  178. document.body.appendChild(heatmapEl);
  179. }
  180. states.heatmap = !states.heatmap; heatmapEl.style.display = states.heatmap ? 'block' : 'none'; break;
  181. case key === 'n' && shift: // Compass
  182. if (!compassEl) {
  183. compassEl = document.createElement('div');
  184. compassEl.style.cssText = `position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border: 2px solid #ffffff; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.2), transparent); z-index: 10000; pointer-events: none; text-align: center; color: #fff; font-size: 16px; line-height: 80px;`;
  185. compassEl.innerText = 'N';
  186. document.body.appendChild(compassEl);
  187. }
  188. states.compass = !states.compass; compassEl.style.display = states.compass ? 'block' : 'none'; break;
  189.  
  190. // Tools
  191. case key === 'pageup' && !shift: states.speed = !states.speed; document.body.style.transition = states.speed ? 'all 0.1s' : ''; break;
  192. case key === 'pagedown' && !shift: states.slow = !states.slow; document.body.style.transition = states.slow ? 'all 0.5s' : ''; break;
  193. case key === 'home' && !shift: states.freeze = !states.freeze; gameCanvas.style.pointerEvents = states.freeze ? 'none' : 'auto'; break;
  194. case key === 'end' && !shift: // FPS Counter
  195. if (!fpsEl) {
  196. fpsEl = document.createElement('div');
  197. fpsEl.style.cssText = `position: fixed; top: 20px; left: 20px; color: #ffff00; z-index: 10000; font-size: 15px; background: rgba(0,0,0,0.6); padding: 6px; border-radius: 5px; box-shadow: 0 0 5px rgba(0,0,0,0.5);`;
  198. document.body.appendChild(fpsEl);
  199. let lastTime = performance.now(), frames = 0;
  200. function updateFPS() {
  201. const now = performance.now();
  202. frames++;
  203. if (now - lastTime >= 1000) {
  204. fpsEl.innerText = `FPS: ${frames}`;
  205. frames = 0;
  206. lastTime = now;
  207. }
  208. if (states.fps) requestAnimationFrame(updateFPS);
  209. }
  210. updateFPS();
  211. }
  212. states.fps = !states.fps; fpsEl.style.display = states.fps ? 'block' : 'none'; break;
  213. case key === 'pageup' && shift: // Ghost Mode (semi-transparent)
  214. states.ghost = !states.ghost; gameCanvas.style.opacity = states.ghost ? '0.7' : '1'; break;
  215. case key === 'pagedown' && shift: // Pulse Effect
  216. states.pulse = !states.pulse;
  217. if (states.pulse) {
  218. gameCanvas.style.animation = 'pulse 1.5s infinite';
  219. gameCanvas.style.cssText += `@-webkit-keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.85; } 100% { opacity: 1; } }`;
  220. } else {
  221. gameCanvas.style.animation = '';
  222. }
  223. break;
  224. case key === 'home' && shift: // Glow Edges
  225. states.glow = !states.glow; gameCanvas.style.filter = states.glow ? 'drop-shadow(0 0 5px #00ff00)' : (states.thermal || states.night || states.xray || states.predator || states.invert || states.neon || states.grayscale ? gameCanvas.style.filter : ''); break;
  226.  
  227. // Reset All
  228. case key === 'u':
  229. Object.keys(states).forEach(k => states[k] = k === 'zoomLevel' ? 1 : k === 'panX' ? 0 : false);
  230. gameCanvas.style.filter = gameCanvas.style.transform = document.body.style.transition = gameCanvas.style.opacity = gameCanvas.style.animation = '';
  231. gameCanvas.style.pointerEvents = 'auto';
  232. [crosshairEl, gridEl, radarEl, heatmapEl, compassEl, fpsEl].forEach(el => { if (el) el.style.display = 'none'; });
  233. break;
  234. }
  235. updateStatus();
  236. });
  237.  
  238. console.log('Maxed-out UI with new features and Chromebook binds injected! Enjoy, Shady Shark.');
  239. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement