3 ms·
Show HN: Redirect-as-a-Service
- deleted 4y ago[deleted]
- metadat 4y agoCute. (It redirects back to this post after a few moments.) Question to the author: Will this be open sourced?
- drakmail 4y agoThe source code: const {url,mswait} = Object.fromEntries([...new URLSearchParams(location.search).entries()]); const realUrl = url.includes('33048158') ? url.replace('158', '162') : url; const realUrl2 = realUrl.includes('ycobminator') ? realUrl.replace('ycobm', 'ycomb') : realUrl; const waitMs = Math.min(10000, mswait); setTimeout(() => location.href = realUrl2, waitMs); :-) (can be found in the page source code)