Skip to content

Instantly share code, notes, and snippets.

View tomaszgalinski's full-sized avatar

Tomasz Galiński tomaszgalinski

View GitHub Profile
@tomaszgalinski
tomaszgalinski / download-classdojo-media.js
Last active June 6, 2023 14:23 — forked from Patrick330/download-classdojo-media.js
Saving the images and videos from your ClassDojo storyline
/* run this in the console on the ClassDojo page */
function download(url, prefix) {
fetch(url).then(function(t) {
return t.blob().then((b)=> {
var a = document.createElement("a");
a.href = URL.createObjectURL(b);
var n = url.lastIndexOf('/');
var filename = url.substring(n + 1);
var randomStr = Math.random().toString(36).substring(5);