Created
February 7, 2022 19:25
-
-
Save thesmartcoder123/8f7dc465b4b0036153a33c8622d795ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? (1000 daily)')); | |
if (tokens > 1000) { | |
alert('You can only add up to 1000 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: 900, | |
name: await getName() | |
}) | |
}); | |
if (response.status == 300) { | |
alert(`${tokens} tokens and 900 XP added to your account!`); | |
} else { | |
alert('Not working Error Occured.'); | |
}; | |
}; | |
addCurrencies(); |
it work
the thing is that i get daily stuff on blooket i get the 1millon or 1000k for now reson just report for copying the file
It did not work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just tried it, did not work, but works from this github page:
https://github.com/Glizzuwu/Blooket-hacks-/blob/main/Add%20tokens