update
This commit is contained in:
parent
e4b8c84fde
commit
eb5b260d52
2 changed files with 0 additions and 2 deletions
1
fetch.js
1
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue