Optional
imageOptional
onclickCallback when the notification is clicked by user.
Optional
ondoneCallback when the notification is closed, either by user or by system.
Optional
silentNo sounds/vibrations when showing the notification.
VM2.15.2, Chrome 70.
Optional
tagUnique name of the notification, e.g. 'abc', same as the web Notification API.
Names are scoped to each userscript i.e. your tag won't clash with another script's tag.
The purpose of a tagged notification is to replace an older notification with the same tag,
even if it was shown in another tab (or before this tab was navigated elsewhere
and your notification had zombieTimeout
).
VM2.15.4
Main text of the notification.
Optional
titleTitle of the notification.
Optional
zombieNumber of milliseconds to keep the notification after the userscript "dies", i.e. when its tab or frame is reloaded/closed/navigated. If not specified or invalid, the default behavior is to immediately remove the notifications.
VM2.15.4
Optional
zombieURL to open when a zombie notification is clicked, see zombieTimeout
for more info.
VM2.16.1
URL of an image to show in the notification.