fasttime / JScrewIt

Write any JavaScript with six characters: ! ( ) + [ ]
https://jscrew.it
ISC License
159 stars 12 forks source link

How useful browser's User Agent is in code conversion? #50

Open Clayblockunova opened 1 month ago

Clayblockunova commented 1 month ago

There is a fact well known in web developers: User Agent string (navigator.userAgent) always begin with 'Mozilla' if unmodified. If that's not easy to modify, User Agent string can be a good source for 'M' (currently 'M' cost 9620 chars for all browsers, and navigator.userAgent[0] cost 6960 chars).

fasttime commented 1 month ago

Sounds good 👍 Feel free to open a pull request.

fasttime commented 1 month ago

Done in 43b51b9f5563a4900949bbc2291f6319e096c34a.