Pierstoval
6/10/2017 - 4:30 PM

Chrome snippets

Chrome snippets

var btnCueillir = $('.btnContent').filter(function(i,e){return e.innerText.match('Gather catnip');})[0];
var cueillirInterval = setInterval(function(){btnCueillir.click();}, 1);

var btnBois = $('.btnContent').filter(function(i,e){return e.innerText.match('Refine catnip');})[0];
var cueillirBoisInterval = setInterval(function(){btnBois.click();}, 1000);
(function(d){
    var list=d.querySelectorAll('link');
    for(var i=0, l=list.length;i<l;i++){
        var e=list[i];
        var h=list[i].href;
        list[i].href="";
        list[i].href=h;
    }
})(document);
(function(d, w){
    var loggedInInterval = setInterval(function(){
        var request = new XMLHttpRequest();
        request.open('GET', window.location.href, true);
        request.onload = function() {
              if (this.status === 200) {
                console.info('Seems I\'m still logged in 😃');
              } else {
                console.warn('Not logged in 😣 Server returned '+this.status);
              }
        };
        request.onerror = function() {
            console.warn('Not logged in 😣');
        };
        request.send();
    }, 5000);


    d.body.innerHTML = 'DONT CLOSE';
    d.querySelector('title').innerHTML = 'DONT CLOSE';
    d.body.style.fontSize = '128px';

    w.loggedInInterval = loggedInInterval;

})(document, window);

	for(var i=0;i<3;i++){
		setTimeout(function(){

			// "Voir plus"
			var list1 = document.querySelectorAll('a._5v47.fss');
			if (list1.length) {
				for (var i = 0, l=list1.length;i<l;i++){
					list1[i].click();
				}
			}

			// "{username} a répondu • X réponses"
			var list2 = document.querySelectorAll('a.UFICommentLink');
			if (list2.length) {
				for (var i = 0, l=list2.length;i<l;i++){
					var e = list2[i];
					if (!e.querySelector('.UFIReplySocialSentenceLinkText').innerHTML.match(/Masquer \d+ r.{1,4}ponse/)) {
						e.click();
					}
				}
			}

			// "Voir plus de réponses"
			var list3 = document.querySelectorAll('a.UFIPagerLink');
			if (list3.length) {
				for (var i = 0, l=list3.length;i<l;i++){
					var e = list3[i];
					if (!e) { continue; }
					e.click();
				}
			}
		}, i * 1000);
	}
// Clicks on cookie
if (typeof bigCookieInterval !== 'undefined') {
    clearInterval(bigCookieInterval);
}
bigCookieInterval = setInterval(function(){document.getElementById('bigCookie').click()});

// Clicks on golden cookie anytime one appears
if (typeof goldenCookieInterval !== 'undefined') {
    clearInterval(goldenCookieInterval);
}
goldenCookieInterval = setInterval(function(){e=document.querySelector('.shimmer');if(e){e.click();}}, 1);

// Clicks on any available & affordable building
// productInterval = setInterval(function(){e=document.querySelector('#products .product.unlocked.enabled');if(e){e.click();}}, 1);

// Clicks on any available & affordable crate upgrade
// upgradeInterval = setInterval(function(){e=document.querySelector('#upgrades .crate.upgrade.enabled');if(e){e.click();}}, 1);

// Clicks on a specific building if available
function productClick(id){
    e=document.querySelector('#product'+id+'.unlocked.enabled');
    if(e){e.click();}
}
// productCursorInterval = setInterval(function(){productClick(0);}, 1);
// productGrandmaInterval = setInterval(function(){productClick(1);}, 1);
// productFarmInterval = setInterval(function(){productClick(2);}, 1);
// productMineInterval = setInterval(function(){productClick(3);}, 1);
// productFactoryInterval = setInterval(function(){productClick(4);}, 1);
// productBankInterval = setInterval(function(){productClick(5);}, 1);
// productTempleInterval = setInterval(function(){productClick(6);}, 1);
// productWizardInterval = setInterval(function(){productClick(7);}, 1);
// productShipmentInterval = setInterval(function(){productClick(8);}, 1);
// productAlchemyInterval = setInterval(function(){productClick(9);}, 1);
// productPortalInterval = setInterval(function(){productClick(10);}, 1);
// productTimeMachineInterval = setInterval(function(){productClick(11);}, 1);
// productAntimatterInterval = setInterval(function(){productClick(12);}, 1);
// productPrismInterval = setInterval(function(){productClick(13);}, 1);