this post was submitted on 04 Feb 2025
52 points (91.9% liked)
Programming
18101 readers
182 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Okay… can you help me delete the tracking in this link?
https://music.youtube.com/watch?v=W_svsNc6seE
Is the tracking piece after the second equals?
Query parameters follow everything after the
?
and take the formata=foo&b=bar
. Essentially, key value pairs using=
and separated by&
.There's no perfect way to know what is and isn't part of a tracking stuff. We just use our intuition. In this case, when we look at a YouTube video we see links like
https://www.youtube.com/watch?v=dQw4w9WgXcQ
. Notice thev=xxx
? So, in the URL you shared, we can deduce thatv=W_svsNc6seE
is needed and thesi=xxx
is the tracking stuff. You should also then remove the&
because it's no longer separating two entries. Leaving it doesn't seem to hurt anything though. Sohttps://music.youtube.com/watch?v=W_svsNc6seE
without&si=22MYOxMc5wMcdatU
.I don't know what
si
stands for, but in my head I see it as "share ID". A lot of services usesi
or something similar for the tracking stuff.Thanks very much.
I shall experiment with your models and hopefully learn a little bit more about this.
Would you say that these platforms are trying to make it harder for dabblers like me to defeat some of their tracking?
Yeah. TikTok's generated share links don't have separate params for the content and tracking making it difficult to get around without copying the link into the browser yourself. Because it's mostly used through an app and not the browser, you cannot just copy the URL and you have to use the share button.