Is there a way to cheat javascript games (like Unicoin mining) where rapid clicking is required?

I saw that there's a new currency on the site today for higher privileges called Unicoin. You can mine them by clicking quickly.

I was wondering if there's any Ubuntu wizardry that could speed up the process of mining these coins (and by extension to prove that Ubuntu is better than Windows).

Any help appreciated. Index finger is getting tired.


If you want to give your finger a rest you can use the following to automatically send multiple (10,000 in this case) clicks to the current cursor location.

xdotool click --repeat 10000 --delay 10 1

I suggest you open a terminal first put the command in (leave focus with the terminal) and then move the mouse over the mining screen before pressing return so that the clicks end up in the correct place.

As soon as one boulder is mined, move your mouse over to the next one. Don't leave the game area until the command has finished running unless you want to unleash chaos on your system.


Post April-fools update: This will also be handy in instances where you can't hack around the browser with javascript. There are a few games out there —and not just in browsers— that rely on quick clicking where this sort of workaround can help.


The following method is cross-platform, it works also for other SE sites. Oh, and it is also cross-platform in the sense that it works for other operating systems.

Based on this meta.SO comment, I have created the following script that automatically starts mining every 15 seconds, from the moment of invocation:

(function(fn){setInterval(fn,15e3);fn()})(function() { $.get("/unicoin/rock").done(function(obj) { console.log("Mining: ", obj); var key = obj.rock; $.post(["/unicoin/mine?rock=" + key], {fkey: StackExchange.options.user.fkey}); }); });

As this is a script, you should execute it on the SE domain where you wish to accelerate your mining. In Firefox, you can open the Console by pressing Ctrl + Shift + K. In Chromium, simply press F12. Paste it and gain coins! To stop it, simply refresh (or close) the page.

Note: you should not execute this multiple times. That would make the Unicoins economy collapse and therefore measures have been taken such that you cannot get coins in that case.