Century Tech Auto Answer

Auto answer questions on Century Tech

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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();
  }
})();