UntrackMe, doesn’t open an app, but redirects to a chosen Invidious instance. I use farside.link/invidious which chooses a random instance closer to you.
Alternatively, just use the share link on any function, and route it to the appropriate app. In this case, share a Youtube Link to the official app or to NewPipe.
There is a similar thing already written, minus the automatic part. You set it as your default browser and lets you do all sorts of things to the link before opening it in a browser. It lets you choose which app to use the link in afterwards. You can unshort urls, it checks for malware or redirects… You get the picture. Not sure if this helps with what you are after:
Not necessary, apps can register to open links from specific domains.
The only caveat is that if they don’t also own the domain - like Google owns both youtube.com and the YouTube Android app - you have to manually go to the settings for the app in System Settings and enable them, under ‘Open by default’.
I wonder could someone write an app that watches the clipboard for YouTube URLs and auto launches the desired app?
UntrackMe, doesn’t open an app, but redirects to a chosen Invidious instance. I use farside.link/invidious which chooses a random instance closer to you.
Alternatively, just use the share link on any function, and route it to the appropriate app. In this case, share a Youtube Link to the official app or to NewPipe.
There is a similar thing already written, minus the automatic part. You set it as your default browser and lets you do all sorts of things to the link before opening it in a browser. It lets you choose which app to use the link in afterwards. You can unshort urls, it checks for malware or redirects… You get the picture. Not sure if this helps with what you are after:
https://f-droid.org/packages/com.trianguloy.urlchecker/
Not necessary, apps can register to open links from specific domains.
The only caveat is that if they don’t also own the domain - like Google owns both youtube.com and the YouTube Android app - you have to manually go to the settings for the app in System Settings and enable them, under ‘Open by default’.