Planet Client

This is a Bloxd.io Client!

  1. // ==UserScript==
  2. // @name Planet Client
  3. // @namespace http://tampermonkey.net/
  4. // @version 3.3
  5. // @description This is a Bloxd.io Client!
  6. // @author Ankit
  7. // @match https://bloxd.io/
  8. // @match https://bloxd.io/?utm_source=pwa
  9. // @match https://staging.bloxd.io/
  10. // @icon https://i.imgur.com/gfZEi7a.png
  11. // @grant GM_addStyle
  12. // @license GPLv3
  13. // ==/UserScript==
  14.  
  15. setInterval(function() {
  16. 'use strict';
  17. document.title = "Planet Client";
  18. const maintext = document.querySelector('.Title.FullyFancyText');
  19. maintext.style.textShadow = "10px 5px 5px #000000";
  20. maintext.style.webkitTextStroke = "none";
  21. maintext.style.fontFamily = "'Baloo Paaji 2', cursive"; // Change to Baloo Paaji 2
  22. document.querySelector('.Title.FullyFancyText').textContent = "Planet Client";
  23. const background = document.querySelector(".HomeBackground");
  24. if (background) {
  25. background.style.backgroundImage = 'url(https://wallpapercrafter.com/desktop/152018-digital-art-space-stars-black-Earth-planet-pixels-pixel-art-pixelated-simple-background-square-minimalism.png)';
  26. }
  27. const modifyElements = () => {
  28. ['LogoContainer', 'cube'].forEach(className => {
  29. document.querySelectorAll('.' + className).forEach(el => el.remove());
  30. });
  31. };
  32. modifyElements(); // Call the function to remove elements
  33. }, 1000); // Missing closing parenthesis
  34.  
  35. //CrossHair
  36. setInterval(function() {
  37. const crosshair = document.querySelector(".CrossHair");
  38. if (crosshair) {
  39. crosshair.textContent = "";
  40. crosshair.style.backgroundImage = "url(https://i.imgur.com/1MnSP24.pngww)";
  41. crosshair.style.backgroundRepeat = "no-repeat";
  42. crosshair.style.backgroundSize = "contain";
  43. crosshair.style.width = "19px";
  44. crosshair.style.height = "19px";
  45. }
  46. }, 1);
  47.  
  48. //Planet Network Overlay
  49. (function() {
  50. 'use strict';
  51. const fontLink = document.createElement('link');
  52. fontLink.href = 'https://db.onlinewebfonts.com/c/68c9057f4e4dc415b2648f88526aeea7?family=Reglisse-Fill';
  53. fontLink.rel = 'stylesheet';
  54.  
  55. const text = document.createElement('div');
  56. text.style.position = "fixed";
  57. text.style.color = "#fff";
  58. text.textContent = "Planet Network";
  59. text.style.top = "75%";
  60. text.style.left = "50%";
  61. text.style.zIndex = "10000";
  62. text.style.fontWeight = "bold";
  63. text.style.borderRadius = "25px";
  64. text.style.fontSize = "18px";
  65. text.style.height = "6vh";
  66. text.style.display = "flex";
  67. text.style.paddingTop = "0.1rem";
  68. text.style.justifyContent = "center";
  69. text.style.width = "11vw";
  70. text.style.height = "6vh";
  71. text.style.transform = "translateX(-50%)";
  72. text.style.textAlign = "center";
  73. text.style.lineHeight = "50px";
  74. text.style.boxShadow = "rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px";
  75. text.style.backgroundColor = "rgba(0,0,0,.4)";
  76. text.style.cursor = "pointer";
  77. text.style.pointerEvents = "none"; // This makes the element click-through
  78.  
  79. document.head.appendChild(fontLink);
  80. document.body.appendChild(text);
  81.  
  82. function centerText() {
  83. text.style.top = "77%";
  84. text.style.left = "50%";
  85. text.style.transform = "translate(-50%, -50%)";
  86. }
  87.  
  88. window.addEventListener('resize', centerText);
  89. centerText();
  90. })();
  91.  
  92.  
  93. // Keystrocks\CPS Counter
  94. (function () {
  95. console.log('Script loaded');
  96.  
  97. // Load Minecraftia font
  98. var fontLink = document.createElement('link');
  99. fontLink.href = 'https://fonts.cdnfonts.com/css/minecraftia';
  100. fontLink.rel = 'stylesheet';
  101. document.head.appendChild(fontLink);
  102.  
  103. // Create the main container
  104. var container = document.createElement('div');
  105. container.style.position = 'fixed';
  106. container.style.bottom = '30px';
  107. container.style.left = '1188px';
  108. container.style.backgroundColor = 'transparent';
  109. container.style.color = 'white';
  110. container.style.padding = '5px';
  111. container.style.fontFamily = "'Minecraftia', sans-serif";
  112. container.style.zIndex = '9999';
  113. container.style.pointerEvents = 'none';
  114.  
  115. // Create rows for keystrokes display
  116. var row1 = document.createElement('div');
  117. row1.style.display = 'flex';
  118. row1.style.justifyContent = 'center';
  119.  
  120. var upKey = createKeyElement('W');
  121.  
  122. var row2 = document.createElement('div');
  123. row2.style.display = 'flex';
  124. row2.style.justifyContent = 'center';
  125.  
  126. var leftKey = createKeyElement('A');
  127. var sprintKey = createKeyElement('S');
  128. var rightKey = createKeyElement('D');
  129.  
  130. var row3 = document.createElement('div');
  131. row3.style.display = 'flex';
  132. row3.style.justifyContent = 'center';
  133.  
  134. var spaceKey = createKeyElement('____');
  135.  
  136. var row4 = document.createElement('div');
  137. row4.style.display = 'flex';
  138. row4.style.justifyContent = 'center';
  139.  
  140. var lmbKey = createKeyElement('LMB');
  141. var rmbKey = createKeyElement('RMB');
  142.  
  143. row1.appendChild(upKey);
  144. row2.appendChild(leftKey);
  145. row2.appendChild(sprintKey);
  146. row2.appendChild(rightKey);
  147. row3.appendChild(spaceKey);
  148. row4.appendChild(lmbKey);
  149. row4.appendChild(rmbKey);
  150. container.appendChild(row1);
  151. container.appendChild(row2);
  152. container.appendChild(row3);
  153. container.appendChild(row4);
  154.  
  155. document.body.appendChild(container);
  156.  
  157. var pressedKeys = new Set(); // To track pressed keys
  158.  
  159. function createKeyElement(keyText) {
  160. var keyElement = document.createElement('div');
  161. keyElement.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
  162. keyElement.style.color = 'white';
  163. keyElement.style.padding = '15px 20px';
  164. keyElement.style.margin = '1px';
  165. keyElement.style.fontFamily = "'Minecraftia', sans-serif";
  166. keyElement.style.fontSize = '20px';
  167. keyElement.style.textAlign = 'center';
  168. keyElement.style.transition = 'all 0.2s ease-in-out';
  169. keyElement.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.3)'; // Add shadow effect
  170. keyElement.textContent = keyText;
  171.  
  172. if (keyText === '____') {
  173. keyElement.style.padding = '12.5px 61px';
  174. keyElement.style.fontFamily = 'sans-serif';
  175. }
  176.  
  177. if (keyText === 'LMB') {
  178. keyElement.style.padding = '15px 17px';
  179. keyElement.style.transition = 'all 0.15s ease-in-out';
  180. }
  181.  
  182. if (keyText === 'RMB') {
  183. keyElement.style.padding = '15px 20px';
  184. keyElement.style.transition = 'all 0.15s ease-in-out';
  185. }
  186.  
  187. return keyElement;
  188. }
  189.  
  190. document.addEventListener('keydown', function (event) {
  191. if (!pressedKeys.has(event.key)) {
  192. pressedKeys.add(event.key);
  193. highlightKey(event.key, 'rgba(255, 255, 255, 0.5)', 'black');
  194. }
  195. });
  196.  
  197. document.addEventListener('keyup', function (event) {
  198. if (pressedKeys.has(event.key)) {
  199. pressedKeys.delete(event.key);
  200. highlightKey(event.key, 'rgba(0, 0, 0, 0.5)', 'white');
  201. }
  202. });
  203.  
  204. document.addEventListener('mousedown', function (event) {
  205. if (event.button === 0) {
  206. lmbKey.style.backgroundColor = 'rgba(255, 255, 255, 0.5)';
  207. lmbKey.style.color = 'black';
  208. countLeftClick();
  209. } else if (event.button === 2) {
  210. rmbKey.style.backgroundColor = 'rgba(255, 255, 255, 0.5)';
  211. rmbKey.style.color = 'black';
  212. countRightClick();
  213. }
  214. });
  215.  
  216. document.addEventListener('mouseup', function (event) {
  217. if (event.button === 0) {
  218. lmbKey.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
  219. lmbKey.style.color = 'white';
  220. } else if (event.button === 2) {
  221. rmbKey.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
  222. rmbKey.style.color = 'white';
  223. }
  224. });
  225.  
  226. function highlightKey(key, bgColor, textColor) {
  227. let keyElement;
  228. switch (key) {
  229. case 'w': keyElement = upKey; break;
  230. case 'a': keyElement = leftKey; break;
  231. case 's': keyElement = sprintKey; break;
  232. case 'd': keyElement = rightKey; break;
  233. case ' ': keyElement = spaceKey; break;
  234. default: return;
  235. }
  236. keyElement.style.backgroundColor = bgColor;
  237. keyElement.style.color = textColor;
  238. }
  239.  
  240. // CPS Tracking
  241. var leftClickTimes = [];
  242. var rightClickTimes = [];
  243. var cpsDisplay = document.createElement('div');
  244. cpsDisplay.style.position = 'fixed';
  245. cpsDisplay.style.bottom = '5px';
  246. cpsDisplay.style.left = '1166px';
  247. cpsDisplay.style.color = 'white';
  248. cpsDisplay.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
  249. cpsDisplay.style.padding = '10px';
  250. cpsDisplay.style.fontFamily = "'Minecraftia', sans-serif";
  251. cpsDisplay.style.fontSize = '14px';
  252. cpsDisplay.style.zIndex = '9999';
  253. cpsDisplay.textContent = '0 | 0';
  254.  
  255. document.body.appendChild(cpsDisplay);
  256.  
  257. function countLeftClick() {
  258. var currentTime = new Date().getTime();
  259. leftClickTimes.push(currentTime);
  260. updateCPS();
  261. }
  262.  
  263. function countRightClick() {
  264. var currentTime = new Date().getTime();
  265. rightClickTimes.push(currentTime);
  266. updateCPS();
  267. }
  268.  
  269. function updateCPS() {
  270. var currentTime = new Date().getTime();
  271. var oneSecondAgo = currentTime - 1000;
  272.  
  273. // Filter out clicks older than 1 second
  274. leftClickTimes = leftClickTimes.filter(time => time >= oneSecondAgo);
  275. rightClickTimes = rightClickTimes.filter(time => time >= oneSecondAgo);
  276.  
  277. // Update CPS display
  278. cpsDisplay.textContent = `${leftClickTimes.length} | ${rightClickTimes.length}`;
  279. }
  280.  
  281. // Check for inactivity and reset CPS to 0 after 1 second
  282. setInterval(function () {
  283. var currentTime = new Date().getTime();
  284. if (leftClickTimes.length > 0 && currentTime - leftClickTimes[leftClickTimes.length - 1] > 1000) {
  285. leftClickTimes = [];
  286. }
  287. if (rightClickTimes.length > 0 && currentTime - rightClickTimes[rightClickTimes.length - 1] > 1000) {
  288. rightClickTimes = [];
  289. }
  290.  
  291. updateCPS(); // Recheck and update the display
  292. }, 100);
  293.  
  294. })();
  295.  
  296. //Hotbar and Transparent name for games
  297. (function() {
  298. 'use strict';
  299. setInterval(function() {
  300. const hotBarItem = document.querySelectorAll(".HotBarItem");
  301. const selectedslot = document.querySelectorAll(".SelectedItem");
  302. if (hotBarItem) {
  303. hotBarItem.forEach(function(hotbar) {
  304. hotbar.style.borderRadius = "8px";
  305. hotbar.style.borderColor = "#000000";
  306. hotbar.style.backgroundColor = "transparent";
  307. hotbar.style.boxShadow = "none";
  308. hotbar.style.outline = "transparent";
  309. });
  310. }
  311. if (selectedslot) {
  312. selectedslot.forEach(function(slot) {
  313. slot.style.backgroundColor = "transparent";
  314. slot.style.boxShadow = "none";
  315. slot.style.borderRadius = "15px";
  316. slot.style.borderColor = "#FFFFFF";
  317. slot.style.outline = "transparent";
  318. });
  319. }
  320. }, 1);
  321. })();
  322.  
  323. document.addEventListener('DOMContentLoaded', modifyElements);
  324. setInterval(modifyElements, 1000);
  325.  
  326. function modifyElements() {
  327. let names = document.getElementsByClassName("AvailableGameTextInner");
  328. let removebox = document.getElementsByClassName("AvailableGameTextWrapperBackground");
  329. let imgedits = document.getElementsByClassName("AvailableGame");
  330.  
  331. document.querySelectorAll('.AvailableGame').forEach(item => {
  332. item.style.border = "none";
  333. });
  334.  
  335. for (let i = 0; i < names.length; i++) {
  336. names[i].style.textShadow = "1px 1px 2px red, -1px -1px 2px blue";
  337. removebox[i].style.opacity = "0";
  338. imgedits[i].style.border = "10px";
  339. imgedits[i].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.4)";
  340. }
  341. }