Library for deobfuscating obfuscated javascript values

Just in case anyone’s interested here’s an old library i wrote that functions as a partial JavaScript interpreter for deobfuscating obfuscated values like:

+((!!!![]+!![]+![]+!![]+!!!!!![]+[])+(!![]+!![]))

The code

1 Like

Can I ask what this would be used for?
I don’t have much experience with something like this and would like to know more. :slightly_smiling_face:

Some websites use obfuscated JavaScript constants to store information to prevent scraping. This library gets around that by deobfuscating those constants.

1 Like

What i used it for was bypassing the cloudflare bot-check for scraping video links for the cinema gamemode.

1 Like

Oh, very interesting!
Thank you for the explanation, good stuff :+1: