Skip to content

Instantly share code, notes, and snippets.

View mrpinkcat's full-sized avatar
🦉

Gatien Anizan mrpinkcat

🦉
View GitHub Profile
@mrpinkcat
mrpinkcat / globalshit.js
Created May 15, 2022 14:30
Global exam speed run 0%
const selectAnswerInQuestion = () => {
// Loop in question:
document.querySelectorAll('.card').forEach(question => {
const questionText = question.querySelector('p.font-bold')?.innerText;
// if question text contain Question
console.log(questionText?.includes('Question'));
if (questionText?.includes('Question')) {
let answers = [];
// Loop in answer:
question.querySelectorAll('.items-center').forEach(awnser => {