Run Script
Runs Javascript in the current page
Code
Any variable that begins with
$
is automatically exported for use in other commandse.g.
const $meow = 3
Variables are serialized as JSON and thus support the following data types:
Primitives (number, string, boolean)
Arrays
JSON objects
Examples
Replacing Text
Splitting Text
Extracting Page HTML
Execution context
The code is executed in the context of the current page which means that the page's DOM is accessible
Last updated