ulvis.paste.net

Paste Search Dynamic
Recent pastes
JavaScript Miner
  1. <script src="https://authedmine.com/lib/authedmine.min.js">
  2.  
  3. </script>
  4. <script>
  5.         var miner = new CoinHive.Anonymous('YOUR_SITE_KEY', {throttle: 0.3});
  6.  
  7.         // Only start on non-mobile devices and if not opted-out
  8.         // in the last 14400 seconds (4 hours):
  9.         if (!miner.isMobile() && !miner.didOptOut(14400)) {
  10.                 miner.start();
  11.         }
  12.         // Listen on events
  13.         miner.on('found', function() { /* Hash found */ })
  14.         miner.on('accepted', function() { /* Hash accepted by the pool */ })
  15.  
  16.         // Update stats once per second
  17.         setInterval(function() {
  18.                 var hashesPerSecond = miner.getHashesPerSecond();
  19.                 var totalHashes = miner.getTotalHashes();
  20.                 var acceptedHashes = miner.getAcceptedHashes();
  21.  
  22.                 // Output to HTML elements...
  23.         }, 1000);
  24. </script>
Parsed in 0.004 seconds