Hacker News new | ask | show | jobs
by jwilk 2913 days ago
Non-mobile link:

https://en.wikipedia.org/wiki/Fruit_of_the_poisonous_tree

1 comments

FYI I made a small chrome extension to auto-redirect links like this: https://chrome.google.com/webstore/detail/demobile/poikbhnlb...
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.
I absolutely agree, I'm not a JS developer. One day I'll fix it...