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

View file

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