Sploop.io W-MOD [Modifications]

Transparent Hat & Clan Menu, Auto Toggle, Auto Select Mode, Access Settings in-game, Ad Remove

  1. // ==UserScript==
  2. // @name Sploop.io W-MOD [Modifications]
  3. // @namespace https://greasyfork.org/en/users/752105-w4it
  4. // @version v3.1.0
  5. // @description Transparent Hat & Clan Menu, Auto Toggle, Auto Select Mode, Access Settings in-game, Ad Remove
  6. // @author W4IT
  7. // @match *://*.sploop.io/*
  8. // @grant none
  9. // @icon https://cdn.discordapp.com/attachments/954435318856175649/1089541815067234374/pixil-frame-0_6_2.png
  10. // @license ISC
  11. // ==/UserScript==
  12.  
  13. // Get DOM elements
  14. let popUI = document.querySelector('#pop-ui');
  15. let settings = document.querySelector('#pop-settings');
  16.  
  17. // === STYLING & Ad Remove ===
  18. // Center game content
  19. document.querySelector('#game-content').style.justifyContent = 'center';
  20. document.querySelector('#main-content').style.width = 'auto';
  21.  
  22. // Styling for hat and clan menus
  23. ['hat-menu', 'clan-menu', 'hat_menu_content', 'clan_menu_content'].forEach(id => {
  24. document.getElementById(id).style.background = 'rgba(0,0,0,0)';
  25. document.getElementById(id).style.opacity = '0.9';
  26. });
  27.  
  28. // Create style element for additional styling
  29. var styleItem1 = document.createElement('style');
  30. styleItem1.type = 'text/css';
  31. styleItem1.appendChild(document.createTextNode(`
  32. #cross-promo, #bottom-wrap, #google_play, #game-left-content-main, #game-bottom-content, #game-right-content-main, #left-content, #right-content {
  33. display: none !important;
  34. }
  35.  
  36. #hat-menu .green-button, #clan-menu .green-button {
  37. background-color: rgba(0,0,0,0);
  38. box-shadow: none;
  39. }
  40. #hat-menu .green-button:hover, #clan-menu .green-button:hover {
  41. background-color: rgba(0,0,0,0.2);
  42. }
  43. .subcontent-bg {
  44. border-color: transparent;
  45. box-shadow: none;
  46. background: transparent;
  47. }
  48. .menu .content .menu-item .menu-pricing .action {
  49. border-color: transparent;
  50. }
  51. .menu .content .menu-item {
  52. border-bottom-color: transparent;
  53. }
  54. #hat-menu, #clan-menu {
  55. box-shadow: none;
  56. border: 1px solid black;
  57. }
  58. #clan_menu_content .subcontent-bg {
  59. margin: 1px 0px 1px 0px;
  60. }
  61. #create_clan *, #pop-ui {
  62. background-color: transparent;
  63. }
  64. #pop-settings {
  65. background: rgba(0,0,0,0.5);
  66. opacity: 0.95;
  67. }
  68. .scrollbar::-webkit-scrollbar {
  69. background: rgba(0, 0, 0, 0);
  70. border-radius: 2px;
  71. border: 2px solid rgba(0, 0, 0, 0.9);
  72. }
  73. .scrollbar::-webkit-scrollbar-thumb {
  74. background: rgba(255,255,255, 0.7);
  75. border-radius: 2px;
  76. border: 2px solid #141414;
  77. box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #4e5645,
  78. 0 1px 1px rgb(20 20 20 / 50%);
  79. }
  80. `));
  81. document.head.appendChild(styleItem1);
  82.  
  83. // Auto Toggle
  84. const toggles = ['#grid-toggle', '#particle-toggle', '#display-ping-toggle', '#native-render-toggle', '#native-helper-toggle'];
  85.  
  86. // Click each toggle button
  87. toggles.forEach(toggle => {
  88. document.querySelector(toggle).click();
  89. });
  90.  
  91. // Auto Mode
  92. const modes = ['#ffa-mode', '#sandbox-mode', '#battleroyale-mode'];
  93.  
  94. // Click the sandbox mode
  95. let autoModeInterval = setInterval(() => {
  96. if (document.querySelector('#small-waiting').style.display === 'none') {
  97. document.querySelector('#sandbox-mode').click();
  98. clearInterval(autoModeInterval);
  99. }
  100. }, 100);
  101.  
  102. // Access Settings in-game
  103. document.addEventListener('keydown', e => {
  104. if (e.keyCode === 27) {
  105. const isMenuHidden = document.querySelector('#hat-menu').style.display !== 'flex' &&
  106. document.querySelector('#clan-menu').style.display !== 'flex' &&
  107. document.querySelector('#homepage').style.display !== 'flex' &&
  108. document.querySelector('#chat-wrapper').style.display !== 'block';
  109.  
  110. if (isMenuHidden) {
  111. if (!popUI.classList.contains('fade-in')) {
  112. popUI.classList.add('fade-in');
  113. popUI.style.display = 'flex';
  114. settings.style.display = 'flex';
  115. return;
  116. }
  117. popUI.classList.remove('fade-in');
  118. popUI.style.display = 'none';
  119. settings.style.display = 'none';
  120. }
  121. }
  122. });