From 27326c944b1888fc3e6eb976de8e494217cda7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Thu, 23 May 2024 17:46:58 +0200 Subject: [PATCH] upadas --- fetch.js | 5 +++-- main.user.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fetch.js b/fetch.js index fd7b160..9fed719 100644 --- a/fetch.js +++ b/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; } diff --git a/main.user.js b/main.user.js index 0bd4d54..c078d46 100644 --- a/main.user.js +++ b/main.user.js @@ -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==