Last active
August 29, 2015 13:57
-
-
Save btleffler/9920970 to your computer and use it in GitHub Desktop.
Mine them unicoins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#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}) |
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
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.