https://github.com/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.
https://github.com/anqorithm/ics-343-quizzes-solver
Last synced: 6 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/anqorithm/ics-343-quizzes-solver
- Owner: anqorithm
- Created: 2022-05-14T07:55:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T08:55:20.000Z (over 2 years ago)
- Last Synced: 2025-02-15T18:53:42.191Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 220 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```javascript
// 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
```javascript
getFullMark(getQuestionObjectArray(), 'YourFullNameName', 'YourIDNumber');
```## The script 💻
```javascript
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 &
getFullMark(getQuestionObjectArray(), 'YourFullNameName', 'YourIDNumber');
window.print()
```## POC ✅
