The part that says either ?si= or &si= is only for tracking. You can remove this part of the link and it will still function just the same. It makes the link shorter and also helps protect your privacy. The only important part of a YouTube URL is the video ID. There are two types of URLs:

youtube.com/watch?v=

For this one you can remove everything after and including the ampersand if present.

youtu.be/(videoid)?tracking

For this one you can remove everything after and including the question mark.

Note the exception is if you want to intentionally leave in playlist information you might want to keep that part.

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    19
    ·
    19 hours ago

    To be fair, even if you know to remove them, it is annoying as fuck to do so.

    A bot is probably a good way around it, although I wonder if the bot could be tricked into sharing an unintended video.

    • BoycottTwitter@lemmy.zipOP
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      19 hours ago

      Firefox can do it automatically by pressing “Copy Clean Link” but it only works for certain websites and sometimes I’ve noticed it won’t properly clean the URL even on supported websites. It’s getting better in recent versions of Firefox however.

      • CameronDev@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        17 hours ago

        I know its meant to do it, but I have no idea how it works on mobile. Which is annoying, because its most useful on mobile.

    • JayGray91🐉🍕@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      15 hours ago

      For any android users reading this, urlcheck can auto remove tracking portions if a link, as well as allow to automatically apply the link to a privacy focused front end (is that what e.g. nitter is called?).

      Sure it’s still am extra step to share the link to urlcheck first before sharing it to your recipient. But hey it takes out the menial task by a lot.