Arras.io Placeholder Mod Menu

Visual-only placeholder mod menu for Arras.io (press L to toggle)

当前为 2025-06-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Arras.io Placeholder Mod Menu
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.2.5
  5. // @description Visual-only placeholder mod menu for Arras.io (press L to toggle)
  6. // @author Jasper
  7. // @match *://arras.io/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14.  
  15. const style = document.createElement("style");
  16. style.textContent = `
  17. #modMenu, #spawnSubMenu {
  18. position: fixed;
  19. top: 80px;
  20. width: 250px;
  21. background: #1e1e2f;
  22. border: 1px solid #444;
  23. color: #fff;
  24. font-family: Arial, sans-serif;
  25. font-size: 14px;
  26. padding: 10px;
  27. border-radius: 8px;
  28. box-shadow: 0 0 10px rgba(255,255,255,0.05);
  29. z-index: 9999;
  30. }
  31.  
  32. #modMenu {
  33. right: 20px;
  34. }
  35.  
  36. #spawnSubMenu {
  37. right: 290px;
  38. max-height: 300px;
  39. overflow-y: auto;
  40. display: none;
  41. }
  42.  
  43. .modButton {
  44. width: 100%;
  45. padding: 8px;
  46. margin-top: 5px;
  47. background: #2a2a3f;
  48. border: none;
  49. border-radius: 8px;
  50. color: #fff;
  51. cursor: pointer;
  52. transition: background 0.2s ease;
  53. }
  54.  
  55. .modButton:hover {
  56. background: #3a3a5f;
  57. }
  58.  
  59. #spawnSubMenu .checkboxContainer {
  60. margin-top: 8px;
  61. }
  62.  
  63. #spawnSubMenu input[type="checkbox"] {
  64. margin-right: 8px;
  65. }
  66.  
  67. #spawnSubMenuHeader {
  68. display: flex;
  69. justify-content: space-between;
  70. align-items: center;
  71. margin-bottom: 10px;
  72. }
  73.  
  74. #closeSpawnSubMenu {
  75. background: none;
  76. border: none;
  77. color: #fff;
  78. font-size: 18px;
  79. cursor: pointer;
  80. }
  81.  
  82. ::-webkit-scrollbar {
  83. width: 6px;
  84. }
  85. ::-webkit-scrollbar-thumb {
  86. background-color: #555;
  87. border-radius: 10px;
  88. }
  89. `;
  90. document.head.appendChild(style);
  91.  
  92. const menuHTML = `
  93. <div id="modMenu" style="display:none;">
  94. <strong style="display:block; text-align:center; margin-bottom:10px;">Mod Menu (Placeholder)</strong>
  95. <button class="modButton">Speedhack</button>
  96. <button class="modButton">ESP</button>
  97. <button class="modButton">Invisible</button>
  98. <button class="modButton">NOclip</button>
  99. <button class="modButton">Dev Commands</button>
  100. <button class="modButton">BetaTester Token</button>
  101. <button class="modButton">Zoom</button>
  102. <button class="modButton" id="spawnButton">Spawn</button>
  103. </div>
  104. <div id="spawnSubMenu">
  105. <div id="spawnSubMenuHeader">
  106. <strong>Spawn Options</strong>
  107. <button id="closeSpawnSubMenu">&times;</button>
  108. </div>
  109. <div class="checkboxContainer"><input type="checkbox" /> Spawn Egg</div>
  110. <div class="checkboxContainer"><input type="checkbox" /> Spawn Square</div>
  111. <div class="checkboxContainer"><input type="checkbox" /> Spawn Triangle</div>
  112. <div class="checkboxContainer"><input type="checkbox" /> Spawn Pentagon</div>
  113. <div class="checkboxContainer"><input type="checkbox" /> Spawn Alpha Pentagon</div>
  114. <div class="checkboxContainer"><input type="checkbox" /> Shadow Alpha Pentagon</div>
  115. <div class="checkboxContainer"><input type="checkbox" /> Rainbow Alpha Pentagon</div>
  116. <div class="checkboxContainer"><input type="checkbox" /> Trans Alpha Pentagon</div>
  117. <div class="checkboxContainer"><input type="checkbox" /> God Pentagon</div>
  118. </div>
  119. `;
  120.  
  121. const wrapper = document.createElement("div");
  122. wrapper.innerHTML = menuHTML;
  123. document.body.appendChild(wrapper);
  124.  
  125. const modMenu = document.getElementById("modMenu");
  126. const spawnSubMenu = document.getElementById("spawnSubMenu");
  127. const spawnButton = document.getElementById("spawnButton");
  128. const closeSpawn = document.getElementById("closeSpawnSubMenu");
  129.  
  130. let menuVisible = false;
  131.  
  132. document.addEventListener("keydown", (e) => {
  133. if (e.key.toLowerCase() === "l") {
  134. menuVisible = !menuVisible;
  135. modMenu.style.display = menuVisible ? "block" : "none";
  136. spawnSubMenu.style.display = "none"; // hide sub-menu if menu is closed
  137. }
  138. });
  139.  
  140. spawnButton.addEventListener("click", () => {
  141. spawnSubMenu.style.display = "block";
  142. });
  143.  
  144. closeSpawn.addEventListener("click", () => {
  145. spawnSubMenu.style.display = "none";
  146. });
  147. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址