Greasy Fork 还支持 简体中文。

Shell Shockers Server Dropdown Restorer

Puts back the server dropdown which was removed from the game some years ago. Has two modes, works with latest interface.

目前為 2025-02-28 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Shell Shockers Server Dropdown Restorer
  3. // @namespace https://github.com/onlypuppy7/ShellShockersServerDropdownRestorer/
  4. // @license GPL-3.0
  5. // @version 1.0.2
  6. // @author onlypuppy7
  7. // @description Puts back the server dropdown which was removed from the game some years ago. Has two modes, works with latest interface.
  8. // @match https://shellshock.io/*
  9. // @grant none
  10. // @run-at document-start
  11. // @icon https://github.com/onlypuppy7/ShellShockersServerDropdownRestorer/blob/main/logo.png?raw=true
  12. // ==/UserScript==
  13.  
  14. const mode = "puppy"; // classic OR puppy
  15.  
  16. (async function () {
  17. while (!window.extern?.isGameReady) {
  18. await new Promise(resolve => setTimeout(resolve, 1000));
  19. };
  20.  
  21. const regionSelect = document.getElementById("regionSelect");
  22. const playGameSection = document.getElementById("home_screen");
  23.  
  24. if (regionSelect && playGameSection) {
  25. playGameSection.appendChild(regionSelect);
  26. regionSelect.style.position = "absolute";
  27.  
  28. if (mode === "classic") {
  29. regionSelect.style.left = "20em";
  30. regionSelect.style.top = "3em";
  31. regionSelect.style.marginLeft = "0em";
  32. } else {
  33. regionSelect.style.top = "45.25em";
  34. regionSelect.style.left = "50%";
  35. regionSelect.style.marginLeft = "20em";
  36. };
  37. };
  38. })();