PANIC

Combat Logging / Emergency button

  1. // ==UserScript==
  2. // @name PANIC
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Combat Logging / Emergency button
  6. // @author Earth1283
  7. // @match https://www.mine-craft.io/*
  8. // @grant GM_addStyle
  9. // @licence MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Create the panic button element
  16. var panicButton = document.createElement('button');
  17. panicButton.innerText = 'PANIC';
  18.  
  19. // Apply some basic styles
  20. panicButton.style.position = 'fixed';
  21. panicButton.style.bottom = '20px';
  22. panicButton.style.right = '20px';
  23. panicButton.style.padding = '15px 30px';
  24. panicButton.style.fontSize = '18px';
  25. panicButton.style.backgroundColor = '#ff0000';
  26. panicButton.style.color = 'white';
  27. panicButton.style.border = 'none';
  28. panicButton.style.borderRadius = '10px';
  29. panicButton.style.cursor = 'pointer';
  30. panicButton.style.zIndex = '9999';
  31. panicButton.style.fontWeight = 'bold';
  32. panicButton.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.3)';
  33.  
  34. // Add event listener to redirect when clicked
  35. panicButton.addEventListener('click', function() {
  36. window.location.href = 'https://www.mine-craft.io';
  37. });
  38.  
  39. // Add the panic button to the body of the page
  40. document.body.appendChild(panicButton);
  41. })();