uBlock Origin[1] is a good idea. Not only does it get rid of potentially harmful ads, it also blocks malware/badware websites. I'd recommend enabling all filter lists under "Malware Domains."
Edit: HTTPS everywhere[2] could also help prevent attackers from redirecting you to their fake "You have a virus!" website.