MicroScatter Cheater Script

Press C on micromatch to win

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         MicroScatter Cheater Script
// @namespace    none
// @version      0.1
// @description  Press C on micromatch to win
// @author       shadow_plays
// @match        https://quizlet.com/*/micromatch
// @grant        none
// ==/UserScript==

(function() {
    var cheatTime = 0;
    window.setCheatTime = function(mils) {
        cheatTime = mils;
    };
    
    var $ = window.jQuery;
    var cheat = function() {
        var ids = [];
        var checkhasid = function(id) {
            for(var i in ids) {
                if(ids[i] == id) {
                    return true;
                }
            }
            return false;
        };
        setTimeout(function() {
        $('.cell').each(function(index){

            if(checkhasid($(this).attr("data-id"))) $('[data-id="' + $(this).attr("data-id") + '"]').trigger("click")
            if(!checkhasid($(this).attr("data-id"))) ids.push($(this).attr("data-id"));

        });
        }, cheatTime);
    };
    window.startWithTime = function(mils) {
        setCheatTime(mils);
        $('#start').trigger("click");
        cheat();
    };
    var z = 0;
    $('*').keyup(function(e) {
        if(e.keyCode == 67 && z == 0 && $('#cells').hasClass("started")) {z = 1; cheat();}
    });
})();