Blooket Get Max Rewards

When you earn any exp or tokens, this script turns it into the max possible amount earnable daily (tokens: 500, exp: 300).

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Blooket Get Max Rewards
// @namespace    http://tampermonkey.net/
// @version      Beta
// @description  When you earn any exp or tokens, this script turns it into the max possible amount earnable daily (tokens: 500, exp: 300).
// @author       Splxff
// @match        https://*.blooket.com/*
// @grant        GM_xmlhttpRequest
// @icon         https://www.google.com/s2/favicons?sz=64&domain=blooket.com
// ==/UserScript==

! function() {
    (() => {
        const e = document.createElement("iframe");
        document.body.appendChild(e), window.alert = e.contentWindow.alert.bind(window), e.remove()
    })();
    const e = XMLHttpRequest.prototype.open,
        t = XMLHttpRequest.prototype.send;
    XMLHttpRequest.prototype.open = function(t, n, d, o, r) {
        return this._url = n, e.apply(this, arguments)
    }, XMLHttpRequest.prototype.send = function(e) {
        try {
            if ("string" == typeof e) {
                let t = JSON.parse(e);
                t?.addedTokens && (t.addTokens = 250, t.addedXp = 300, alert("Earned max rewards"), e = JSON.stringify(t))
            } else if (e instanceof FormData) {
                let t = !1;
                e.forEach(((e, n) => {
                    "addedTokens" === n && (t = !0)
                })), t && (e.set("addTokens", "250"), e.set("addedXp", "300"), alert("Earned max rewards"))
            }
        } catch (e) {}
        t.call(this, e)
        return t.call(this, e)
    }
}();