Advanced Skribbl.io Cheat GUI

Enhanced Cheat GUI for Skribbl.io

  1. // ==UserScript==
  2. // @name Advanced Skribbl.io Cheat GUI
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Enhanced Cheat GUI for Skribbl.io
  6. // @match *://skribbl.io/*
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12.  
  13. // Create GUI container
  14. const gui = document.createElement('div');
  15. gui.style.position = 'fixed';
  16. gui.style.top = '10px';
  17. gui.style.right = '10px';
  18. gui.style.zIndex = '1000';
  19. gui.style.backgroundColor = 'white';
  20. gui.style.padding = '10px';
  21. gui.style.border = '1px solid black';
  22. gui.style.borderRadius = '5px';
  23. // Create a close button
  24. const closeButton = document.createElement('button');
  25. closeButton.innerText = 'X';
  26. closeButton.style.position = 'absolute';
  27. closeButton.style.top = '5px';
  28. closeButton.style.right = '5px';
  29. closeButton.style.backgroundColor = 'red';
  30. closeButton.style.color = 'white';
  31. closeButton.style.border = 'none';
  32. closeButton.style.borderRadius = '5px';
  33. closeButton.addEventListener('click', function() {
  34. gui.style.display = 'none';
  35. });
  36. gui.appendChild(closeButton);
  37. // Create an open button
  38. const openButton = document.createElement('button');
  39. openButton.innerText = 'Open Cheats';
  40. openButton.style.position = 'fixed';
  41. openButton.style.top = '10px';
  42. openButton.style.right = '10px';
  43. openButton.style.zIndex = '1000';
  44. openButton.addEventListener('click', function() {
  45. gui.style.display = 'block';
  46. });
  47. document.body.appendChild(openButton);
  48.  
  49. // Auto-Draw Image Button
  50. const autoDrawButton = document.createElement('button');
  51. autoDrawButton.innerText = 'Auto Draw Image';
  52. autoDrawButton.addEventListener('click', function() {
  53. // Show file picker to select image
  54. const input = document.createElement('input');
  55. input.type = 'file';
  56. input.accept = 'image/*';
  57. input.style.display = 'none';
  58. input.addEventListener('change', function() {
  59. const file = input.files[0];
  60. if (file) {
  61. const reader = new FileReader();
  62. reader.onload = function(e) {
  63. const image = new Image();
  64. image.src = e.target.result;
  65. // Logic to auto draw the image on Skribbl.io
  66. console.log('Auto drawing image:', image.src);
  67. };
  68. reader.readAsDataURL(file);
  69. }
  70. });
  71. input.click();
  72. });
  73. gui.appendChild(autoDrawButton);
  74.  
  75. // Auto-Guess Button
  76. const autoGuessButton = document.createElement('button');
  77. autoGuessButton.innerText = 'Auto Guess';
  78. autoGuessButton.addEventListener('click', function() {
  79. // Logic to auto guess
  80. console.log('Auto Guess activated');
  81. });
  82. gui.appendChild(autoGuessButton);
  83.  
  84. // Ban Player Button
  85. const banPlayerButton = document.createElement('button');
  86. banPlayerButton.innerText = 'Ban Player';
  87. banPlayerButton.addEventListener('click', function() {
  88. const playerToBan = prompt('Enter player name to ban:');
  89. if (playerToBan) {
  90. // Logic to ban the player and send a report
  91. console.log('Banning player:', playerToBan);
  92. // Example of sending a report (Placeholder URL)
  93. fetch('https://example.com/report', {
  94. method: 'POST',
  95. headers: {
  96. 'Content-Type': 'application/json'
  97. },
  98. body: JSON.stringify({ player: playerToBan })
  99. }).then(response => response.json())
  100. .then(data => console.log('Report sent:', data));
  101. }
  102. });
  103. gui.appendChild(banPlayerButton);
  104.  
  105. // Restart Game Button
  106. const restartGameButton = document.createElement('button');
  107. restartGameButton.innerText = 'Restart Game';
  108. restartGameButton.addEventListener('click', function() {
  109. // Logic to restart the game
  110. console.log('Restart Game activated');
  111. });
  112. gui.appendChild(restartGameButton);
  113.  
  114. // Append GUI to body
  115. document.body.appendChild(gui);
  116.  
  117. // Logic for showing cheats to other players
  118. // This is complex and not directly feasible with JavaScript due to game restrictions
  119. })();