1
1
Fork 0
This commit is contained in:
Dominik Säume 2024-05-23 18:46:18 +02:00
parent e4b8c84fde
commit eb5b260d52
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C
2 changed files with 0 additions and 2 deletions

View file

@ -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;
}

View file

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