Consider running a script blocker in your browser. They're capable of blocking this type of annoyance, among other benefits.
Chrome (<- I don't use it) has uBlock Origin.
Fx has NoScript and uBlock Origin.
Safari has uBlock and JSBlocker. (There's also uBlock Origin under development; it's at alpha beta stage.)
Many people consider script blockers to be obtrusive. They are when you're unfamiliar with them. After you take the time to learn them and create the rules that meet your needs, using them becomes second nature.
(Edited to reflect that uBlock Origin for Safari is now at beta stage.)