Use https://turbowarp.org/490665621 if its to slow.
I'm sure I got the code for this from some other project, but this was MANY years ago, so I just don't know.