Skip to content

Commit

Permalink
fix: 2 trailing spaces = br, +typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed May 23, 2024
1 parent 2fa991b commit 44f2f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/api/metadata-block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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*<br>
Allows closing the tab via `window.close()`

* `// @grant window.focus`

*Since VM2.12.10*
*Since VM2.12.10*<br>
Allows focusing the tab via `window.focus()` even if the user didn't interact with it first.
### @inject-into
Expand Down

0 comments on commit 44f2f46

Please sign in to comment.