So - sorry, I am new to putting scripts into IDM :-P - do I put all the functions (and the replacement variable definitions) into a single ECMAscript? Or separate ones for the various pieces? And do I define those variables at the top of the whole thing (if one piece) or just before the piece that uses them? Not super familiar with the syntax/format of these scripts yet.
Thank you so much for this! When I started looking into it, I saw you can get into a world of hurt.