(script)
| 49 | |
| 50 | /** @returns {VMInjection.RunAt} without "document-" */ |
| 51 | export function getScriptRunAt(script) { |
| 52 | return `${script.custom[RUN_AT] || script.meta[RUN_AT] || ''}`.match(RUN_AT_RE)?.[1] || 'end'; |
| 53 | } |
| 54 | |
| 55 | /** URL that shows the name of the script and opens in devtools sources or in our editor */ |
| 56 | export function getScriptPrettyUrl(script, displayName) { |