To be clear, I have nothing against Coinhive. However, I do have a problem if you're using it to mine cryptocurrencies on random people's computers without their consent.
https://steemit.com/bitcoin/@sek3/ad-networks-could-be-using-your-computer-to-mine-cryptocurrencies-right-now