Modify YouTube share links
YouTube offers several links to share a video. One is the normal link that points to the YouTube web interface. Then there is one that is used to embed videos:
- https://www.youtube.com/watch?v=gGyG6LT-ZGI <-- link copied from browser bar
- https://youtu.be/gGyG6LT-ZGI <-- normal link
- https://www.youtube.com/embed/gGyG6LT-ZGI <-- embed link
- https://www.youtube-nocookie.com/embed/gGyG6LT-ZGI <-- embed link, privacy enhanced mode
The link for embedding videos is a bit hidden. This will probably cause many users to use the wrong link when embedding a video.
Therefore, there should be an automatic detection that notices when someone tries to use the normal YouTube share link when embedding a video. In this case, the link should be automatically replaced with the embed link.
Edited by Nils Mittler