Giter Site home page Giter Site logo

ics-343-quizzes-solver's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.