pocket-grimoire
pocket-grimoire copied to clipboard
Download all images
Could be useful when you're going somewhere with spotty a internet connection. A dialog could download all images so your phone has them cached.
It's possible to go through the stylesheets to read all the background images (including their hashes) and the characters each have their own image.
[...document.styleSheets[0].cssRules].filter(({ style }) => style?.backgroundImage).map(({ style }) => style.backgroundImage)