$brush-3 $AMP\'s-5\
$Block-3 $Collection-3\
$\(probably\)-0.8 $the $best $blocks $of $all $time!::motion ring
This is a collection of useful blocks such as:
(keys being pressed::#1600FF)
set cursor to [default V]::#1600FF
<JavaScript enabled?::#1600FF>
Some of them are not made by me (most of them are tho, and a lot of them previously used code by me that was modified by someone else), see their help dialog to see who made them.
You can download these blocks by exporting them from the project here.
i'm looking for feedback on this.
btw the link was updated to another file host so trolls can't take it down and it takes longer to expire (downloading it resets expiry).
Yeah, in general we're not happy about links to code hosted elsewhere, especially not code with Javascript in it. I'm sure this particular one is benign, but it just makes life a little harder for moderators.
try running the set cursor to [default V]::#1600FF block. it detects JS to choose whether your workaround should be used or mine (yours requires a library that causes the block to take a bit longer to load), but your workaround doesn't run even though i have the entire code in the block.
i closely copied from your JS detection script by hand (simply exporting it and getting the code just gave me the old code).
ok so the thing is, the set cursor block only takes slightly longer on the first try, then is literally the same speed for everything other time. the amount of time it takes to detect if JS is enabled adds up, and it means that it is actually faster to always use the not js method, since it means you dont always have to check for js.
on a side note i removed the option to set the cursor to "none" because people can end up forgetting where their cursor is. i'll probably add a failsafe to stop people from doing set cursor to (join [none] @delInput @addInput)::#1600FF.
hint: right click on the set cursor block when it is in the editor or palette and select help
I am against adding a failsafe because one thing snap does that I really like is preventing you from doing things they dont want, but still letting you do them if you really want to.