Already been done, albeit without the webgpu part. I think some browsers already block crypto miners
It's a shame in a way, it also blocked the pseudo-captchas that used mining to limit spam.