Fixed userscript section on README

This commit is contained in:
Aktanusa
2014-08-16 16:48:29 -04:00
parent a7e2b2cf35
commit f9ac7aa549

View File

@@ -73,9 +73,14 @@ If you'd rather use the addon as a script via per example *Greasemonkey* or *Tam
// @grant none
// ==/UserScript==
(function () {
Game.LoadMod('http://aktanusa.github.io/CookieMonster/CookieMonster.js');
}());
javascript:(function() {
var checkReady = setInterval(function() {
if (Game.ready != undefined && Game.ready) {
Game.LoadMod('http://aktanusa.github.io/CookieMonster/CookieMonster.js');
clearInterval(checkReady);
}
}, 1000);
}());</pre>
```
# Bugs and suggestions