Skip to content
View Cretawwin3's full-sized avatar

Block or report Cretawwin3

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Cretawwin3/README.md

async function getName() { const response = await fetch('https://api.blooket.com/api/users/verify-token', { method: "GET", headers: { "accept": "application/json, text/plain, /", "accept-language": "en-US,en;q=0.9,ru;q=0.8", }, credentials: "include" }); const data = await response.json();

return data.name;

};

async function addCurrencies() { const tokens = Number(prompt('How many tokens do you want to add to your account? (500 daily)'));

if (tokens > 500) {
    alert('You can only add up to 500 tokens daily.');
};

const response = await fetch('https://api.blooket.com/api/users/add-rewards', {
    method: "PUT",
    headers: {
        "referer": "https://www.blooket.com/",
        "content-type": "application/json",
    },
    credentials: "include",
    body: JSON.stringify({
        addedTokens: tokens,
        addedXp: 300,
        name: await getName()
    })
});

if (response.status == 200) {
    alert(`${tokens} tokens and 300 XP added to your account!`);
} else {
    alert('An error occured.');
};

};

addCurrencies();

Popular repositories Loading

  1. blacket-hacks blacket-hacks Public

    this is basicly just a shitpost

    JavaScript 2 36

  2. hacks-blacket hacks-blacket Public

    JavaScript 1

  3. Cretawwin3 Cretawwin3 Public

    Config files for my GitHub profile.

  4. hack-blooket- hack-blooket- Public

  5. Hack-blooket Hack-blooket Public

  6. hackblooket hackblooket Public