LunarX Client

INSANE

  1. // ==UserScript==
  2. // @name LunarX Client
  3. // @namespace your-namespace
  4. // @version 1.3
  5. // @description INSANE
  6. // @author Ninji
  7. // @match https://*.bloxd.io/*
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. var container = document.createElement('div');
  13. container.style.position = 'fixed';
  14. container.style.bottom = '10px';
  15. container.style.left = '10px';
  16. container.style.backgroundColor = 'transparent';
  17. container.style.color = 'white';
  18. container.style.padding = '5px';
  19. container.style.fontFamily = 'Montserrat';
  20. container.style.fontSize = '14px';
  21. container.style.zIndex = '9999';
  22.  
  23. var row1 = document.createElement('div');
  24. row1.style.display = 'flex';
  25. row1.style.justifyContent = 'center';
  26.  
  27. var upKey = createKeyElement('W');
  28.  
  29. var row2 = document.createElement('div');
  30. row2.style.display = 'flex';
  31. row2.style.justifyContent = 'center';
  32.  
  33. var leftKey = createKeyElement('A');
  34. var sprintKey = createKeyElement('S');
  35. var rightKey = createKeyElement('D');
  36.  
  37. var row3 = document.createElement('div');
  38. row3.style.display = 'flex';
  39. row3.style.justifyContent = 'center';
  40.  
  41. var shiftKey = createKeyElement('Shift');
  42. var spaceKey = createKeyElement(' ');
  43.  
  44. var row4 = document.createElement('div');
  45. row4.style.display = 'flex';
  46. row4.style.justifyContent = 'center';
  47.  
  48. var lmbKey = createKeyElement('LMB');
  49. var rmbKey = createKeyElement('RMB');
  50.  
  51. row1.appendChild(upKey);
  52. row2.appendChild(leftKey);
  53. row2.appendChild(sprintKey);
  54. row2.appendChild(rightKey);
  55. row3.appendChild(shiftKey);
  56. row3.appendChild(spaceKey);
  57. row4.appendChild(lmbKey);
  58. row4.appendChild(rmbKey);
  59. container.appendChild(row1);
  60. container.appendChild(row2);
  61. container.appendChild(row3);
  62. container.appendChild(row4);
  63.  
  64. document.body.appendChild(container);
  65.  
  66. var cpsButton = document.createElement('div');
  67. cpsButton.style.position = 'fixed';
  68. cpsButton.style.top = '10px';
  69. cpsButton.style.right = '10px';
  70. cpsButton.style.backgroundColor = 'black';
  71. cpsButton.style.color = 'white';
  72. cpsButton.style.padding = '5px';
  73. cpsButton.style.fontFamily = 'Arial';
  74. cpsButton.style.fontSize = '14px';
  75. cpsButton.style.zIndex = '9999';
  76. cpsButton.textContent = '';
  77.  
  78. var cpsLabel = document.createElement('span');
  79. cpsLabel.textContent = 'CPS: ';
  80. var cpsValue = document.createElement('span');
  81. cpsValue.textContent = '0';
  82.  
  83. cpsButton.appendChild(cpsLabel);
  84. cpsButton.appendChild(cpsValue);
  85. document.body.appendChild(cpsButton);
  86.  
  87. cpsButton.addEventListener('click', function () {
  88. resetClickCount();
  89. });
  90.  
  91. var clickTimes = [];
  92.  
  93. document.addEventListener('keydown', function (event) {
  94. highlightKey(event.key, 'green');
  95. });
  96.  
  97. document.addEventListener('keyup', function (event) {
  98. highlightKey(event.key, 'transparent');
  99. });
  100.  
  101. document.addEventListener('mousedown', function (event) {
  102. if (event.button === 0) {
  103. lmbKey.style.backgroundColor = 'green';
  104. countClick();
  105. } else if (event.button === 2) {
  106. rmbKey.style.backgroundColor = 'green';
  107. }
  108. });
  109.  
  110. document.addEventListener('mouseup', function (event) {
  111. if (event.button === 0) {
  112. lmbKey.style.backgroundColor = 'transparent';
  113. } else if (event.button === 2) {
  114. rmbKey.style.backgroundColor = 'transparent';
  115. }
  116. });
  117.  
  118. function createKeyElement(keyText) {
  119. var keyElement = document.createElement('div');
  120. keyElement.style.backgroundColor = 'transparent';
  121. keyElement.style.color = 'white';
  122. keyElement.style.padding = '5px';
  123. keyElement.style.margin = '2px';
  124. keyElement.style.border = '1px solid white';
  125. keyElement.style.borderRadius = '5px';
  126. keyElement.style.fontFamily = 'Arial';
  127. keyElement.style.fontSize = '20px';
  128. keyElement.textContent = keyText;
  129. return keyElement;
  130. }
  131.  
  132. function highlightKey(key, color) {
  133. switch (key) {
  134. case 'w':
  135. upKey.style.backgroundColor = color;
  136. break;
  137. case 'a':
  138. leftKey.style.backgroundColor = color;
  139. break;
  140. case 's':
  141. sprintKey.style.backgroundColor = color;
  142. break;
  143. case 'd':
  144. rightKey.style.backgroundColor = color;
  145. break;
  146. case 'Shift':
  147. shiftKey.style.backgroundColor = color;
  148. break;
  149. case ' ':
  150. spaceKey.style.backgroundColor = color;
  151. break;
  152. default:
  153. break;
  154. }
  155. }
  156.  
  157. function countClick() {
  158. var currentTime = new Date().getTime();
  159. clickTimes.push(currentTime);
  160. updateCPS();
  161. }
  162.  
  163. function updateCPS() {
  164. var currentTime = new Date().getTime();
  165. var oneSecondAgo = currentTime - 1000;
  166. var count = 0;
  167.  
  168. for (var i = clickTimes.length - 1; i >= 0; i--) {
  169. if (clickTimes[i] >= oneSecondAgo) {
  170. count++;
  171. } else {
  172. break;
  173. }
  174. }
  175.  
  176. cpsValue.textContent = count;
  177. }
  178.  
  179. function resetClickCount() {
  180. clickTimes = [];
  181. updateCPS();
  182. }
  183. })();
  184.  
  185. const myCPS = document.querySelector("body > div:nth-child(10)");
  186. if (myCPS) {
  187. myCPS.style.fontSize = '40px';
  188. myCPS.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; // Set the background color to black with 50% transparency
  189. }
  190.  
  191. // ==UserScript==
  192. // @name Glowing Crosshair
  193. // @namespace your-namespace
  194. // @version 1.0
  195. // @description Adds a glowing crosshair with a circular shadow background to any website.
  196. // @author Your Name
  197. // @match *://*/*
  198. // @grant GM_addStyle
  199. // ==/UserScript==
  200.  
  201. (function() {
  202. 'use strict';
  203.  
  204. let crosshairVisible = false;
  205.  
  206. function toggleCrosshair() {
  207. const crosshair = document.getElementById('crosshair');
  208. if (crosshair) {
  209. crosshair.remove();
  210. crosshairVisible = false;
  211. } else {
  212. addCrosshair();
  213. crosshairVisible = true;
  214. }
  215. }
  216.  
  217. function addCrosshair() {
  218. GM_addStyle(`
  219. #crosshair {
  220. position: fixed;
  221. top: 50%;
  222. left: 50%;
  223. transform: translate(-50%, -50%);
  224. width: 100px;
  225. height: 100px;
  226. border: 2px solid white;
  227. border-radius: 50%;
  228. box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
  229. animation: glow 1.5s ease-in-out infinite;
  230. z-index: 9999;
  231. pointer-events: none; /* Allow click events to pass through */
  232. }
  233.  
  234. #noa-canvas {
  235. position: relative;
  236. z-index: 9998;
  237. }
  238.  
  239. @keyframes glow {
  240. 0% {
  241. box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
  242. }
  243. 50% {
  244. box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.4);
  245. }
  246. 100% {
  247. box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.8);
  248. }
  249. }
  250. `);
  251.  
  252. const crosshair = document.createElement('div');
  253. crosshair.id = 'crosshair';
  254.  
  255. document.body.appendChild(crosshair);
  256.  
  257. window.addEventListener('mousemove', (event) => {
  258. const mouseX = event.clientX;
  259. const mouseY = event.clientY;
  260. crosshair.style.left = mouseX + 'px';
  261. crosshair.style.top = mouseY + 'px';
  262. });
  263. }
  264.  
  265. function handleKeyPress(event) {
  266. if (event.key === 'g' || event.key === 'G') {
  267. toggleCrosshair();
  268. }
  269. }
  270.  
  271. if (document.readyState === 'loading') {
  272. document.addEventListener('DOMContentLoaded', addCrosshair);
  273. } else {
  274. addCrosshair();
  275. }
  276.  
  277. window.addEventListener('keydown', handleKeyPress);
  278. })();
  279.  
  280. (function() {
  281. 'use strict';
  282.  
  283. // Disable unnecessary animations
  284. document.body.style.animation = 'none';
  285.  
  286. // Disable image smoothing
  287. const canvasElements = document.getElementsByTagName('canvas');
  288. for (let i = 0; i < canvasElements.length; i++) {
  289. const canvas = canvasElements[i];
  290. const context = canvas.getContext('2d');
  291. context.imageSmoothingEnabled = false;
  292. }
  293.  
  294. // Disable shadows
  295. const styleElements = document.getElementsByTagName('style');
  296. for (let i = 0; i < styleElements.length; i++) {
  297. const style = styleElements[i];
  298. if (style.innerText.includes('box-shadow')) {
  299. style.innerText = style.innerText.replace(/box-shadow[^}]+}/g, '');
  300. }
  301. }
  302. })();
  303.  
  304.  
  305. function myFunction() {
  306. const myCrosshair = document.querySelector("#root > div.WholeAppWrapper > div > div.CrossHair")
  307. if (myCrosshair) {
  308. myCrosshair.textContent = '𐀏';
  309. }
  310. const annoyingIcons = document.querySelector("#root > div.WholeAppWrapper > div > div.BottomLeftIcons");
  311. if (annoyingIcons) {
  312. annoyingIcons.style.display = "none";
  313. annoyingIcons.style.visibility = 'hidden';
  314. }
  315. const annoyingIcons2 = document.querySelector("#root > div.WholeAppWrapper > div > div.TopRightElements")
  316. if (annoyingIcons2) {
  317. annoyingIcons2.style.display = "none";
  318. annoyingIcons2.style.visibility = 'hidden';
  319. }
  320. }
  321.  
  322. setInterval(myFunction, 1000)
  323.  
  324. const cpsCounter = document.querySelector("body > div:nth-child(10)")
  325. if (cpsCounter) {
  326. cpsCounter.style.fontSize = '40px';
  327. }
  328.  
  329. (function() {
  330. 'use strict';
  331. const Title = document.querySelector('.Title.FullyFancyText');
  332. const LogoContainer = document.querySelector('.LogoContainer');
  333. const Background = document.querySelector('.HomeBackground');
  334. if (Title) {
  335. Title.style.whiteSpace = "nowrap";
  336. Title.innerText = "LunarX Client";
  337. Title.style.color = "#FFD700";
  338. }
  339. if (LogoContainer) {
  340. LogoContainer.style.display = "none";
  341. }
  342. if (Background) {
  343. Background.style = "background-image: url('https://i.ytimg.com/vi/7EV4cPuJvXE/mqdefault.jpg'); filter: blur(4px) brightness(0.5);";
  344. }
  345. const customMessage = document.createElement("div");
  346. customMessage.innerText = "Welcome to LunarX Client!";
  347. customMessage.style.position = "absolute";
  348. customMessage.style.top = "10px";
  349. customMessage.style.right = "10px";
  350. customMessage.style.padding = "10px 20px";
  351. customMessage.style.backgroundColor = "rgba(0, 0, 0, 0.7)";
  352. customMessage.style.color = "#FFD700";
  353. customMessage.style.fontSize = "20px";
  354. customMessage.style.borderRadius = "8px";
  355. document.body.appendChild(customMessage);
  356. const customButton = document.createElement("button");
  357. customButton.innerText = "Activate Boost";
  358. customButton.style.position = "fixed";
  359. customButton.style.bottom = "20px";
  360. customButton.style.right = "20px";
  361. customButton.style.padding = "10px 20px";
  362. customButton.style.backgroundColor = "#FFD700";
  363. customButton.style.color = "#282c34";
  364. customButton.style.border = "none";
  365. customButton.style.borderRadius = "8px";
  366. customButton.style.cursor = "pointer";
  367. document.body.appendChild(customButton);
  368. customButton.addEventListener("click", () => {
  369. alert("Boost activated!");
  370. console.log("Boost button clicked!");
  371. });
  372. })();
  373.  
  374. (function() {
  375. 'use strict';
  376. setInterval(function() {
  377. const hotBarItem = document.querySelectorAll(".HotBarItem");
  378. const selectedslot = document.querySelectorAll(".SelectedItem");
  379. if (hotBarItem) {
  380. hotBarItem.forEach(function(hotbar) {
  381. hotbar.style.borderRadius = "8px";
  382. hotbar.style.borderColor = "#000000";
  383. hotbar.style.backgroundColor = "transparent";
  384. hotbar.style.boxShadow = "none";
  385. hotbar.style.outline = "transparent";
  386. });
  387. }
  388. if (selectedslot) {
  389. selectedslot.forEach(function(slot) {
  390. slot.style.backgroundColor = "transparent";
  391. slot.style.boxShadow = "none";
  392. slot.style.borderRadius = "15px";
  393. slot.style.borderColor = "#FFFFFF";
  394. slot.style.outline = "transparent";
  395. });
  396. }
  397. }, 1);
  398. })();