quizlet time patcher

slows down time in quizlet match

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         quizlet time patcher
// @namespace    http://tampermonkey.net/
// @version      2026-01-16
// @description  slows down time in quizlet match
// @author       Max-0
// @match        https://quizlet.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=quizlet.com
// @grant        none
// @run-at       document-start
// ==/UserScript==

const time_scale = 0.1;

// date override attempt (not helpful)
/*
const realDateNow = Date.now;

Date.now = () => { return realDateNow() * window.time_scale; };

Object.freeze(Date.now)
Object.seal(Date.now)
*/

// debugging attempt
// i put a breakpoint on when the time div changes in Matching game
// go back far on the stack trace all the way to "x", which is soon after (above) the postMessage
// i saw "performance" used for getting current time.
// i wasn't sure exactly what was going on, but i knew it related to the counter via p.expirationTime and unstable_now() and other functions.
// lets try to hijack the "perfomance" object

const real_perf_now = performance.now.bind(performance);

performance.now = () => {
  return Math.floor(real_perf_now() * time_scale);
};

Object.freeze(performance.now);
Object.seal(performance.now);