Chrome Headless Coinhive

Not using coinhive any more, jse is betterĀ¬
leaving this for reference
Save some resources by running the clickforafrica miner in headless mode.
Install chromium-browser then

chromium-browser --headless --disable-gpu --repl

if errors re. gpu:

chromium-browser --headless --repl

headless mode – REPL enabled, (Read-Evaluate-Print-Loop, to execute javascript in the DOM via command line).
at the prompt:

miner = new CoinHive.User('zs9qQRPi3kDck4QlvMl6GrGqj7LPESg3', "ClickForAfrica", { throttle: 0.8, autoThreads: true});

Then start the miner with:


And then check it is running with


docs are [gone! coinhive is no more]
for google chrome use google-chrome instead.