Search
K

runOnTab

runOnTab supports opening new windows, automating existing tabs, and sending input parameters. The 4th parameter is a json which is available in the "options" variable in the new tab.
runOnTab("WEBSITE","SCRIPT NAME",TIMEOUT ,{id:-1, newWindow:false, data: "test"})
Parameters:
WEBSITE: The target website
SCRIPT NAME: The name of a script that must exist in your Cheat Layer script list.
TIMEOUT: How long to allow the new tab to stay open. Default is 30 seconds
Options json: Includes the ID, whether to open a new window, and any extra input parameters.
runOnTab supports opening new windows, automating existing tabs, and sending input parameters. The 4th parameter is a json which is available in the "options" variable in the new tab.
To access the passed in variable(s) use options e.g: alert(options)
This is the correct way to send data to new tabs in the latest version which supports callbacks: runOnTab('https://google.com','alert(JSON.stringify(options));',10,{row:'test'}); runOnTab now has an optional callback parameter.