BTX HAWIHUB

Adds a movable GUI with GOD MODE button to any webpage

  1. // ==UserScript==
  2. // @name BTX HAWIHUB
  3. // @namespace http://your-namespace.example.com
  4. // @version 1.0
  5. // @description Adds a movable GUI with GOD MODE button to any webpage
  6. // @author Your Name
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var isDragging = false;
  15. var offsetX, offsetY;
  16.  
  17. function setSpeed() {
  18. var speedValue = document.getElementById('speedTextBox').value;
  19. alert('Speed set to: ' + speedValue);
  20. }
  21.  
  22. function activateGodMode() {
  23. // Implement your "GOD MODE" functionality here.
  24. alert('GOD MODE activated!');
  25. // You can add your custom code to enable God Mode here.
  26. }
  27.  
  28. function createGUI() {
  29. var speedTextBox = document.createElement('input');
  30. speedTextBox.id = 'speedTextBox';
  31. speedTextBox.type = 'text';
  32. speedTextBox.placeholder = 'Enter speed';
  33. speedTextBox.className = 'speed-textbox';
  34.  
  35. var setSpeedButton = document.createElement('button');
  36. setSpeedButton.textContent = 'Set speed';
  37. setSpeedButton.className = 'speed-button';
  38. setSpeedButton.addEventListener('click', setSpeed);
  39.  
  40. var godModeButton = document.createElement('button');
  41. godModeButton.textContent = 'GOD MODE';
  42. godModeButton.className = 'god-mode-button';
  43. godModeButton.addEventListener('click', activateGodMode);
  44.  
  45. // Create a title for the GUI
  46. var title = document.createElement('h1');
  47. title.textContent = 'BTX HAWIHUB';
  48. title.className = 'gui-title';
  49.  
  50. var container = document.createElement('div');
  51. container.className = 'speed-container';
  52. container.appendChild(title); // Add the title
  53. container.appendChild(speedTextBox);
  54. container.appendChild(setSpeedButton);
  55. container.appendChild(godModeButton);
  56.  
  57. document.body.appendChild(container);
  58.  
  59. var styles = `
  60. .speed-container {
  61. position: absolute;
  62. top: 50px;
  63. left: 50px;
  64. display: flex;
  65. flex-direction: column;
  66. align-items: center;
  67. justify-content: center;
  68. padding: 10px;
  69. background-color: #f0f0f0;
  70. border-radius: 5px;
  71. box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  72. cursor: move;
  73. border: 2px solid #00f; /* Neon blue outline */
  74. }
  75. .gui-title {
  76. font-size: 24px;
  77. margin-bottom: 10px;
  78. }
  79.  
  80. .speed-textbox, .speed-button, .god-mode-button {
  81. padding: 5px 10px;
  82. font-size: 16px;
  83. border: 2px solid #3498db;
  84. border-radius: 5px;
  85. margin-bottom: 10px; /* Add some spacing between input and buttons */
  86. background-color: #3498db;
  87. color: white;
  88. cursor: pointer;
  89. }
  90.  
  91. .speed-button:hover, .god-mode-button:hover {
  92. background-color: #2980b9;
  93. }
  94. `;
  95.  
  96. var styleSheet = document.createElement("style");
  97. styleSheet.type = "text/css";
  98. styleSheet.innerText = styles;
  99. document.head.appendChild(styleSheet);
  100.  
  101. container.addEventListener('mousedown', function(e) {
  102. isDragging = true;
  103. offsetX = e.clientX - container.getBoundingClientRect().left;
  104. offsetY = e.clientY - container.getBoundingClientRect().top;
  105. });
  106.  
  107. window.addEventListener('mousemove', function(e) {
  108. if (!isDragging) return;
  109.  
  110. var newX = e.clientX - offsetX;
  111. var newY = e.clientY - offsetY;
  112.  
  113. container.style.left = newX + 'px';
  114. container.style.top = newY + 'px';
  115. });
  116.  
  117. window.addEventListener('mouseup', function() {
  118. isDragging = false;
  119. });
  120. }
  121.  
  122. createGUI();
  123. })();