Skip to content

Instantly share code, notes, and snippets.

@btleffler
Last active August 29, 2015 13:57
Show Gist options
  • Save btleffler/9920970 to your computer and use it in GitHub Desktop.
Save btleffler/9920970 to your computer and use it in GitHub Desktop.
Mine them unicoins
// Hold mouse down to rapidfire mine unicoins
$("#uc-rockcanvas")
.on("mousedown", function (oEvt) {
if (window.Hax0rInterval)
return;
var self = $(this);
window.Hax0rInterval = setInterval(function () {
var e = new $.Event("mousedown");
e.pageX = oEvt.pageX;
e.pageY = oEvt.pageY;
self.trigger(e);
}, 100);
})
.on("mouseup", function () {
clearInterval(window.Hax0rInterval);
window.Hax0rInterval = false;
});
$("#uc-rockcanvas").on("mousedown",function(e){if(window.Hax0rInterval)return;var t=$(this);window.Hax0rInterval=setInterval(function(){var n=new $.Event("mousedown");n.pageX=e.pageX;n.pageY=e.pageY;t.trigger(n)},100)}).on("mouseup",function(){clearInterval(window.Hax0rInterval);window.Hax0rInterval=false})
@btleffler
Copy link
Author

StackOverflow has this Unicoin thing as an April Fools joke. You can put this script into the console to turn your mouse into a rapidfire controller for mining them unicoins.

@btleffler
Copy link
Author

I guess you're only allowed to mine one rock every 10 seconds too. Bummer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment