This few-line script was supposed to be something like that – a starting point for your own extensions. I could only hope you’d be involved enough to develop it into something perfectly suited to your needs.
If you can automate repetitive tasks, that's what Sigil scripts are for