Created
January 20, 2021 10:28
-
-
Save Fraserbc/fa233c4ec4927c457d72b9a0982f0e55 to your computer and use it in GitHub Desktop.
Quizziz Micromatch Cheat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var clickEvent = new MouseEvent('pointerdown', { | |
view: window, | |
bubbles: true, | |
cancelable: true | |
}); | |
var tiles = Array.prototype.slice.call(document.getElementsByClassName("MatchModeQuestionGridBoard-tile")); | |
var lookup = {} | |
for(var i = 0; i < Quizlet.matchModeData.terms.length; i++) { | |
lookup[Quizlet.matchModeData.terms[i].word] = Quizlet.matchModeData.terms[i].definition; | |
lookup[Quizlet.matchModeData.terms[i].definition] = Quizlet.matchModeData.terms[i].word; | |
} | |
var complete = 0; | |
for(var i = 0; i < tiles.length; i++) { | |
if(tiles[i].answered == undefined) { | |
var question = tiles[i].innerText; | |
tiles[i].children[0].dispatchEvent(clickEvent); | |
tiles[i].answered = true; | |
var tile = tiles.filter(function(value) {return value.innerText == this}, lookup[question]); | |
tile[0].children[0].dispatchEvent(clickEvent); | |
tile[0].answered = true; | |
complete++; | |
} | |
if(complete == 5) { | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy and paste this into the console. It will match all but two of them to allow you to choose what time you get if you want to seem semi-legit