Century Tech Auto Answer

Auto answer questions on Century Tech

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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