Century Tech Auto Answer

Auto answer questions on Century Tech

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Century Tech Auto Answer
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Auto answer questions on Century Tech
// @author       You
// @match        https://app.century.tech/*
// @grant        none
// @license      MIT; https://opensource.org/licenses/MIT
// ==/UserScript==

(function() {
  'use strict';
  var questions = document.querySelectorAll('.question');
  var answers = [];

  // Loop through questions and get the correct answers
  questions.forEach(function(question, index) {
    var correctAnswer = question.querySelector('.correct-answer');
    if (correctAnswer) {
      answers.push(correctAnswer.textContent.trim());
    }
  });

  // Auto answer questions
  questions.forEach(function(question, index) {
    var answerInput = question.querySelector('input[type="radio"]');
    if (answerInput) {
      answerInput.checked = true;
      answerInput.labels[0].click();
    }
  });

  // Submit answers
  var submitButton = document.querySelector('.submit-button');
  if (submitButton) {
    submitButton.click();
  }
})();