Copy to clipboard
Copy contents to the clipboard.
Input
- ValueString
The value you want to copy.
Delete from Local Storage
Delete a value from local storage (if found) based on the provided key.
Input
- KeyString
The key in local storage to delete.
Delete from Session Storage
Delete a value from session storage (if found) based on the provided key.
Input
- KeyString
The key in session storage to delete.
Focus
Move focus to a DOM element.
Input
- ElementElement
The DOM element that should receive focus.
Go to URL
Navigate to a specified URL.
Input
- URLString
The URL to navigate to.
Interval
Run an action every "delay" milliseconds.
Input
- Interval in millisecondsNumber
The interval "delay".
Log to console
Log a message to the browser console.
Input
- Label
A label for the message.
- DataAny
The data you want to log to the console.
Save to Local Storage
Save a provided key/value to local storage by JSON encoding the value.
Input
- KeyString
The key to be used in local storage.
- ValueAny
The value that should be saved in local storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).
Save to Session Storage
Save a provided key/value to session storage by JSON encoding the value.
Input
- KeyString
The key to be used in session storage.
- ValueAny
The value that should be saved in session storage. This can be anything that is serializable (String, Number, Boolean, Array or Object).
Set Cookie
Save a key/value pair as a non-http-only cookie (readable on the client). Useful for storing user preferences.
Input
- NameString
The name of the cookie.
- ValueString
The value to be stored in the cookie.
- Expires inNumber
(Optional) Time in seconds until the cookie expires. If this is null, the cookie will expire at the end of the user's session.
- SameSiteString
(Optional) The SameSite attribute of the cookie. Defaults to Lax.
- PathString
(Optional) The Path attribute of the cookie. Defaults to /.
- Include SubdomainsBoolean
(Optional) Whether to include subdomains when setting the cookie. Defaults to true.
Set Http-Only Cookie
Save a key/value pair as an Http-Only cookie. Useful for storing JWTs or other tokens.
Input
- NameString
The name of the cookie.
- ValueString
The value to be stored in the cookie.
- Expires inNumber
(Optional) Time in seconds until the cookie expires. This should be null for JWTs to use the JWT's expiration. If not provided, the cookie will be a session cookie.
- SameSiteString
(Optional) The SameSite attribute of the cookie. Defaults to Lax.
- PathString
(Optional) The Path attribute of the cookie. Defaults to /.
- Include SubdomainsBoolean
(Optional) Whether to include subdomains when setting the cookie. Defaults to true.
Set session cookies
Save authentication tokens as session cookies.
Input
- Access tokenString
Access tokens are the most common way to authenticate with a server.
- Expires inNumber
(Optional) Time in seconds until the token expires. Defaults to 3600 (1 hour). This should be left blank for JWTs.
Share
Share data with title, text, and/or URL using the Navigator.share API.
Input
- URLString
The URL to share.
- TitleString
The title to share.
- TextString
The text to share.
Sleep
Run an action after a delay.
Input
- Delay in millisecondsNumber
The number of milliseconds to wait before an action is executed.