Is there any way for userscripts to access or even modify the queue? It seems to me that the queue is now stored in javascript variables that are unreachable(?) from the page context. The only related thing I found is this queue (limited to 100 entries):
JSON.parse(document.querySelector(`#quiz-queue [data-quiz-queue-target="subjects"]`).textContent)
and this complete queue which contains just the ids and the srs stages:
JSON.parse(document.querySelector(`#quiz-queue [data-quiz-queue-target="subjectIdsWithSRS"]`).textContent)
Sadly, they don’t seem to update when the user proceeds through the reviews, and changes to these elements are also ignored.
If any other script author has already found a way to modify the queue, I would be interested in knowing how to do it.
EDIT: While looking through the code, I noticed that you are emitting some events that are also useful for script authors:
- audioWillPlay
- willShowNextQuestion
- didChangeSRS
- didUpdateUserSynonyms
- registerWrapUpObserver
- didAnswerQuestion
- didCompleteSubject
- updateQuizProgress
- connectionTimeout