upadas
This commit is contained in:
parent
a1966e3270
commit
27326c944b
2 changed files with 4 additions and 3 deletions
5
fetch.js
5
fetch.js
|
@ -36,7 +36,9 @@ function parseAnswers(response, resolve) {
|
|||
for (let child of Array.from(allAnswersElement.children)) {
|
||||
index++;
|
||||
const result = parseAnswerElement(index, child, allAnswersElement);
|
||||
results.push(result);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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==
|
||||
|
||||
|
|
Loading…
Reference in a new issue