When you copy the URL for sharing in YouTube, it adds a query parameter now, so=blah, for tracking the source. This removes that. It could of course be smarter and stop at either the end or the next parameter, but since I haven’t seen any extras, I just remove everything after.