Y
Hacker News
new
|
ask
|
show
|
jobs
by
L_226
2913 days ago
FYI I made a small chrome extension to auto-redirect links like this:
https://chrome.google.com/webstore/detail/demobile/poikbhnlb...
1 comments
jwilk
2912 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.
link
L_226
2908 days ago
I absolutely agree, I'm not a JS developer. One day I'll fix it...
link