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.
3 things:
1- The console script, especially the modifications with prefixes by @fboulet and others work really well for the FIRST IMAGE in a post with multiple images. However, the rest of the images are ignored/not downloaded. For example, on May 12, 2021, my kid's post has 10 images from the same day - it only seems to grab the first one. Can anyone advise how you would go about modifying the script to grab all 10 (that you usually have to scroll through by clicking the first and then clicking the right arrow?)
2- Is there a limit on how far it goes back in time? I figured it was whatever you had 'scrolled down' on your desktop to, since it seems to pre-load about 10 days of images at a time -- so I scrolled as far back as I wanted it to download, but it seems to stop at about the ~18 month mark or so?
3- @fboulet: Yours works great for pictures but doesn't seem to download videos for me. @Patrick330: Yours seems to download photos and videos (without the prefixes that @fboulet's modified script added). Only difference I see between your 2 scripts is the semi-colon at the end of the videos one -- but removing the extra semicolon doesn't seem to fix @fboulet's for videos -- so weird!