The website for the New York Times was hit by malicious adverts over the weekend.