Back to scripts

Highlight Correct Answers

game

Highlights the correct answers in the game without auto-clicking

2024-03-21v1.0.0Community

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

Usage

Steps

  1. Enter quiz interface
  2. Run the script
  3. Correct answers will be highlighted

Notes

  • Only works in quiz mode
  • Highlight effect may fail due to game updates
  • Recommended to use with caution

Requirements

  • Must be used in quiz interface
  • Requires latest browser version

Code

function highlightAnswers() {
  const gameFrame = document.querySelector('#gameFrame');
  if (!gameFrame) {
    alert('Game frame not found!');
    return;
  }

  const style = document.createElement('style');
  style.textContent = `
    .correct-answer {
      border: 3px solid #4CAF50 !important;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
      100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
    }
  `;
  document.head.appendChild(style);

  setInterval(() => {
    const answers = gameFrame.contentWindow.document.querySelectorAll('.styles__answerContainer___3WuiW-camelCase');
    answers.forEach(answer => {
      if (answer.getAttribute('data-correct') === 'true') {
        answer.classList.add('correct-answer');
      }
    });
  }, 100);
}

highlightAnswers();

Changelog

Version 1.0.0

2024-03-21
  • Initial version release
  • Implemented answer highlighting
  • Added visual feedback effects