Sploop.io Modifications

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

目前為 2023-03-25 提交的版本,檢視 最新版本

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