Skip to content

Commit 9e3390c

Browse files
committed
doc: new grantless behavior
1 parent d6a157a commit 9e3390c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/pages/api/metadata-block.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ When present, the script will execute only in top level document, but not in nes
180180

181181
Specify which special APIs should be granted and can be used when the script executes.
182182

183-
If no `@grant` is present, `@grant none` is assumed.
183+
* If no `@grant` is present, the script is sandboxed with minimum API access: `GM_info`, `GM.info`, and `unsafeWindow` necessary to modify globals of the webpage. Note that this behavior was only introduced in Violentmonkey 2.32.0 to improve compatibility and match Tampermonkey, whereas previously `@grant none` was assumed.
184184

185185
* In case you don't need special API or sandboxing
186186

0 commit comments

Comments
 (0)