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).

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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)
    }
}();