Make a Userscript and Refer the README to It

Tested and works with Greasemonkey, Tampermonkey, and Violentmonkey.
This commit is contained in:
mason1920
2021-02-02 05:25:42 -05:00
parent 9e21fc8586
commit 769f7f18dd
2 changed files with 20 additions and 21 deletions

19
cookie-monster.user.js Normal file
View 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);