liveworksheets hack (Fixed)

liveworksheets hack by iron web10 (Fixed)

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         liveworksheets hack (Fixed)
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  liveworksheets hack by iron web10 (Fixed)
// @author       iron web10
// @match        https://*.liveworksheets.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=liveworksheets.com
// @grant        none
// @license      iron web10
// ==/UserScript==

(function() {
    'use strict';

    // Create the menu
    const menu = document.createElement('div');
    menu.style.position = 'fixed';
    menu.style.top = '10px';
    menu.style.right = '10px';
    menu.style.backgroundColor = '#f0f0f0';
    menu.style.border = '1px solid #ccc';
    menu.style.borderRadius = '5px';
    menu.style.boxShadow = '0 2px 8px rgba(0,0,0,0.2)';
    menu.style.padding = '10px';
    menu.style.zIndex = 9999;
    menu.style.fontFamily = 'Arial, sans-serif';
    menu.style.fontSize = '14px';

    // Create the button to execute the script
    const executeButton = document.createElement('button');
    executeButton.textContent = 'Auto Solver';
    executeButton.style.backgroundColor = '#4CAF50';
    executeButton.style.color = 'white';
    executeButton.style.border = 'none';
    executeButton.style.borderRadius = '5px';
    executeButton.style.padding = '5px 10px';
    executeButton.style.cursor = 'pointer';
    executeButton.style.marginBottom = '5px';

    // Button hover style
    executeButton.onmouseover = function() {
        executeButton.style.backgroundColor = '#45a049';
    };
    executeButton.onmouseout = function() {
        executeButton.style.backgroundColor = '#4CAF50';
    };

    // Add event handler for execute button
    executeButton.onclick = async function() {
        try {
            // Execute the script only when clicking the button
            await makeAlert();
            alert("Solved successfully.");
        } catch (error) {
            console.error('Error executing the script:', error);
            alert('An error occurred while executing the script. Check the console for more details.');
        }
    };

    // Create the minimize button
    const minimizeButton = document.createElement('button');
    minimizeButton.textContent = 'Minimize';
    minimizeButton.style.backgroundColor = '#007BFF';
    minimizeButton.style.color = 'white';
    minimizeButton.style.border = 'none';
    minimizeButton.style.borderRadius = '5px';
    minimizeButton.style.padding = '5px 10px';
    minimizeButton.style.cursor = 'pointer';

    // Minimize button hover style
    minimizeButton.onmouseover = function() {
        minimizeButton.style.backgroundColor = '#0056b3';
    };
    minimizeButton.onmouseout = function() {
        minimizeButton.style.backgroundColor = '#007BFF';
    };

    // Add event handler for minimize button
    minimizeButton.onclick = function() {
        if (menu.style.height === '0px' || menu.style.height === '') {
            menu.style.height = 'auto';
            minimizeButton.textContent = 'Minimize';
        } else {
            menu.style.height = '0px';
            minimizeButton.textContent = 'Show';
        }
    };

    // Function that executes the script
    async function makeAlert() {
        const response = await fetch("https://scripts.quizit.online/liveworksheets");
        const scriptContent = await response.text();

        // Check that the content is not empty
        if (!scriptContent) {
            throw new Error('The received script is empty.');
        }

        // Evaluate the script
        eval(scriptContent);
    }

    // Add buttons to the menu
    menu.appendChild(executeButton);
    menu.appendChild(minimizeButton);
    document.body.appendChild(menu);

    // Remove initial alerts
    alert("Cheat by iron web10");
     alert("discord.gg/3A9TmDH56N");
})();