Closed lesderid closed 6 years ago
I'm not sure if this is possible with a user script?
Edit: It is possible, with unsafeWindow
.
Fixed in https://github.com/lesderid/saliens-hack/commit/f54c1dc303fc0cbee64f6df1501285f3fd192eb0, but it seems to always sometimes cause a GameLoadError when the window is not in focus when the battle ends and the score is sent (or on another request, I'm not sure).
Edit: The GameLoadErrors actually don't seem to be more frequent than without the patch, so it's probably just due to high server load.
A new battle won't load in the background. This could possibly be fixed with:
window.requestAnimationFrame = c => { setTimeout(c, 1000 / 60); };