A userscript to open YouTube links in the YouTube app on iPhone. Works with sideloaded YouTube as well.
Enhanced search engine integration so YouTube links on search result pages (Google, Bing, etc.) open directly in the YouTube app without loading youtube.com first.
Safari extension to run user script (free): https://apps.apple.com/us/app/userscripts/id1463298887
Userscript code: Open In YouTube Userscript
- Install the free open source app Userscripts
- Launch the app and choose path for scripts
- Enable userscripts on your iPhone in Settings > Safari > Extensions and allow access to sites
- On iPhone/iPad tap to see the code: Open In YouTube Userscript
- Tap Aa in safari and Tap Userscripts
- Install the detected Userscript.
Open any YouTube link in Safari (either directly or from search results like Google, Bing, DuckDuckGo), and it will automatically redirect to the YouTube app.
Works with:
- Standard videos (youtube.com/watch?v=...)
- Short links (youtu.be/...)
- Shorts (youtube.com/shorts/...)
- Channels (@username, /c/, /user/)
- Playlists
Based on Open-In-Apollo by AnthonyGress