Back to scripts
自动答题
game在游戏中自动选择正确答案
2024-03-20v1.0.0Community
使用风险自负。此脚本可能违反 Blooket 的服务条款。
Usage
Steps
- 进入 Blooket 游戏房间
- 等待游戏开始并显示问题界面
- 打开开发者工具并粘贴脚本
- 脚本会自动选择正确答案
Notes
- 此脚本仅在答题环节有效
- 使用此脚本可能影响游戏公平性
- 如果题目更新可能需要更新答案数据
Requirements
- 必须在游戏进行中使用
- 需要稳定的网络连接
Code
function findAnswer() {
const iframe = document.querySelector('iframe');
if (!iframe) return false;
const question = iframe.contentWindow.document.querySelector('.styles__questionText___2MlSZ-camelCase');
if (!question) return false;
const answers = Array.from(iframe.contentWindow.document.querySelectorAll('.styles__answerContainer___3WuiW-camelCase'));
const correctAnswer = answers.find(answer => {
const content = answer.textContent;
// Add your answer logic here
return content.includes('correct');
});
if (correctAnswer) {
correctAnswer.click();
return true;
}
return false;
}
setInterval(findAnswer, 100);
Changelog
Version 1.0.1
2024-03-10- 修复答案检测问题
- 优化选择逻辑
- 添加更多错误提示
Version 1.0.0
2024-03-05- 初始版本发布
- 支持自动答题功能
- 添加答案检测逻辑