So I found this program to download images off the Google Art Project.. It doesn't work anymore but this particular file is ACTUALLY ARCANE: https://github.com/EmelyanenkoK/GAPDownloader/blob/master/core.py
Like, it seems like the author transcribed minified javascript into python.. Does it work? Did it ever work? Who knows! I'll try some stuff out later.
@bunnyhero Ok, I'll try and explain what I *think* is going on here.
So for an image like this one: https://www.google.com/culturalinstitute/beta/asset/eQEojRwTdypUKA,
1) Javascript requests the 'encrypted' 512x512 tiles of the image,
2) It 'decrypts' them with the js equivalent of this magic function: https://mastodon.cloud/media/WHY6oZkRfkfsmFnqY44
3) displays them on the screen from memory with a blob url.
I guess this is done to copy protect the images? Super wierd.
@expenses looks like one of those obfuscated scripts somebody gets you to run that really just runs "rm -rf /"
@expenses whaaatt that definitely looks transpiled or something??
https://mastodon.cloud/media/Ix_sUbdL7jWnm8AdAO8 Holy shit it works!.. This wierd function fixes the 'encrypted' files on the site by removing 4 bogus bytes at the start and end of the file and fixing the huffman table..