Back to scripts
自动每日奖励
utility自动领取可用的每日奖励
2024-03-21v1.0.0Community
使用风险自负。此脚本可能违反 Blooket 的服务条款。
Usage
Steps
- 登录账号
- 运行脚本
- 等待自动完成每日任务
Notes
- 每24小时只能运行一次
- 请勿频繁使用
- 需要保持页面打开
Requirements
- 必须登录账号
- 需要稳定的网络连接
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- 初始版本发布
- 自动完成每日任务
- 添加完成提醒