Skip to content

Instantly share code, notes, and snippets.

@iGusev
Created March 29, 2014 20:23
Show Gist options
  • Save iGusev/9862233 to your computer and use it in GitHub Desktop.
Save iGusev/9862233 to your computer and use it in GitHub Desktop.
Dripstat
document.hasFocus = function(){return true} // for click without focus
setInterval(function() {
var t=CoffeeCup.calcBytesPerClick();
localStats.byteCount+=t;
popManager.newPop("btn-addMem","+"+NumUtils.byteConvert(t,2));
},45);
setInterval(function() {
// auto drip
if(parseFloat($('#localProgressBar').css('width'))/parseFloat($('#localProgressBar').parent().css('width')) === 1)
$('#btn-addGlobalMem').click();
// auto buy
if(!$('#pu10').hasClass('disabled'))
$('#pu10').click();
// auto buy 1st powerup
if(!$('#upg1').hasClass('disabled'))
$('#upg1').click();
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment