26

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.

Braiam
  • 69,112
Oli
  • 299,380

4 Answers4

20

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.

Oli
  • 299,380
16

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.

Lekensteyn
  • 178,446
3

There is xautoclick available and I have tested on 12.04.

  1. Download the .deb and install from http://www.ubuntuupdates.org/package/getdeb_apps/quantal/apps/getdeb/xautoclick

  2. Adjust the settings to something like this:

    enter image description here

  3. Click start, and move the mouse over to the mining field before it starts.

Mateo
  • 8,152
2

There is a JS wizzardy to do this. Check the script I wrote. Just paste this in your console and click enter. Do not forget to open mining game.

var exploit = {
    lastTime : 0,
    totalNum: 0
};

$( document ).ajaxComplete(function( event, xhr, settings ) {
    var a = $.parseJSON(xhr.responseText);
    var id = a.rock;
    var sender = settings.url;

    if (sender.indexOf("icoin/rock?") !== -1){
        var currentTime = parseInt( new Date().getTime() / 1000 );
        if (currentTime - exploit.lastTime > 11){
            $.ajax({
                type: "POST",
                url: "/unicoin/mine?rock=" + id,
                data: {'fkey': StackExchange.options.user.fkey}
            });
            exploit.lastTime = currentTime;
        }
    } else {
        var res = $.parseJSON(xhr.responseText)
        exploit.totalNum += res.value;
    }
});

You can check how much was mined with exploit.totalNum.