forked from Icehawk78/FrozenCookies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fc_userscript_loader.js
20 lines (19 loc) · 971 Bytes
/
fc_userscript_loader.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ==UserScript==
// @name Frozen Cookies
// @version github-latest
// @description Userscript to load Frozen Cookies written by Icehawk78
// @author shinji257
// @homepage https://github.com/Icehawk78/FrozenCookies
// @include http://orteil.dashnet.org/cookieclicker/
// @updateURL https://raw.github.com/Icehawk78/FrozenCookies/master/fc_userscript_loader.js
// @downloadURL https://raw.github.com/Icehawk78/FrozenCookies/master/fc_userscript_loader.js
// ==/UserScript==
function LoadFrozenCookies() {
var js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', 'https://raw.github.com/Icehawk78/FrozenCookies/master/frozen_cookies.js');
document.head.appendChild(js);
}
// It's not the best way but Chrome doesn't work with addEventListener... :(
// Delay load by 2 seconds to allow the site to load itself first.)
window.setTimeout(LoadFrozenCookies, 2000);