fasttime / JScrewIt

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

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

Open Clayblockunova opened 3 months ago

Clayblockunova commented 3 months 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 3 months ago

Sounds good 👍 Feel free to open a pull request.

fasttime commented 3 months ago

Done in 43b51b9f5563a4900949bbc2291f6319e096c34a.