- Adds weight label below each assessment
- Correlates assessment name with its ID, so each dom element can be identified: {trimmed_title: assessmentID}
- Slightly changed regex to be a little more permissive
- Changed pdfjs src/type due to CORS issues on firefox
- Permitted weightings to be zero, but not less than zero
- Modified how assessment items are iterated through, as the previous approach assumed they're in the same order as they are in react
- Changed parseAssessments() to immediately dispatch parsing for all pdfs asynchronously, as doing it serially is painstakingly slow
- Discard useless decimals when displaying weight (.0)
Add average grade display and also fix the CORS violation caused by pdfjs trying to load PDFs from URLs that Firefox extensions can't access.
fixed by instead:
- Fetching the PDF as an ArrayBuffer directly from the URL
- Passing the ArrayBuffer to pdfjs using { data: arrayBuffer } instead of passing a URL