Reposting comment as answer:
If it only happens in Chrome, it's probably coming from a Chrome extension. Does disabling any extensions you have installed fix it?
Update: I did some digging and found what I think is a copy of the source code. Based on that, it looks like the script placed/replaced ads on websites at random. I also found this G+ post talking about it so looks like it was quite a bad extension.