I recently made a kind of "Public Service Announcement" on my website telling people that there is only one advertisement on the site and it is neatly placed into the site's design.
I did this because someone reported the site as "not working", and when asked for a screenshot of the problem, provided me with this:
ad-riddled screenshot http://ezimba.com/work/140308C/ezimba19743774066600.png
Further investigation revealed the problem to be a malicious extension called "HD Streamer".
In general, once a problem has been determined to be adware, I point them to MalwareBytes and say "it's your problem, not mine, I need to get back to work now".
This has been fine overall, and some people have learned to educate fellow users having similar problems. However, not everyone reads the questions others have asked (or else we wouldn't need "Close as Duplicate" here, now would we? ;))
Anyway, on to the point. Is there any kind of reliable way to detect the insertion of such extra advertisements on my site through JavaScript?
If I can automatically detect such... "hijacking", I could insert a box of my own to say "hey, you have adware, probably should clean that up!" ... 'Course, some malware ads disguise themselves as "you have a virus, click here to fix" boxes, so I'd have to make sure to make it obviously a part of the site's design (colours, maybe style it as a dialogue bubble belonging to a character of the site with said NPC's name, stuff like that) but I figure this would be more helpful than just dismissing them as someone who can't keep their computer clean.