Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
The best blocker that I know of is "uMatrix" but it's not available for Safari. However, it's close relative "uBlock Origin" is available on Safari and likely blocks that script with it's defaults. If not, you can add it to your custom filters.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.