Can't run any script: Preload is not defined
When trying to run any script I get the following error:
Script error in [Greasemonkey script Pokeclicker Scripts/[Pokeclicker] Simple Weather Changer; version 1.3]:
ReferenceError: Preload is not defined [[Pokeclicker] Simple Weather Changer:130:19](user-script:Pokeclicker%20Scripts/%5BPokeclicker%5D%20Simple%20Weather%20Changer)
<anonymous> user-script:Pokeclicker Scripts/[Pokeclicker] Simple Weather Changer:130
I installed them on firefox 102.0.1 with the one-click install method (using GreaseMonkey 4.11).
Interesting, I haven't looked into GreaseMonkey specifically yet, or have anyone report any known issues previously. However, I would have and see the same issue when testing just now briefly. Good news is that I'll likely will want to look for making all the scripts compatible just for this, even though TamperMonkey and ViolentMonkey both have known, and full support covered for them currently.
This will help give me a reason to add the icon field to all the scripts at once too, which has been bugging me quite a bit, so yeah.
Update: I've tried playing around with GreaseMonkey, and I figured that it isn't worth my time and the headache that comes along with implementing support for it. So, this isn't going to be something that I will personally do.
There's needing to use unsafeWindow for GreaseMonkey, and even at that, not everything residing inside the game resides in window that the scripts reference (for variables, functions, etc.). The first roadblock is already at Preload, and I already know after that will be the entire App class in its entirety. So, even if you got the scripts to initially load, a lot would still be broken.
TamperMonkey and ViolentMonkey, don't really have this issue with needing to resort to using things like unsafeWindow, or anything else complicated and they both handle gaining access to the entire scope of a page relatively seamlessly.
If someone wants to go through the effort to want to provide support for GreaseMonkey for these scripts and is a lot more knowledgeable with it and its technical limitations and how to work around them, then by all means.