Heav.io Menu Blocker

Blocks the menu button in Heav.io with a circle.

当前为 2023-10-01 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Heav.io Menu Blocker
  3. // @namespace http://tampermonkey.net/
  4. // @version Extraman
  5. // @description Blocks the menu button in Heav.io with a circle.
  6. // @author Studz
  7. // @match https://heav.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Create a circle div element
  15. const circle = document.createElement('div');
  16. circle.style.width = '50px';
  17. circle.style.height = '50px';
  18. circle.style.background = 'red';
  19. circle.style.borderRadius = '50%';
  20. circle.style.position = 'absolute';
  21. circle.style.top = '10px';
  22. circle.style.left = '10px';
  23. circle.style.zIndex = '9999';
  24. circle.style.pointerEvents = 'none'; // Make it non-clickable
  25.  
  26. // Append the circle to the body
  27. document.body.appendChild(circle);
  28.  
  29. // Function to block the menu button
  30. function blockMenu() {
  31. const menuButton = document.querySelector('.menu-button'); // Adjust the selector as needed
  32. if (menuButton) {
  33. menuButton.style.display = 'none'; // Hide the menu button
  34. }
  35. }
  36.  
  37. // Call the blockMenu function
  38. blockMenu();
  39. })();