forked from Darkroman/FrozenCookies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fc_userscript_loader.user.js
24 lines (21 loc) · 1.1 KB
/
fc_userscript_loader.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ==UserScript==
// @name Frozen Cookies
// @version github-latest
// @description Userscript to load Frozen Cookies written by Icehawk78, forked by Lordshinjo
// @author Lordshinjo
// @homepage https://github.com/Mtarnuhal/FrozenCookies
// @include http://orteil.dashnet.org/cookieclicker/
// @updateURL https://mtarnuhal.github.io/FrozenCookies/fc_userscript_loader.user.js
// @downloadURL https://mtarnuhal.github.io/FrozenCookies/fc_userscript_loader.user.js
// @run-at document-start
// ==/UserScript==
// Dev: https://github.com/Mtarnuhal/FrozenCookies/development/
// Master: https://github.com/Mtarnuhal/FrozenCookies/master/
// Github.io: http://lordshinjo.github.io/FrozenCookies/
function LoadFrozenCookies() {
Game.LoadMod('https://darkroman.github.io/FrozenCookies/frozen_cookies.js');
}
window.addEventListener("load", LoadFrozenCookies, false);
// It's not the best way but Chrome doesn't work with addEventListener... :(
// Delay load by 5 seconds to allow the site to load itself first.)
window.setTimeout(LoadFrozenCookies, 5000);