Sort:  

yes, here: https://coinhive.com/documentation/miner
you don't have to use this... of course this will drop the number of miners dramatically ;)
but I just prefer this transparent approach instead of just silently using the visitors cpu power.