I am relatively new to Javascript and am currently making a Violentmonkey script. In my script I have a relatively big string that I want to compress but I don't know how I would do that since most methods I found only where using external libraries (which I don't know if or how to use in Violentmonkey).
So what's the best way of compressing a string in Violentmonkey? Thanks in advance
You can
@requirea CDN link to the lz-string library, and use it to decompress a pre-encoded base64 string.Encode your original string using
LZString.compressToBase64and store it inside the script like below: