Since ubot devs looks like have no plan on implementing this. Here's a workaround on how to collapse all nodes when you open your bot.
ui stat monitor("", "<script type=\"text/javascript\">
window.setTimeout(function() \{ ubot.runScript(\'collapseAllNodes()\') \}, 500)
</script>")
define collapseAllNodes {
set(#botTitle, "testing", "Global")
divider
plugin command("WindowsCommands.dll", "set active window", "{#botTitle}* - UBot Studio Developer Edition", "")
plugin command("WindowsCommands.dll", "keyboard event", "Alt", "Key Down")
plugin command("WindowsCo