DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:coinhive

coinhive Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" unknown

plugin CoinHive JavaScript Miner Plugin

Last updated on
2017-11-06
Provides
Action
Repository
Source

Tagged with miner, monetize

Installation

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: 2018-05-28 20:42 by Klap-in