YouTube announced a ban Tuesday on videos that endorse dangerous pranks and challenges, which pose risks of injury or death.…