Skip to content

Instantly share code, notes, and snippets.

@gilberto-009199
Created November 10, 2023 18:01
Show Gist options
  • Save gilberto-009199/e4744e1c98434bf64d2da5f46d5a258a to your computer and use it in GitHub Desktop.
Save gilberto-009199/e4744e1c98434bf64d2da5f46d5a258a to your computer and use it in GitHub Desktop.
function mountedQuest(){
let alternati = ["A","B","C","D","E"]
text = "";
text += $('p#assessment-a11y-title').outerText+"\n";
try{
let detail = $(".sa-assessment-quiz__title-detail").outerText
text += "'"+ detail +"'\n"
}catch(e){}
document.querySelector('div.sa-assessment-quiz__response').querySelectorAll('li').forEach(function(li, index) {
text += (alternati[index]+" _ "+(li.textContent.replace("\n","").trim()))+"\n";
});
console.log(text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment