Swift Client for bloxd.io

this is cool

目前为 2023-12-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Swift Client for bloxd.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description this is cool
  6. // @author Swift,Blueify and someone else
  7. // @match https://bloxd.io/
  8. // @icon https://cdn.discordapp.com/icons/1164634915330072609/6918102e1281bfeb58b66687c2520ab0.webp?size=240
  9. // @grant GM_addStyle
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. setInterval(function() {
  14. 'use strict';
  15. document.title = "Swift Client";
  16. const maintext = document.querySelector('.Title.FullyFancyText');
  17. maintext.style.fontFamily = "Reglisse-Fill, serif";
  18. maintext.style.textShadow = "none";
  19. maintext.style.webkitTextStroke = "none";
  20.  
  21. document.querySelector('.Title.FullyFancyText').textContent = "Swift Client";
  22. let background = document.getElementsByClassName("Background");
  23. background[0].src = "https://i.imgur.com/Vg1T5ap.png";
  24. let names = document.getElementsByClassName("AvailableGameText");
  25. let imgs = document.getElementsByClassName("AvailableGameImg")
  26. let imgedits = document.getElementsByClassName("AvailableGame");
  27. (function() {
  28. 'use strict';
  29. const fontLink = document.createElement('link');
  30. fontLink.href = 'https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap';
  31. fontLink.rel = 'stylesheet';
  32.  
  33. })
  34.  
  35. // Crosshair
  36. setInterval(function() {
  37. const crosshair = document.querySelector(".CrossHair");
  38. if (crosshair) {
  39. crosshair.textContent = "✖";
  40. crosshair.style.width = "30px";
  41. crosshair.style.height = "30px";
  42. }
  43. }, 1000);
  44.  
  45. document.querySelectorAll('.AvailableGame').forEach(item => {
  46. item.style.border = "none";
  47. })
  48.  
  49.  
  50. names[0].textContent = "Survival";
  51. names[0].style.textShadow = "none";
  52. imgs[0].src = "https://i.imgur.com/G9bUnQO.png";
  53. names[1].textContent = "Peaceful";
  54. names[1].style.textShadow = "none";
  55. imgs[1].src = "https://i.imgur.com/xC9jltf.png";
  56. names[2].textContent = "Creative";
  57. names[2].style.textShadow = "none";
  58. imgs[2].src = "https://i.imgur.com/BQEsCog.png";
  59. names[3].textContent = "Bedwars Squads";
  60. names[3].style.textShadow = "none";
  61. imgs[3].src = "https://i.imgur.com/TaF7UmB.png";
  62. names[4].textContent = "Bedwars Duos";
  63. names[4].style.textShadow = "none";
  64. imgs[4].src = "https://i.imgur.com/QqM1WwQ.png";
  65. names[5].textContent = "OneBlock";
  66. names[5].style.textShadow = "none";
  67. imgs[5].src = "https://i.imgur.com/aXstUVN.png";
  68. names[6].textContent = "Greenville";
  69. names[6].style.textShadow = "none";
  70. imgs[6].src = "https://i.imgur.com/YQsbnFc.png";
  71. names[7].textContent = "Warefare";
  72. names[7].style.textShadow = "none";
  73. imgs[7].src = "https://i.imgur.com/heFKXJ6.png";
  74. names[8].textContent = "EvilTower";
  75. names[8].style.textShadow = "none";
  76. imgs[8].src = "https://i.imgur.com/Gpm1cvW.png";
  77. names[9].textContent = "DoodleCube";
  78. names[9].style.textShadow = "none";
  79. imgs[9].src = "https://i.imgur.com/hjUAKVI.png";
  80. names[10].textContent = "BloxdHop";
  81. names[10].style.textShadow = "none";
  82. imgs[10].src = "https://i.imgur.com/MPRY80l.png";
  83. names[11].textContent = "Hide & Seek";
  84. names[11].style.textShadow = "none";
  85. imgs[11].src = "https://i.imgur.com/UXVWqA5.png";
  86. names[12].textContent = "Murder Mystery";
  87. names[12].style.textShadow = "none";
  88. imgs[12].src = "https://i.imgur.com/qzwM7Jv.png";
  89. names[14].textContent = "Worlds";
  90. imgs[14].src = "https://i.imgur.com/TWCWlyP.png";
  91. names[14].style.textShadow = "none";
  92.  
  93. imgedits[0].style.border = "none";
  94. imgedits[0].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  95. imgedits[1].style.border = "none";
  96. imgedits[1].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  97. imgedits[2].style.border = "none";
  98. imgedits[2].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  99. imgedits[3].style.border = "none";
  100. imgedits[3].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  101. imgedits[4].style.border = "none";
  102. imgedits[4].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  103. imgedits[5].style.border = "none";
  104. imgedits[5].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  105. imgedits[6].style.border = "none";
  106. imgedits[6].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  107. imgedits[7].style.border = "none";
  108. imgedits[7].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  109. imgedits[8].style.border = "none";
  110. imgedits[8].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  111. imgedits[9].style.border = "none";
  112. imgedits[9].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  113. imgedits[10].style.border = "none";
  114. imgedits[10].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  115. imgedits[11].style.border = "none";
  116. imgedits[11].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  117. imgedits[12].style.border = "none";
  118. imgedits[12].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  119. imgedits[13].style.border = "none";
  120. imgedits[13].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  121. imgedits[14].style.border = "none";
  122. imgedits[14].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  123. imgedits[15].style.border = "none";
  124. imgedits[15].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
  125.  
  126. },100);
  127.  
  128. //Ad Blocker
  129. document.getElementsByClassName('partnersAndCredits SmallTextLight')[0].remove();
  130. document.getElementsByClassName('SmallTextLight')[0].remove();
  131. document.getElementsByClassName('AdContainer')[0].remove();
  132.  
  133. (function() {
  134. 'use strict';
  135. const fontLink = document.createElement('link');
  136. fontLink.href = 'https://db.onlinewebfonts.com/c/68c9057f4e4dc415b2648f88526aeea7?family=Reglisse-Fill';
  137. fontLink.rel = 'stylesheet';
  138.  
  139. const text = document.createElement('div');
  140. text.style.position = "fixed";
  141. text.style.color = "#fff";
  142. text.textContent = "Swift Network";
  143. text.style.top = "85%";
  144. text.style.left = "50%";;
  145. text.style.zIndex = "10000";
  146. text.style.fontWeight = "bold";
  147. text.style.borderRadius = "25px";
  148. text.style.fontSize = "18px";
  149. text.style.height = "6vh";
  150. text.style.display = "flex";
  151. text.style.paddingTop = "0.1rem";
  152. text.style.justifyContent = "center";
  153. text.style.width = "10vw";
  154. text.style.height = "5vh";
  155. text.style.transform = "translateX(-50%)";
  156. text.style.textAlign = "center";
  157. text.style.lineHeight = "50px";
  158. text.onclick = "opener()"
  159. 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";
  160. text.style.backgroundColor = "rgba(0,0,0,.4";
  161. text.style.cursor = "pointer";
  162.  
  163. document.head.appendChild(fontLink);
  164. document.body.appendChild(text);
  165. })();
  166.  
  167. // Hotbar
  168. (function() {
  169. 'use strict';
  170.  
  171. setInterval(function() {
  172. const hotbarslots = document.querySelectorAll(".item");
  173. const selectedslot = document.querySelectorAll(".SelectedItem");
  174. if (hotbarslots) {
  175. hotbarslots.forEach(function(hotbar) {
  176. hotbar.style.borderRadius = "8px";
  177. hotbar.style.borderColor = "#303a5900";
  178. hotbar.style.backgroundColor = "#D13D2E";
  179. hotbar.style.boxShadow = "inset -2px -2px 10px 0px rgb(133, 0, 0), inset 0.3px 0.3px 5px 0px rgb(255, 255, 255)"
  180. hotbar.style.outline = "transparent"
  181. });
  182. }
  183. if (selectedslot) {
  184. selectedslot.forEach(function(slot) {
  185. slot.style.backgroundColor = "#c9991c";
  186. slot.style.boxShadow = "inset -2px -2px 10px 0px rgb(210, 183, 45), inset 0.3px 0.3px 5px 0px rgb(255, 255, 255)";
  187. slot.style.borderColor = "#b88c1a";
  188. slot.style.outline = "transparent";
  189. });
  190. }
  191. }, 1);
  192. })();