Make a Userscript and Refer the README to It
Tested and works with Greasemonkey, Tampermonkey, and Violentmonkey.
This commit is contained in:
19
cookie-monster.user.js
Normal file
19
cookie-monster.user.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// ==UserScript==
|
||||
// @name Cookie Monster
|
||||
// @include /https?://orteil.dashnet.org/cookieclicker/
|
||||
// ==/UserScript==
|
||||
|
||||
const readyCheck = setInterval(() => {
|
||||
const Game = unsafeWindow.Game;
|
||||
|
||||
if (
|
||||
typeof Game !== "undefined" &&
|
||||
typeof Game.ready !== "undefined" &&
|
||||
Game.ready
|
||||
) {
|
||||
Game.LoadMod(
|
||||
"https://aktanusa.github.io/CookieMonster/CookieMonster.js"
|
||||
);
|
||||
clearInterval(readyCheck);
|
||||
}
|
||||
}, 1000);
|
||||
Reference in New Issue
Block a user