Please see Patrick330's fork of this script.
ClassDojo changes their site regularly, so a script like this needs regular maintenance. I have decided to archive this project and stop providing updates. Patrick330's fork linked above may be a good alternative.
ClassDojo is a classroom communication app used to share reports between parents and teachers. Teachers track student behavior and upload photos or videos. The gamification style system teaches developmental skills through real-time feedback.
When your child's teacher shares a photo, it goes on your parent "storyline". Unfortunately, ClassDojo does not provide any means of saving these photos. In fact, the photos are displayed in a <div>
using style: background-image('...');
so right-clicking and choosing "Save image" is not an option.
I tried Patrick 330's script in Firefox, Edge, and Chrome and get the same errors.
VM30:52 Uncaught TypeError: Cannot read properties of null (reading 'innerText')
at :52:66
at NodeList.forEach ()
at :29:5
I don't know enough about javascript but am wondering if fredbuteau's fix works for this. I don't understand, however, how to go about the following, if this even is the fix
"console.log()'d the value of headerNode and I was able to find the needed values within the output just before the teacher's and class names. " if this even is a way of fixing that. Any help would be greatly appreciated!