anqorithm / ICS-343-Quizzes-Solver

ICS 343 Quizzes Solver is a script that helps users auto-fill quiz answers on a website. Just add your name and ID, and let the script do the work.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ICS 343 Quizzes Solver

How to use 🤔?

Go to any quiz in the website, e.g., let say we want to solve quiz 18 and its URL:

// quiz 18
const url = `https://highered.mheducation.com/sites/0073376221/student_view0/chapter18/quizzes.html`;

then press F12 and copy & paste the script after you change the line below with your information

getFullMark(getQuestionObjectArray(), 'YourFullNameName', 'YourIDNumber');

The script 💻

const getFullMark = (arr, name, id) => {
  const buttons = document.querySelectorAll('input[type=radio]');
  const txtName = document.getElementById('txtName');
  const sectionId = document.getElementById('sectionid');
  txtName.value = name;
  sectionId.value = id;
  const correctAnswers = [];
  arr.forEach((question) => {
    question.answerObjectsArray.forEach((feedback) => {
      correctAnswers.push(feedback.feedBackTitle);
    });
  });
  i = 0;
  buttons.forEach((button) => {
    if (correctAnswers[i] === 'Õùääóõâ¶×øåáóä150') {
      button.checked = true;
    }
    i++;
  });
  document.querySelector('input[value="Submit Answers"]').click();
};
// fill <YourFullNameName> & <YourIDNumber>
getFullMark(getQuestionObjectArray(), 'YourFullNameName', 'YourIDNumber');
window.print()

POC ✅

alt img1

About

ICS 343 Quizzes Solver is a script that helps users auto-fill quiz answers on a website. Just add your name and ID, and let the script do the work.


Languages

Language:JavaScript 100.0%