Page scripts

Move repeatable debugging logic into page scripts

Run debugging styles, helpers, or lightweight automation by URL and lifecycle without coupling them to request rules.

For Reqix 1.0

First-time permission

Chrome and Edge require explicit user permission before an extension can register user scripts. Reqix checks availability and shows an in-browser guide.

Matching and lifecycle

  • Limit execution with URL conditions.
  • Choose a lifecycle that does not read the DOM too early.
  • Enable scripts individually and review scripts for the current site in Popup.

Execution world

The default isolated world can modify the DOM but cannot directly read the page's own JavaScript variables. Use MAIN world only when direct access to page variables, objects, or functions is required; in MAIN world, the website can also inspect or interfere with the script.

Available API

Reqix.script is a read-only information object for the current script. Reqix.addStyle, Reqix.sleep, and Reqix.ready add styles, wait, and wait for DOMContentLoaded respectively.

Terminal / example
console.log(Reqix.script.name)
Reqix.addStyle('body { outline: 2px solid #6c5ce7; }')
await Reqix.sleep(300)
await Reqix.ready()

Import and export

Import Reqix page-script bundles or supported userscript formats, select individual entries, and review compatibility warnings before saving.