// ==UserScript== // @name Quizlet Show Hidden Flashcards // @namespace QuizletHack // @version 0.0.12 // @description Show the hidden flashcards in Quizlet without logging in. // @author hacker09 // @match *://quizlet.com/* // @icon https://assets.quizlet.com/a/j/dist/i/favicon.6e263725c926227.ico // @run-at document-end // @grant none // @downloadURL none // ==/UserScript== (async function() { 'use strict'; var TimesExecuted = 0; //Creates a new variable var Counter = 0; //Creates a new counter variable var DisableReading = true; //If true the Reading function will be disabled var RemoveNeedlessThings = true; //If true the Needless Things will be removed async function hack() //Creates a new hack function { //Starts the new hack function //Show all hidden elements and disable the reading function document.querySelectorAll("div.SetPageTerm").forEach(function(FlashCards) { //For each FlashCard FlashCards.className = "SetPageTerm has-definitionText is-showing"; //Change the FlashCard element class name so that the card is shown if (DisableReading === true) //If the DisableReading variable is true { //Starts the if condition FlashCards.innerHTML = FlashCards.innerHTML; //Remove the audio of the FlashCard element } //Finishes the if condition }); //Finishes the foreach loop } //Finishes the hack function await hack(); //Calls the hack function window.onscroll = async function() { //Creates a new function to run when the page is scrolled TimesExecuted += 1; //Sum the amount of times that the page is scrolled if (TimesExecuted === 15) { //On the first time that the page is scrolled await hack(); //Calls the hack function setTimeout(function() { //Starts the settimeout function if (document.querySelector("#Executed") === null) //If the element wasn't added in the page yet { //Starts the if condition document.querySelector("div.SetPageTerm").insertAdjacentHTML('beforebegin', '