// ==UserScript==
// @name Cookie Clicker Add-Ons
// @namespace Cookie
// @include https://orteil.dashnet.org/cookieclicker/
// @version 0.0.1
// @grant none
// ==/UserScript==
(function() {
const mods = [
'https://aktanusa.github.io/CookieMonster/CookieMonster.js',
'https://bitbucket.org/Acharvak/cookie-clicker-agronomicon/downloads/Agronomicon.js',
]
function tryLoadMods(delay_ms) {
if(typeof window.Game !== undefined && window.Game.ready) {
console.log('Loading mods!')
mods.forEach(window.Game.LoadMod)
} else {
console.log('Game not ready, trying again in ' + delay_ms/1000 + ' seconds...')
// exponential backoff
setTimeout(() => tryLoadMods(delay_ms * 2), delay_ms)
}
}
setTimeout(() => tryLoadMods(200), 1000)
})()
Comments
0 B
|👍
/👎