欢迎光临
我们一直在努力

Tampermonkey 油候脚本官方开发文档

Defines the moment the script is injected. In opposition to other script handlers, @run-at defines the first possible moment a script wants to run. This means it may happen, that a script that uses the @require tag may be executed after the document is already loaded, cause fetching the required script took that long. Anyhow, all DOMNodeInserted and DOMContentLoaded events that happended after the given
injection moment are cached and delivered to the script when it is injected.

 // @run-at document-start

The script will be injected as fast as possible.

The script will be injected if the body element exists.

The script will be injected when or after the DOMContentLoaded event was dispatched.

The script will be injected after the DOMContentLoaded event was dispatched. This is the default value if no @run-at tag is given.

The script will be injected if it is clicked at the browser context menu (desktop Chrome-based browsers only). Note: all @include and @exclude statements will be ignored if this value is used, but this may change in the future.

赞(0)
未经允许不得转载:拆东墙 » Tampermonkey 油候脚本官方开发文档

评论 抢沙发

登录

找回密码

注册