Created
December 7, 2017 17:14
-
-
Save zackbcom/a1e6fe3b84c6157724b3b7638fb44833 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name linearKittens | |
// @namespace https://github.com/dwhalen/linearKittens | |
// @version 6.6.6 | |
// @description Launch linearKittens and start | |
// @include *bloodrizer.ru/games/kittens/* | |
// ==/UserScript== | |
var loadTest = function() { | |
if (typeof gamePage === 'undefined') { | |
// Test if kittens game is already loaded or wait 2s and try again | |
setTimeout(function(){ | |
loadTest(); | |
}, 2000); | |
} else { | |
var script = document.createElement('script'); | |
script.id = 'linearKittens-script'; | |
script.src = 'https://rawgit.com/dwhalen/linearKittens/master/linearKittens.js'; | |
document.body.appendChild(script); | |
setTimeout(function(){ | |
startLinearKittens(); | |
}, 3000); | |
} | |
}; | |
loadTest(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment