Added a folder MaDo/TemplaterScripts and configured it in Templater → Options. Added some user scripts into this folders, but Templater says “No user scripts found”, which turns out to be because my script file got the secondary extension of .md…
This kind of works, it seems after adding js as an extension. However, I’m not able to make new files with just the .js extension. So some tinkering in the command prompt is still needed, alas.
So I then renamed my script file, outside of Obsidian, and of course it disappeared within the file explorer of Obsidian. But now it appears as a proper user script function.
What I’m trying to do
So after some further testing, and sadly not too much response in this thread, I found that using Plaintext for Obsidian, is doing the trick for now. I’m missing a proper syntax highlighting directly from the plugin, but I’ve commented on a feature request regarding that, so hopefully it’ll come.