Obsidian++ Cookbook - 𝕏 - YouTube - Official Docs
Plugin REPL allows you to automate Obsidian with a minimal amount of code. You can execute this code immediate as well as putting it in your startup file.
To execute code immediately, select the region of code you want to fun and then run the command Plugin REPL: Execute the current line or selection from the command palette.
You will probably end up wanting to define a hotkey for this command. I use CTRL-J
I am not affiliated with Obsidian. I am the author of plugin repl