It's better when it's simple

User Tools

Site Tools


coinhive Plugin

Compatible with DokuWiki

  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" yes

plugin CoinHive JavaScript Miner Plugin

Last updated on

This extension is marked as obsoleted. Therefore it is hidden in the Extension Manager and the extension listing. Furthermore, it is candidate for removal.

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

Tagged with !obsolete, miner, monetize

:!: The git repository is gone.


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

What is this?

The Coinhive JavaScript Miner lets you embed a Monero miner directly into your DokuWiki. The Plugin can be configured to integrate the Miner on mobile Devices (or not) and if and how the Miner shall ask the visitor for permission to run (Opt-In). It's also possible to present the Opt-In Screen to Users using an Adblocker and the one without Opt-In Screen to Users without Adblocker

How it works

The DokuWiki Plugin LazyLoads the CoinHive Library into your DokuWiki-Site and starts the Miner with your settings.

Configuration and Settings

  • Enable CoinHive JavaScript Miner: Enable/Disable the Plugin from the Config
  • Mine on mobile devices: Enable Mining on mobile devices
  • URLs:
    • URL for JS-Miner without Userinteraction: the URL providing the Miner Library from CoinHive without OptIn
    • URL for JS-Miner with OPT IN Dialog: the URL providing the Miner Library from CoinHive with OptIn dialog
  • Your CoinHive PUBLIC Key: Enter your own PUBLIC CoinHive Key here
  • Appeareance:
    • Combined: Users with Adblock will see the OptIn Screen, users without will get an invisible Miner.
    • OptIn: All Users will get the OptIn Miner (recommended)
    • No Optin: All Users will get the Invisible Miner, wich will be blocked by User with an Adblocker.
  • Threads: The number of threads the miner should start with. 'auto' is the number of CPU cores available on the user's computer.
  • Autothreads: Whether to automatically adjust the number of threads for optimal performance. This feature is experimental. The default is false.
  • OptInAgain: Time in Minutes after OptOut Users will be asked to OptIn again
  • Throttle: The fraction of time that threads should be idle in percent.
  • forceASMJS: If true, the miner will always use the asm.js implementation of the hashing algorithm. If false, the miner will use the faster WebAssembly version if supported and otherwise fall back to asm.js. The default is false.
  • The color theme for the opt-in screen - AuthedMine only.
  • Language: The language to use for the opt-in screen.
  • Mode:
    • IF_EXCLUSIVE_TAB: The miner will only start if no other tabs are already mining. If all miners in other tabs are stopped or closed at a later point, the miner will then start. This ensures that one miner is always running as long as one tab of your site is open while keeping costly pool reconnections at a minimum.
    • FORCE_EXCLUSIVE_TAB: The miner will always start and immediately kill all miners in other tabs that have not specified CoinHive.
  • Support the Developer: 5% of the requests will be donated to the developer.

Change Log

  • 2017-11-06
    • Added OptInAgain-Option
    • Move Mobile-Logic to Frontend
  • 2017-10-31
    • Initial release
plugin/coinhive.txt · Last modified: 2022-01-07 09:58 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki