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":