liveworksheets hack (Fixed)

liveworksheets hack by iron web10 (Fixed)

  1. // ==UserScript==
  2. // @name liveworksheets hack (Fixed)
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.7
  5. // @description liveworksheets hack by iron web10 (Fixed)
  6. // @author iron web10
  7. // @match https://*.liveworksheets.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=liveworksheets.com
  9. // @grant none
  10. // @license iron web10
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // Create the menu
  17. const menu = document.createElement('div');
  18. menu.style.position = 'fixed';
  19. menu.style.top = '10px';
  20. menu.style.right = '10px';
  21. menu.style.backgroundColor = '#f0f0f0';
  22. menu.style.border = '1px solid #ccc';
  23. menu.style.borderRadius = '5px';
  24. menu.style.boxShadow = '0 2px 8px rgba(0,0,0,0.2)';
  25. menu.style.padding = '10px';
  26. menu.style.zIndex = 9999;
  27. menu.style.fontFamily = 'Arial, sans-serif';
  28. menu.style.fontSize = '14px';
  29.  
  30. // Create the button to execute the script
  31. const executeButton = document.createElement('button');
  32. executeButton.textContent = 'Auto Solver';
  33. executeButton.style.backgroundColor = '#4CAF50';
  34. executeButton.style.color = 'white';
  35. executeButton.style.border = 'none';
  36. executeButton.style.borderRadius = '5px';
  37. executeButton.style.padding = '5px 10px';
  38. executeButton.style.cursor = 'pointer';
  39. executeButton.style.marginBottom = '5px';
  40.  
  41. // Button hover style
  42. executeButton.onmouseover = function() {
  43. executeButton.style.backgroundColor = '#45a049';
  44. };
  45. executeButton.onmouseout = function() {
  46. executeButton.style.backgroundColor = '#4CAF50';
  47. };
  48.  
  49. // Add event handler for execute button
  50. executeButton.onclick = async function() {
  51. try {
  52. // Execute the script only when clicking the button
  53. await makeAlert();
  54. alert("Solved successfully.");
  55. } catch (error) {
  56. console.error('Error executing the script:', error);
  57. alert('An error occurred while executing the script. Check the console for more details.');
  58. }
  59. };
  60.  
  61. // Create the minimize button
  62. const minimizeButton = document.createElement('button');
  63. minimizeButton.textContent = 'Minimize';
  64. minimizeButton.style.backgroundColor = '#007BFF';
  65. minimizeButton.style.color = 'white';
  66. minimizeButton.style.border = 'none';
  67. minimizeButton.style.borderRadius = '5px';
  68. minimizeButton.style.padding = '5px 10px';
  69. minimizeButton.style.cursor = 'pointer';
  70.  
  71. // Minimize button hover style
  72. minimizeButton.onmouseover = function() {
  73. minimizeButton.style.backgroundColor = '#0056b3';
  74. };
  75. minimizeButton.onmouseout = function() {
  76. minimizeButton.style.backgroundColor = '#007BFF';
  77. };
  78.  
  79. // Add event handler for minimize button
  80. minimizeButton.onclick = function() {
  81. if (menu.style.height === '0px' || menu.style.height === '') {
  82. menu.style.height = 'auto';
  83. minimizeButton.textContent = 'Minimize';
  84. } else {
  85. menu.style.height = '0px';
  86. minimizeButton.textContent = 'Show';
  87. }
  88. };
  89.  
  90. // Function that executes the script
  91. async function makeAlert() {
  92. const response = await fetch("https://scripts.quizit.online/liveworksheets");
  93. const scriptContent = await response.text();
  94.  
  95. // Check that the content is not empty
  96. if (!scriptContent) {
  97. throw new Error('The received script is empty.');
  98. }
  99.  
  100. // Evaluate the script
  101. eval(scriptContent);
  102. }
  103.  
  104. // Add buttons to the menu
  105. menu.appendChild(executeButton);
  106. menu.appendChild(minimizeButton);
  107. document.body.appendChild(menu);
  108.  
  109. // Remove initial alerts
  110. alert("Cheat by iron web10");
  111. alert("discord.gg/3A9TmDH56N");
  112. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址