puggan icon

CookieClicker.user.js

puggan | PRO | 05/01/21 08:53:36 PM UTC | 0 ⭐ | 1507 👁️ | Never ⏰ | []
JavaScript |

1.14 KB

|

None

|

0 👍

/

0 👎

// ==UserScript==
// @name     Cookie Clicker Auto
// @version  1
// @include  https://orteil.dashnet.org/cookieclicker/
// @grant    none
// ==/UserScript==
 
console.log('GM loadings');
(() => {
    var checkReady = setInterval(() => {
        if (typeof Game.ready !== 'undefined' && Game.ready) {
            console.log('Loading tools');
            Game.LoadMod('https://aktanusa.github.io/CookieMonster/CookieMonster.js');
            clearInterval(checkReady);
            let goldClicker = () => {for(let s of Game.shimmers) if (s.type === 'golden') s.pop();};
            window.puggan = {
                clickInterval: setInterval(Game.ClickCookie, 20),
                // goldenInterval = setInterval(() => Game.shimmers.forEach((shimmer) => { if (shimmer.type == "golden") { shimmer.pop() } }), 500),
                goldenInterval: setInterval(goldClicker, 500),
            };
            let ssrs = document.styleSheets[2].cssRules;
            for(let ssr of ssrs) if(ssr.selectorText === '.storeSection') ssr.style.height = 'auto';
            console.log(window.puggan);
        }
    }, 1000);
})();
console.log('GM loaded');
 

Comments