New York now is trying to restrict algorithms that target young users on a number of social media platforms.