Hacker News new | ask | show | jobs
by jwilk 2911 days ago
I looked at the source, and to be frank, it's awful:

  var newUrl = details.url.replace('.m.', '.').replace('/m.', '/').replace('/mobile.', '/');
This could easily break legitimate URLs.
1 comments

I absolutely agree, I'm not a JS developer. One day I'll fix it...