Back to scripts

自動答題

game

在遊戲中自動選擇正確答案

2024-03-20v1.0.0Community

使用風險自負。此腳本可能違反 Blooket 的服務條款。

Usage

Steps

  1. 進入 Blooket 遊戲房間
  2. 等待遊戲開始並顯示問題界面
  3. 打開開發者工具並粘貼腳本
  4. 腳本會自動選擇正確答案

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
  • 初始版本發布
  • 支持自動答題功能
  • 添加答案檢測邏輯