So I created an open-source Lemmy bot to reply to posts/comments with YouTube links with converted Piped links to preserve your privacy.
Piped is an open-source alternative privacy-friendly frontend to YouTube. You can watch the same content from YouTube without connecting to Google’s servers.
You can find the source code at: https://github.com/TeamPiped/lemmy-piped-link-bot
You can find Piped’s source code at: https://github.com/TeamPiped/Piped
PS: I’m the author of Piped :P
To add on to this tip, for anyone who is reluctant to or cannot install an extension on their browser, you can copy and paste the YouTube link into the search bar of your favorite Piped instance and hit Enter.