diff --git a/content/api/metadata-block.md b/content/api/metadata-block.md index c2d6a317..587c6680 100644 --- a/content/api/metadata-block.md +++ b/content/api/metadata-block.md @@ -151,7 +151,7 @@ Several values can be set for `@run-at`: - `document-idle` - The userscript executes after `DOMContentLoaded` is fired asynchronously, i.e. after yielding to the previously scheduled callbacks or urgent tasks like rendering. Prefer this mode for scripts that take more than a couple of milliseconds to compile and run (you can see it devtools performance profiler), so that they don't delay the moment the page becomes usable. + The userscript executes after `DOMContentLoaded` is fired asynchronously, i.e. after yielding to the previously scheduled callbacks or urgent tasks like rendering. Prefer this mode for scripts that take more than a couple of milliseconds to compile and run (you can see it in devtools performance profiler), so that they don't delay the moment the page becomes usable. When using `document-start` in Violentmonkey ManifestV2 there's a limited method of ensuring the userscript runs before other scripts in the page: @@ -204,12 +204,12 @@ In addition to [GM API](../gm/) the following privileges may be granted: * `// @grant window.close` - *Since VM2.6.2* + *Since VM2.6.2*
Allows closing the tab via `window.close()` * `// @grant window.focus` - *Since VM2.12.10* + *Since VM2.12.10*
Allows focusing the tab via `window.focus()` even if the user didn't interact with it first. ### @inject-into