What about just removing the youtube app from the tablet you give your child?
And take it away if you catch them watching pointless stuff.
Also, "their friends are doing it" is a terrible reason to let them do it, IMHO.
But I guess it takes time and effort to do that