New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox 57 / Greasemonkey 4 userscript #153
Comments
Hmm, interesting. Do you know if it works fine with other browsers with your changes like Google Chrome? |
It works in Chrome / Tampermonkey if I remove the line |
Thanks for the research. I'll take a look if there is another way instead of using |
I've been using the following script successfully-- window.eval appears to be the recommended way to run code inside the security context of the page, instead of greasemonkey's context var code = "(" + (function() {
var checkReady = setInterval(function() {
if (typeof Game.ready !== 'undefined' && Game.ready) {
Game.LoadMod('http://aktanusa.github.io/CookieMonster/CookieMonster.js');
clearInterval(checkReady);
}
}, 1000);
}).toString() + ")()";
window.eval(code); |
Thanks! I'll will probably use that instead of |
…r the suggestion with the use of unsafeWindow but I rather use @cpeter256 version with window.eval instead.
Fixed in version 2.0045.1 |
* Add TLS to HTTP links Please use HTTPS wherever it is supported. It is just good practise, you know. This follows up commit 98924bc. * Update README to use HTTPS instead of HTTP HTTPS is good to push for wherever possible, even if the Cookie Clicker site itself does not support it now. (cherry picked from commit 98924bc) * Fixed Issues CookieMonsterTeam#153 and CookieMonsterTeam#158. Thanks to @Pantalaim0n and @CrackedP0t for the suggestion with the use of unsafeWindow but I rather use @cpeter256 version with window.eval instead. * Change to Version 2.0045.1 * Forgot CookieMonster.js again... * Fix for Version 2.0045 of Cookie Clicker (Issue CookieMonsterTeam#161) * Fixed typo, which ended in a bug * Format the line better and also fixed the source file that was fixed in Issue CookieMonsterTeam#166 * Undo some of the merge changes that was unwanted * Fix brainfart undo https
The Greasemonkey userscript stopped working for me today after upgrading to firefox 57 (Quantum) / Greasemonkey 4
I made some changes to get it to work again:
The
Game
object is undefined, but with the prefixunsafeWindow
it works again.The text was updated successfully, but these errors were encountered: