Copy moments.js code > make into .js file > make folder for scripts > add script to folder (both drag n drop and moving the script to the folder) > add folder to user script folder location in templater (script is detected) > make macro config in quickadd > create macro in quickadd > run on command palette > never ending “no command selected” error.
I’ve tried that on both mobile (android) and desktop (linux), a general guide on how to install js scripts in appreciated, thank you in advance.
Thanks, a fork of zettels is one i wanted to install (now works perfectly), but for moments i now get “format.replace is not a function”. Did the same steps as zettels, didn’t change the code or anything either.
You can run javascript from dataviewjs scripts, code blocks in Templater templates, user script from QuickAdd, and some more dedicated javascript plugins like CustomJS, Code Emitter, JS Init, JS Engine, just to mention a few (in no particular order).