3 ms·
I did that trickery and it works: https://github.com/AdrianVollmer/Zundler https://github.com/AdrianVollmer/Zundler (I had to fix the mime type detection and I
by mr_mitm 2y ago
I did that trickery and it works: https://github.com/AdrianVollmer/Zundler https://github.com/AdrianVollmer/Zundler
(I had to fix the mime type detection and I'll have to push that fix to PyPI, so use the main branch if you want to try it yourself.)
Unfortunately, since we have to ship it with the gzip lib pako.js, the size more than quadruples to 77kb, so no QR code with this approach. Maybe I should look into making compression optional.
- tcsenpai 2y agoUh uh thats very interesting. I am gonna play with it a lot. > the size more than quadruples to 77kb, so no QR code with this approach. OR we can use 25 QR codes haha. Joking, but what about huge QR codes?
- lifthrasiir 2y agoYou can use DecompressionStream instead of pako.js for all modern browsers. FetchCrunch [1] uses it to generate self-extracting HTML files, which were not portable at that time but now fully portable across browsers. [1] https://github.com/subzey/fetchcrunch https://github.com/subzey/fetchcrunch
- mr_mitm 2y agoVery cool. Thanks for letting me know!