Scroll to the bottom of the page and wait 2 seconds.
Click a button.
Below you can find a helpful tool that makes Base64 encoding for you.
Please, enter your JS code you'd like to run after the page load:
The following result can be inserted in the API request as Base64 encoded JS snippet: