Sploop.io Modifications

Transparent Hat & Clan Menu, Auto Toggle, Auto Select Mode, Access Settings ingame, Ad Remove

目前为 2023-03-26 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Sploop.io 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 ingame, 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. // ==/UserScript==
  11. let popUI = document.querySelector('#pop-ui');
  12. let settings = document.querySelector('#pop-settings');
  13.  
  14. // === STYLING & Ad Remove ===
  15. document.querySelector('#game-content').style.justifyContent = 'center';
  16. document.querySelector('#main-content').style.width = 'auto';
  17.  
  18. document.getElementById('hat-menu').style.background = "rgba(0,0,0,0)"
  19. document.getElementById('hat-menu').style.opacity = "0.9"
  20. document.getElementById('clan-menu').style.background = "rgba(0,0,0,0)"
  21. document.getElementById('clan-menu').style.opacity = "0.9"
  22. document.getElementById("hat_menu_content").style.background = "rgba(0,0,0,0)"
  23. document.getElementById("clan_menu_content").style.background = "rgba(0,0,0,0)"
  24. var styleItem1 = document.createElement("style");
  25. styleItem1.type = "text/css";
  26. styleItem1.appendChild(document.createTextNode(`
  27. #cross-promo, #bottom-wrap, #google_play, #game-left-content-main, #game-bottom-content, #game-right-content-main, #left-content, #right-content {
  28. display: none !important;
  29. }
  30.  
  31. #hat-menu .green-button, #clan-menu .green-button {
  32. background-color: rgba(0,0,0,0);
  33. box-shadow:none;
  34. }
  35. #hat-menu .green-button:hover, #clan-menu .green-button:hover {
  36. background-color: rgba(0,0,0,0.2);
  37. }
  38. .subcontent-bg {
  39. border-color: transparent;
  40. box-shadow: none;
  41. background: transparent;
  42. }
  43. .menu .content .menu-item .menu-pricing .action {
  44. border-color: transparent;
  45. }
  46. .menu .content .menu-item {
  47. border-bottom-color: transparent;
  48. }
  49. #hat-menu, #clan-menu {
  50. box-shadow: none;
  51. border: 1px solid black
  52. }
  53.  
  54. #clan_menu_content .subcontent-bg {
  55. margin: 1px 0px 1px 0px;
  56. }
  57.  
  58. #create_clan *, #pop-ui {
  59. background-color: transparent;
  60. }
  61.  
  62. #pop-settings {
  63. background: rgba(0,0,0,0.5);
  64. opacity: 0.95;
  65. }
  66.  
  67. .scrollbar::-webkit-scrollbar {
  68. background: rgba(0, 0, 0, 0);
  69. border-radius: 2px;
  70. border: 2px solid rgba(0, 0, 0, 0.9);
  71. }
  72. .scrollbar::-webkit-scrollbar-thumb {
  73. background: rgba(255,255,255, 0.7);
  74. border-radius: 2px;
  75. border: 2px solid #141414;
  76. box-shadow: inset 0 1px 0 white, inset 0 -1px 0 #4e5645,
  77. 0 1px 1px rgb(20 20 20 / 50%);
  78. }
  79. `))
  80. document.head.appendChild(styleItem1);
  81.  
  82.  
  83. //Auto Toggle
  84. const grid = document.querySelector('#grid-toggle');//Render Grid
  85. const particle = document.querySelector('#particle-toggle');//Render Particles
  86. const ping = document.querySelector('#display-ping-toggle');//View Ping
  87. const nativeRender = document.querySelector('#native-render-toggle');//Native Render
  88. const nativeHelper = document.querySelector('#native-helper-toggle');//Native Friendly Indicator
  89.  
  90. //Copy the line below and change 'grid' to the variable name above
  91. grid.click();
  92.  
  93.  
  94. //Auto Mode
  95. const classic = document.querySelector('#ffa-mode');
  96. const sandbox = document.querySelector('#sandbox-mode');
  97. const battleroyale = document.querySelector('#battleroyale-mode');
  98. let a;
  99. a = setInterval(()=>{
  100. if(document.querySelector('#small-waiting').style.display === "none") {
  101. //Change the 'sandbox' in the line below to the variable you want
  102. sandbox.click();
  103. clearInterval(a);
  104. }
  105. }, 100);
  106.  
  107. // Access Settings ingame
  108. document.addEventListener('keydown', e =>{
  109. if(e.keyCode == 27) {
  110. 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") {
  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. });