drxgon's best legit script

the best legit script in sploop.io

  1. // ==UserScript==
  2. // @name drxgon's best legit script
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description the best legit script in sploop.io
  6. // @author drxgon
  7. // @match https://sploop.io/
  8. // @icon https://sploop.io/img/ui/favicon.png
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function(){
  13. //in-game menu
  14. let popUI = document.querySelector('#pop-ui');
  15. let settings = document.querySelector('#pop-settings');
  16. //style changes
  17. document.getElementById("hat_menu_content").style.background = "rgba(0,0,0,0)";
  18. document.getElementById('hat-menu').style.background = "rgba(0,0,0,0)";
  19. document.getElementById('hat-menu').style.opacity = '0.5';
  20. document.getElementById("clan_menu_content").style.background = "rgba(0,0,0,0)";
  21. document.getElementById('clan-menu').style.background = "rgba(0,0,0,0)";
  22. document.getElementById('clan-menu').style.opacity = '0.5';
  23. document.getElementById('ranking-middle-main').style.height = '380px';
  24. document.getElementById('ranking-ranks-container').style.height = '295px';
  25. document.getElementById('ranking2-middle-main').style.height = '380px';
  26. document.getElementById('ranking-rank-container').style.height = '295px';
  27. document.getElementById('profile-left-main').style.width = '650px';
  28. document.getElementById('change-username').style.width = '200px';
  29. //adjustment fixes
  30. document.querySelector('#game-content').style.justifyContent = 'center';
  31. document.querySelector('#main-content').style.width = 'auto';
  32. //ad remove
  33. var styleItem1 = document.createElement('style');
  34. styleItem1.type = 'text/css';
  35. styleItem1.appendChild(document.createTextNode(`#cross-promo, #bottom-wrap, #google_play, #game-left-content-main, #game-bottom-content, #game-right-content-main, #right-content { display: none !important;
  36. }
  37. create_clan *, #pop-ui {
  38. background-color: transparent;
  39. }
  40. #pop-settings {
  41. background: rgba(0,0,0,0.5);
  42. opacity: 0.95;
  43. }`));
  44. document.head.appendChild(styleItem1);
  45. //auto settings
  46. const grid = document.querySelector('#grid-toggle');
  47. const ping = document.querySelector('#display-ping-toggle');
  48. grid.click();
  49. ping.click();
  50. //in-game menu
  51. document.addEventListener('keydown', e =>{
  52. if(e.keyCode == 27) {
  53. if(document.querySelector('#hat-menu').style.display !== "flex" && document.querySelector('#clan-menu').style.display !== "flex" && document.querySelector('#homepage').style.display !== "flex" && document.querySelector('#chat-wrapper').style.display !== "block") {
  54. if(!popUI.classList.contains('fade-in')) {
  55. popUI.classList.add('fade-in');
  56. popUI.style.display = "flex";
  57. settings.style.display = "flex";
  58. return;
  59. }
  60. popUI.classList.remove('fade-in');
  61. popUI.style.display = "none";
  62. settings.style.display = "none";
  63. }}});})();
  64.  
  65. document.getElementById("hat-menu").style.height = "345px";
  66. document.getElementById("hat-menu").style.background = "rgb(40 45 34 / 0%)";
  67. document.getElementById("hat-menu").style.border = "5px solid #14141400";
  68. const popBoxes = document.querySelectorAll('.pop-box');
  69. popBoxes.forEach((box) => {
  70. box.style.boxShadow = "inset 0 4px 0 #4e564500, inset 0 -4px 0 #38482500, 0px 2px 0 5px rgb(20 20 20 / 0%), 0px 0px 0 15px rgb(20 20 20 / 0%)";
  71. });
  72. const popCloseButtons = document.querySelectorAll('.pop-close-button');
  73. popCloseButtons.forEach((button) => {
  74. button.remove();
  75. });
  76. setInterval(function() {
  77. var phrases = ["Data", "QuerySelector", "Audience", "Prosper", "Bobo ex", "bubble", "HAHAHHAHAHAHA", "Zephyr", "Quibble", "Bumblebee", "Jabberwocky", "Skedaddle", "Gobbledygook", "Flummox", "Wobble", "Blubber", "Malarkey", "Hodgepodge", "Quirk", "Juxtapose", "Scrumptious", "Flibbertigibbet", "Whippersnapper", "Brouhaha", "Kerfuffle", "Snickerdoodle", "Gadzooks"];
  78. var randomIndex = Math.floor(Math.random() * phrases.length);
  79. var randomPhrase = phrases[randomIndex];
  80.  
  81. var elements = document.getElementsByClassName('pop-title text-shadowed-4');
  82. for (var i = 0; i < elements.length; i++) {
  83. elements[i].textContent = randomPhrase;
  84. }
  85. }, 250);
  86.  
  87.  
  88. const ItemsMenu = document.querySelectorAll('.column-flex.column-flex-extra');
  89. ItemsMenu.forEach((button, index) => {
  90. button.id = `Items-${index + 1}`;
  91. });
  92. const Price = document.querySelectorAll('.pricing.hat_price_tag');
  93. Price.forEach((button, index) => {
  94. button.id = `Price-${index + 1}`;
  95. });
  96. for (let i = 1; i <= 11; i++) {
  97. const item = document.getElementById(`Items-${i}`);
  98. if (item) {
  99. item.style.opacity = "0.2";
  100. }
  101. }
  102. for (let i = 1; i <= 11; i++) {
  103. const Nou = document.getElementById(`Price-${i}`);
  104. if (Nou) {
  105. Nou.style.opacity = "0.2";
  106. }
  107. }
  108. const menuItems = document.querySelectorAll('.menu .content .menu-item');
  109. menuItems.forEach(item => {
  110. item.style.borderBottom = '3px solid #1414146b';
  111. });
  112. const Subcontent = document.querySelectorAll('.subcontent-bg');
  113. Subcontent.forEach(item => {
  114. item.style.border = '3px solid #1414146b';
  115. item.style.boxShadow = 'inset 0 5px 0 rgba(20, 20, 20, 0)';
  116. item.style.background = 'rgb(20 20 20 / 16%)';
  117. });
  118. const menuPricingActions = document.querySelectorAll('.menu .content .menu-item .menu-pricing .action');
  119. menuPricingActions.forEach(item => {
  120. item.style.border = '4px solid rgba(20, 20, 20, 0.42)';
  121. item.style.backgroundColor = 'rgb(150 185 67 / 32%)';
  122. item.style.boxShadow = 'inset 0 -5px 0 #80983600';
  123. item.style.opacity = '0.2';
  124. });
  125.  
  126. document.documentElement.style.overflow = 'hidden';
  127.  
  128.  
  129. const grids = document.querySelector("#grid-toggle");
  130. setInterval(() => {
  131. if (grids.checked){grids.click();}
  132. }, 0);
  133.  
  134. var hatMenuContent = document.getElementById("hat_menu_content");
  135. var images = hatMenuContent.getElementsByTagName("img");
  136. for (var i = 0; i < images.length; i++) {
  137. images[i].setAttribute("draggable", "false");
  138. }
  139.  
  140. function blur() {
  141. const homepage = document.getElementById("homepage");
  142. homepage.style.display = "flex";
  143.  
  144. let blurValue = 0;
  145. const blurInterval = setInterval(() => {
  146. blurValue += 0.1;
  147. homepage.style.backdropFilter = `blur(${blurValue}px)`;
  148.  
  149. if (blurValue >= 5) {
  150. clearInterval(blurInterval);
  151. }
  152. }, 200);
  153. }
  154. setTimeout(blur, 2000);
  155.  
  156. const originalFillRect = CanvasRenderingContext2D.prototype.fillRect;
  157. const customFillColor = "#6ee0dc";
  158.  
  159. CanvasRenderingContext2D.prototype.fillRect = function (x, y, width, height) {
  160. if (this.fillStyle === "#a4cc4f") {
  161. this.fillStyle = customFillColor;
  162. }
  163. originalFillRect.call(this, x, y, width, height);
  164. };
  165.  
  166. CanvasRenderingContext2D.prototype.fillText = new Proxy(CanvasRenderingContext2D.prototype.fillText, {
  167. apply: function (target, thisArg, argumentsList) {
  168. thisArg.lineWidth = 8;
  169. thisArg.strokeStyle = "#2a2b25";
  170. thisArg.strokeText.apply(thisArg, argumentsList);
  171. return target.apply(thisArg, argumentsList);
  172. }
  173. });
  174.  
  175.  
  176. CanvasRenderingContext2D.prototype.fillText = new Proxy(CanvasRenderingContext2D.prototype.fillText, {
  177. apply: function (target, thisArg, argumentsList) {
  178. if (typeof argumentsList[0] == 'string' && argumentsList[0].includes('[')) {
  179. thisArg.fillStyle = "#6ee0dc";
  180. thisArg.shadowColor = "rgba(0, 0, 0, 0.7)";
  181. thisArg.shadowBlur = 5;
  182. }
  183. return target.apply(thisArg, argumentsList);
  184. }
  185. });
  186.  
  187. CanvasRenderingContext2D.prototype.fillText = new Proxy(CanvasRenderingContext2D.prototype.fillText, {
  188. apply: function (target, thisArg, argumentsList) {
  189. thisArg.lineWidth = 8;
  190. thisArg.strokeStyle = "#2a2b25";
  191. thisArg.strokeText.apply(thisArg, argumentsList);
  192. return target.apply(thisArg, argumentsList);
  193. }
  194. });