This has been done before, and stealing people's CPU time has never really been accepted as a valid way to make money for a site. Then again, it's not like downloading the ads isn't stealing your bandwidth. You can block both ads and scripts these days, so if you really don't want to participate, you don't have to. Sites should be up front about mining though.