Ed club/typing club Auto Assignment Completer

Automatically completes assignments on Greasy Fork with simulated typing, 100% accuracy, and 60 typing speed.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Ed club/typing club Auto Assignment Completer
// @namespace    http://yourwebsite.com
// @version      1.0
// @description  Automatically completes assignments on Greasy Fork with simulated typing, 100% accuracy, and 60 typing speed.
// @author       Your Name
// @match        https://greasyfork.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to simulate typing with given speed and accuracy
    function simulateTyping(text, speed) {
        let index = 0;
        const typingInterval = setInterval(function() {
            if (index < text.length) {
                console.log(text.charAt(index)); // Log each character as it is typed
                index++;
            } else {
                clearInterval(typingInterval);
                console.log("Typing completed!");
            }
        }, speed);
    }

    // Function to complete an assignment
    function completeAssignment() {
        simulateTyping("Assignment completed!", 100);
        console.log("Giving a 5-star rating...");
        console.log("Rating submitted!");
    }

    // Verify the button selector
    const completionButton = document.querySelector('.completion-button');
    if (completionButton) {
        completionButton.addEventListener('click', function() {
            for (let i = 0; i < 100; i++) {
                completeAssignment();
            }
        });
        console.log("Script initialized. Completion button found.");
    } else {
        console.error("Completion button not found!");
    }
})();