Skip to content

Commit ecf0976

Browse files
authoredApr 12, 2023
Update Add Rewards.js
1 parent 040fb9e commit ecf0976

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

‎Global/Add Rewards.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ if (0 == document.location.pathname.indexOf("/play")) {
1313
['']
1414
],
1515
]).cache).find((x) => x.exports ?.a?.put).exports.a;
16-
axios.get("https://play.blooket.com/api/users/me").then(blooket => {
17-
axios.put("https://play.blooket.com/api/users/add-rewards", {
18-
name: blooket.data.name,
19-
addedTokens: 500,
20-
addedXp: 300
16+
axios.post("https://play.blooket.com/api/playersessions/solo", { gameMode: "Factory" }).then(session => {
17+
axios.get("https://play.blooket.com/api/users/me").then(blooket => {
18+
axios.put("https://play.blooket.com/api/users/add-rewards", {
19+
t: session.data.t,
20+
name: blooket.data.name,
21+
addedTokens: 500,
22+
addedXp: 300
23+
})
2124
})
2225
});
2326
let a = document.createElement("iframe");

0 commit comments

Comments
 (0)
Please sign in to comment.