Stripping tracking parameters from pasted video links before I send them anywhere

When someone pastes a TikTok or Instagram link into ramrom.io, the link almost never looks like the clean address you would type by hand. It looks more like this: https://www.tiktok.com/@someone/video/7123456789012345678?_t=8abc&_r=1 or this: https://www.instagram.com/reel/CxYz123AbCd/?igshid=MTc4MmM1YmI2Ng== That trailing junk after the ? is tracking. It tells the platform who shared the link, which app it came from, and sometimes which session it was copied in. None of it identifies the video. The video is identified by the part in the path — the video ID. So before my site does anything els
Headline and summary provided via NewsData.io. The full article and its copyright belong to the original publisher.