Firefox 69 is shipping with protection from cryptocurrency mining running without the user's knowledge: https://venturebeat.com/2019/04/09/firefox-will-now-let-you-block-fingerprint-tracking-and-cryptojacking/
I know CI services like Travis have to worry about this, but I wouldn't have thought JS mining would be anywhere near worthwhile.