NOTE: The code breaks if fencing is disabled in TurboWarp, etc., as it relies on a very tiny sprite stopping at the edges to determine the resolution. Just be aware if you wish to use any or all of it. Why use boring old loops in custom blocks you'll miss if you blink when you can do it in one fell swoop? This is the resolution detector to end 'em all, people!
I'd seen QuezixT's TurboWarp Stage Size Detector (https://turbowarp.org/529796090) use Infinity, but not like this, which for me meant creating a hacked block. I was hoping NaN would work, since that's technically smaller, but nope. P.S. Scratch Everywhere! has a bug where the edges of the canvas are 10 pixels narrower on both axes, so I've added a check for that, even though it might break at some point, in which case I may add a selector menu to support older versions. Just wanted to keep it as small as possible for now.