Skip to content

Instantly share code, notes, and snippets.

@Fraserbc
Created January 20, 2021 10:28
Show Gist options
  • Save Fraserbc/fa233c4ec4927c457d72b9a0982f0e55 to your computer and use it in GitHub Desktop.
Save Fraserbc/fa233c4ec4927c457d72b9a0982f0e55 to your computer and use it in GitHub Desktop.
Quizziz Micromatch Cheat
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;
}
}
@Fraserbc
Copy link
Author

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

@JAYSHADOW-crypto
Copy link

doesnt work anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment