Обсуждения » Обсуждение сайта Greasy Fork镜像

Violentmonkey has support top-level-await

§
Создано: 11.06.2025
Изменено: 11.06.2025

GreasyFork donot support update userscripts to this feature:

Metadata Block - Violentmonkey https://violentmonkey.github.io/api/metadata-block/#top-level-await

Since VM2.19.2.

Enables top-level await in your script. Useful when the rest of your script’s code depends on some external event e.g. when waiting for an element using MutationObserver or fetching data from network.

Avoid using it to import dependencies that should always run; prefer using @require and @resource.
Can’t be used with @unwrap.

Ответить

Войдите, чтобы ответить.

长期地址
遇到问题?请前往 GitHub 提 Issues。