Skip to content

GM.setValue

shen yin edited this page Dec 12, 2021 · 1 revision

Permanently stores a value under a key. (async)

Availability

Stay 2.0+

Declaration

GM.setValue(key, value)

Parameters

key
A string.

key
A javascript object.

Return Value

Promise

Example

GM.setValue("name","stay")

await GM.setValue("name","stay")
Clone this wiki locally