Skip to content

Instantly share code, notes, and snippets.

@JadedBlueEyes
Last active February 11, 2023 12:55
Show Gist options
  • Save JadedBlueEyes/de337def75cc7c965facdba6cce791ac to your computer and use it in GitHub Desktop.
Save JadedBlueEyes/de337def75cc7c965facdba6cce791ac to your computer and use it in GitHub Desktop.
Quizlet match timer pauser

Instructions:

Way One: Quick way

  1. Open the match page.
  2. Copy the code below, paste this into the URL bar.

Way Two: Bookmarklet

  1. Make a new bookmark in your browser (right-click on the bookmarks bar and click Add Page...)
  2. For the "Name" put "Quizlet Timer Pauser".
  3. Copy the code below, paste this into the "Location" of a new bookmark.
  4. Open the match page.
  5. Open the bookmark on the same page. Quizlet Hack

Code

javascript:(function()%7B%2F***%20document.getElementsByClassName%20alias*%20%40param%20%7Bstring%7D%20id*%2Ffunction%20getClass%20(id)%20%7Breturn%20document.getElementsByClassName(id)%3B%7Dlet%20startButton%20%3D%20getClass(%22UIButton%20UIButton--hero%22)%5B0%5D%3B%20startButton%20%26%26%20startButton.click()%3BsetTimeout(function%20()%20%7Bvar%20matchLoop%20%3D%20setInterval(waitForMatch%2C%200)%3Bfunction%20waitForMatch%20()%20%7Bif%20(getClass(%22MatchModeQuestionScatterTile%22)%20%7C%7C%20getClass(%22MatchModeQuestionGridBoard-tile%22))%20%7BsetTimeout(()%20%3D%3E%20%7Bfor%20(var%20F%20%3D%20setTimeout(%22%3B%22)%2C%20i%20%3D%200%3Bi%20%3C%20F%3Bi%2B%2B)%20%7B%20clearTimeout(i)%20%7D%7D%2C%2010)clearTimeout(matchLoop)%3B%7D%7D%7D%2C%20500)%7D)()
@JR717
Copy link

JR717 commented Dec 8, 2020

it dont work

@JoanthanHOY
Copy link

dosent work

@MrGrimFairTale
Copy link

W H Y D O E S N ' T I T W O R K .

@JadedBlueEyes
Copy link
Author

Hey - this was last updated in 2019. The Quizlet website's changed since then. If you want to make a working version yourself, you can probably do it in under an hour using the browser developer tools - especially with this as a jumping off point.

(function() {
    /**
     * document.getElementsByClassName alias
     * @param {string} id
     **/
    function getClass(id) {
        return document.getElementsByClassName(id);
    }
    let startButton = getClass("UIButton UIButton--hero")[0];
    startButton && startButton.click();
    setTimeout(function() {
        var matchLoop = setInterval(waitForMatch, 0);

        function waitForMatch() {
            if (getClass("MatchModeQuestionScatterTile") || getClass("MatchModeQuestionGridBoard-tile")) {
                setTimeout(() => {
                    for (var F = setTimeout(";"), i = 0; i < F; i++) {
                        clearTimeout(i)
                    }
                }, 10)
                clearTimeout(matchLoop);
            }
        }
    }, 500)
})()

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