Script Injections

Injections enable JavaScript to run at key points during the page load process to modify behavior, resolve issues, or improve compatibility.

onPageStarted: Triggered when the page begins loading. Common uses include injecting meta tags, clearing storage, or applying early patches for known issues

onPageCommitVisible: Triggered when content begins to render. Common uses include modifying the DOM, swapping styles, or applying device-specific adjustments before content becomes visible.

onPageFinished: Triggered when the page is fully loaded. Common uses include executing custom scripts, triggering analytics, or injecting enhancements that rely on the complete layout.

urlContentsEditor: Allows pages to be dynamically examined and contents changed prior to being processed by the browser.

Notes

  • The injection of custom tags, scripts, or styles varies based on the specific environment and project objectives.
  • The editor checks for basic JSON syntax only and does not debug the code entered.
  • The editor saves all injection content into 'profiles.json' as a string; matching the format of existing injection sections.
  • Once finished editing, tap the 'Export' button at the top right of the screen.

For assistance, a StayLinked representative is available to help.

Updated on September 8, 2025

Related Articles