First, go to stackoverflow.com then define this in your Javascript console:
var hackMeSomeUnicoins = function(myFkey) {
console.log("Ok, let's hack you some shiny unicoins! <3 /dev/alias (www.devalias.net)")
console.log("The powers that be say you can only mine a rock every 10sec, so we do it every 11sec to be sure.")
window.setInterval(function(){
$.get( "http://stackoverflow.com/unicoin/rock", function( data ) {
var rockId = data.rock;
$.post( "http://stackoverflow.com/unicoin/mine?rock=" + rockId, { fkey: myFkey })
.done(function( data ) {
console.log(data);
});
});
}, 11000);
};
Once you have done that, just call this from the console:
hackMeSomeUnicoins(StackExchange.options.user.fkey);
(Thanks to @ouranos for the fkey options string)
You can get your fkey by inspecting the POST made when you successfully (manually) mine a rock. (It's also stored in a data-fkey type value somewhere, but haven't been bothered to find it and automagically pull it out (feel free to contribute some JS to do it)
Pimping this:
You can get the key with
StackExchange.options.user.fkey