Skip to main content
Version: v0.2.x

Your first script

This quick example runs a basic "Hello World" script with Page Proxy.

Hello World

import { pa } from "@page-proxy/pp";

// Imports, metadata, etc...

pa.notification("Hello World");

When this script runs, Page Proxy logs the message and shows an in-page notification.

console.log works too, but there isn't an in-page notification. You'll have to open the browser console, which is too much work for a lazy person like me.

You can pass multiple values too! For example

pa.notification("Hello", { page: location.href });

And it will have an object viewer.