Oh No You Didn't
Wouldn't javascript need to be enabled for the browser to have this mining ability?
Am not *quite* in tin-foil hat mode these days, but NoScript is my go-to friend - even on sites I visit often.
Yes, one often has to temporarily allow scripts to get at the full content of a site, but afterwards I do take care to revoke such permissions.