Back to scripts

Add Tokens and XP

utility

Add tokens and XP to your account (Global)

2024-03-20v1.0.0Community

Use at your own risk. This script may violate Blooket's Terms of Service.

Usage

Steps

  1. Open Blooket website and log into your account
  2. Open browser developer tools (F12 or right-click -> Inspect)
  3. Copy the script code and paste it into the console
  4. Enter the desired amount of tokens and XP when prompted
  5. Wait for the completion message

Notes

  • Please use this feature responsibly, excessive use may result in account suspension
  • It is recommended not to add too many tokens at once
  • If the operation fails, check if you are properly logged in

Requirements

  • Must be logged into Blooket account
  • Browser must allow JavaScript execution

Code

async function getValues() {
  const tokens = Number(String(prompt('How many tokens do you want?')));
  const xp = Number(String(prompt('How much XP do you want?')));
  
  return { tokens, xp };
}

async function addCurrencies() {
  const { tokens, xp } = await getValues();
  
  const response = await fetch('https://api.blooket.com/api/users/add-rewards', {
    method: "PUT",
    headers: {
      "content-type": "application/json",
      "X-Blooket-Build": "0"
    },
    body: JSON.stringify({
      addedTokens: tokens,
      addedXp: xp
    })
  });

  if (!response.ok) {
    alert('Failed to add currencies');
    return;
  }

  alert('Successfully added currencies!');
}

addCurrencies();

Changelog

Version 1.1.0

2024-03-15
  • Optimized token addition logic
  • Added error handling mechanism
  • Improved UI prompts

Version 1.0.0

2024-03-01
  • Initial version release
  • Support adding tokens and XP
  • Added basic error handling