// extractor works after submitting form and clicking on [View Score] button // once all correct answers are displayed use this script function isCorrect(el) { const val = el.querySelector('[aria-label="Incorrect"]') return val ? false:true } function answerFromIncorrect(el) { return el.querySelector("div.freebirdFormviewerViewItemsItemGradingCorrectAnswerBoxContent > div > label > div > div.docssharedWizToggleLabeledContent > div > span").innerText.split('.')[0] } function answerFromCorrect(el) { return el.getElementsByClassName('appsMaterialWizToggleRadiogroupEl exportToggleEl isChecked isDisabled')[0].getAttribute('data-value').split('.')[0] } var arr = Array.from(document.querySelectorAll("body > div > div:nth-child(2) > div.freebirdFormviewerViewFormCard.exportFormCard > div > div.freebirdFormviewerViewItemList > div")) var questions = arr.slice(7) var answers = [] for (let i=0; i