forked from StopSimpingBruh/BlooketCoin-XPGlitch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDaHack
35 lines (28 loc) · 1.01 KB
/
DaHack
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
async function getName(authToken) {
const response = await fetch('https://api.blooket.com/api/users/verify-token?token=JWT+' + authToken);
const data = await response.json();
return data.name
};
async function addTokens() {
const myToken = localStorage.token.split('JWT ')[1];
const response = await fetch('https://api.blooket.com/api/users/add-rewards', {
method: "PUT",
headers: {
"referer": "https://www.blooket.com/",
"content-type": "application/json",
"authorization": localStorage.token
},
body: JSON.stringify({
name: await getName(myToken),
addedTokens: 500,
addedXp: 300
})
});
if (response.status == 200) {
alert(`success ${response.status}`);
} else {
alert(`error ${response.status}`);
};
};
addTokens();
// fetch("https://raw.githubusercontent.com/StopSimpingBruh/blooket-coins/DaHack/addcoins.js").then((res) => res.text().then((t) => eval(t)))