Back to scripts
Auto Daily Rewards
utilityAutomatically claims daily rewards when available
2024-03-21v1.0.0Community
Use at your own risk. This script may violate Blooket's Terms of Service.
Usage
Steps
- Log into account
- Run the script
- Wait for daily tasks to complete automatically
Notes
- Can only be run once every 24 hours
- Do not use frequently
- Page must remain open
Requirements
- Must be logged into account
- Requires stable internet connection
Code
async function claimDailyRewards() {
try {
const response = await fetch('https://api.blooket.com/api/users/dailyrewards', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'X-Blooket-Build': '0'
}
});
if (!response.ok) {
throw new Error('Failed to check daily rewards');
}
const data = await response.json();
if (data.available) {
const claimResponse = await fetch('https://api.blooket.com/api/users/claimdailyreward', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'X-Blooket-Build': '0'
}
});
if (!claimResponse.ok) {
throw new Error('Failed to claim daily reward');
}
alert('Successfully claimed daily reward!');
} else {
alert('No daily reward available yet.');
}
} catch (error) {
alert('Error: ' + error.message);
}
}
claimDailyRewards();
Changelog
Version 1.0.0
2024-03-21- Initial version release
- Auto-complete daily tasks
- Added completion notifications