From eb5b260d52de1611b737cb6a2996f2c1485be275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Thu, 23 May 2024 18:46:18 +0200 Subject: [PATCH] update --- fetch.js | 1 - main.user.js | 1 - 2 files changed, 2 deletions(-) diff --git a/fetch.js b/fetch.js index 5735f1d..5d76b3e 100644 --- a/fetch.js +++ b/fetch.js @@ -105,7 +105,6 @@ function parseAnswerElement(index, element, allAnswersElement) { function parseQuestion(questionElement) { const textContent = questionElement.textContent.trim(); const matches = textContent.match(IS_QUESTION_REGEX); - return textContent; return matches !== null ? matches[1] : null; } diff --git a/main.user.js b/main.user.js index 725c2f7..c651a03 100644 --- a/main.user.js +++ b/main.user.js @@ -25,7 +25,6 @@ window.addEventListener("keydown", async (event) => { const newAnswersURL = prompt("Please input the answer url (itexamanswers.net)", oldAnswersURL); GM_setValue(URL_STORAGE_KEY, newAnswersURL); answerData = await window.fetchAnswers(newAnswersURL); - console.log(answerData); break; case "n":