It's a shame how so many websites just don't function even with minimal Javascript features turned off, because that's essentially the only way to really defend against this sort of malware.
There's blacklisting which can be used in uBlock, and you can limit the processorusage of threads within a browser with whitelisting. E.g. "Hacker News is requesting excessive usage of your GPU. Would you like to allow this usage?"