NitterizeMe once set by default to open Twitter and YouTube links will transform them into Nitter and Invidious links and delegate the action to another app.
![A YouTube link received via a text message](./images/img3.png) ![The app handled and transformed it before delegating the action](./images/img4.png) ![The app opened the transformed link](./images/img5.png)
For a full coverage with URLs, you can use FireFox with the [Invidition](https://addons.mozilla.org/fr/firefox/addon/invidition/) plugin from [@booteille](https://framapiaf.org/@booteille).
Source code of [Invidition on Godeberg](https://codeberg.org/Booteille/invidition)