All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
You are not permitted to share YouTube links of videos that include prohibited matters, because by this you will be spreading material that leads to temptation and corruption, and it is a form of cooperating to disobey Allah the Almighty Who Said (what means): {And cooperate in righteousness and piety, but do not cooperate in sin and aggression. And fear Allah; indeed, Allah is severe in penalty.} [Quran 5:2]
The fact that these videos have beneficial material does not justify sharing it with others while they contain links to prohibited sites or material. This beneficial material can be found as text or audio which do not contain anything prohibited.
If the source of these clips is not known and cannot be trusted, then one must ascertain that they do not contain anything evil before sharing them, especially that most of the videos on YouTube include immoral and bad material.
Allah knows best.