User scripts are executed in an isolated context with a basic JavaScript environment, excluding global context (window, global) and network interaction (XMLHttpRequest and fetch).
Currently, you can only use scripts to fill out and edit forms in the web interface.
Script launching and field value calculation time out after five seconds. If your code runs longer than that, the script will be stopped.