1
1
Fork 0
This commit is contained in:
Dominik Säume 2024-05-23 17:46:58 +02:00
parent a1966e3270
commit 27326c944b
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C
2 changed files with 4 additions and 3 deletions

View file

@ -36,8 +36,10 @@ function parseAnswers(response, resolve) {
for (let child of Array.from(allAnswersElement.children)) {
index++;
const result = parseAnswerElement(index, child, allAnswersElement);
if(result != undefined){
results.push(result);
}
}
resolve(results);
}
@ -116,7 +118,6 @@ function getAnswersElement(index, allAnswersElement) {
if (answersElement.tagName === "P") {
answersElement = allAnswersElement.children[index + 2];
}
console.log(answersElement);
return answersElement;
}

View file

@ -10,7 +10,7 @@
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_xmlhttpRequest
// @version 0.0.16
// @version 0.0.17
// @author Dominik Säume
// ==/UserScript==