Scripts
Automate profiles with Scripts.
Scripts run your own JavaScript or Python Playwright code inside AliasMode. Pick the profiles, start the run, and watch the live log. AliasMode opens each profile, runs the script, and moves to the next one.
Direct answer
AliasMode Scripts runs JavaScript or Python Playwright code on selected browser profiles, one profile at a time. The Windows app includes Node.js, Python, and Playwright, so you install nothing extra. Scripts work on AliasMode Firefox and Chromium profiles.
Requirements
- AliasMode 0.1.0-beta.50 or newer
- At least one browser profile
- Cloud sign-in only to publish scripts
Write a script
Open Scripts in the dashboard and create a script. A JavaScript script exports a default async function. A Python script defines an async run function. AliasMode passes the open browser, context, page, profile, inputs, credentials, and a log function.
export default async function ({ page, profile, log }) {
await page.goto('https://example.com');
log(profile.name, await page.title());
}async def run(page, profile, log, **_):
await page.goto('https://example.com')
log(profile['name'], await page.title())Run on many profiles
Select profiles
Pick one profile, several profiles, or a whole folder.
Add inputs
Pass optional inputs. Turn on credentials to give each profile its saved username, password, email, and 2FA secret.
Start the run
AliasMode runs the script on each profile in turn and streams the log. Stop the run at any time.
The public Script Library
Browse community scripts on the website or in the app, read the source, and import a private copy. Signed-in Cloud users can publish and unpublish their own scripts.
Firefox and Chromium profiles
Scripts use Playwright, so the same script can run on AliasMode Firefox and Chromium profiles. Chromium profiles also support Playwright over CDP through the Local API.