Bloxd.io Mod Menu Example

Adds a floating mod menu for Bloxd.io with toggles for Flight and God Mode

  1. // ==UserScript==
  2. // @name Bloxd.io Mod Menu Example
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Adds a floating mod menu for Bloxd.io with toggles for Flight and God Mode
  6. // @author Example
  7. // @match *://bloxd.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // --- Menu Styles ---
  15. const style = document.createElement('style');
  16. style.textContent = `
  17. #modMenuToggle {
  18. position: fixed;
  19. top: 20px;
  20. right: 20px;
  21. z-index: 10000;
  22. padding: 8px 16px;
  23. background: #222;
  24. color: #fff;
  25. border: none;
  26. border-radius: 6px;
  27. cursor: pointer;
  28. font-size: 16px;
  29. }
  30. #modMenu {
  31. display: none;
  32. position: fixed;
  33. top: 60px;
  34. right: 20px;
  35. width: 220px;
  36. background: rgba(30,30,30,0.98);
  37. color: #fff;
  38. border-radius: 10px;
  39. box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  40. z-index: 10001;
  41. padding: 18px 16px 12px 16px;
  42. font-family: sans-serif;
  43. }
  44. #modMenu h2 {
  45. margin: 0 0 12px 0;
  46. font-size: 20px;
  47. text-align: center;
  48. color: #ffeb3b;
  49. }
  50. .modMenuOption {
  51. margin-bottom: 12px;
  52. display: flex;
  53. align-items: center;
  54. justify-content: space-between;
  55. }
  56. .modMenuOption label {
  57. font-size: 16px;
  58. cursor: pointer;
  59. }
  60. .modMenuOption input[type="checkbox"] {
  61. transform: scale(1.3);
  62. cursor: pointer;
  63. }
  64. `;
  65. document.head.appendChild(style);
  66.  
  67. // --- Menu HTML ---
  68. const menuToggleBtn = document.createElement('button');
  69. menuToggleBtn.id = 'modMenuToggle';
  70. menuToggleBtn.textContent = 'Mod Menu';
  71. document.body.appendChild(menuToggleBtn);
  72.  
  73. const menuDiv = document.createElement('div');
  74. menuDiv.id = 'modMenu';
  75. menuDiv.innerHTML = `
  76. <h2>Bloxd.io Mods</h2>
  77. <div class="modMenuOption">
  78. <label for="flightToggle">Flight</label>
  79. <input type="checkbox" id="flightToggle">
  80. </div>
  81. <div class="modMenuOption">
  82. <label for="godToggle">God Mode</label>
  83. <input type="checkbox" id="godToggle">
  84. </div>
  85. `;
  86. document.body.appendChild(menuDiv);
  87.  
  88. // --- Menu Toggle Logic ---
  89. menuToggleBtn.onclick = () => {
  90. menuDiv.style.display = (menuDiv.style.display === 'block') ? 'none' : 'block';
  91. };
  92.  
  93. // --- Mod Feature Variables ---
  94. let flightEnabled = false;
  95. let godEnabled = false;
  96.  
  97. // --- Menu Option Logic ---
  98. document.getElementById('flightToggle').addEventListener('change', function() {
  99. flightEnabled = this.checked;
  100. // Insert your flight logic here
  101. alert('Flight ' + (flightEnabled ? 'enabled' : 'disabled'));
  102. });
  103.  
  104. document.getElementById('godToggle').addEventListener('change', function() {
  105. godEnabled = this.checked;
  106. // Insert your god mode logic here
  107. alert('God Mode ' + (godEnabled ? 'enabled' : 'disabled'));
  108. });
  109.  
  110. // --- Example: Hook into game logic here ---
  111. // You would need to implement the actual functionality for flight/god mode
  112. // This menu simply toggles the variables and shows alerts for demonstration
  113.  
  114. })();