Back to scripts

Set All Blooks

admin

Sets the quantity of all Blooks to a specified amount

2024-03-20v1.0.0Community

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

Usage

Steps

  1. Ensure you have admin privileges
  2. Run the script
  3. Wait for the operation to complete
  4. Refresh the page to see results

Notes

  • This script is for administrators only
  • Operation will add all Blooks to your account
  • Do not abuse admin privileges

Requirements

  • Must have administrator privileges
  • Requires stable internet connection

Code

async function setAllBlooks() {
  const amount = Number(prompt('How many of each Blook do you want?'));
  
  if (!amount) return;
  
  const response = await fetch('https://api.blooket.com/api/users/setblooks', {
    method: "PUT",
    headers: {
      "content-type": "application/json",
      "X-Blooket-Build": "0"
    },
    body: JSON.stringify({
      amount
    })
  });
  
  if (!response.ok) {
    alert('Failed to set Blooks');
    return;
  }
  
  alert('Successfully set all Blooks!');
}

setAllBlooks();

Changelog

Version 1.0.0

2024-03-20
  • Initial version release
  • Support batch setting Blooks quantity
  • Added admin privilege verification