Response Modification — Modify DOM/Inject scripts

Getting Started
Installation
Setup
Inspect Traffic
HTTP Rules (Modify Traffic)
Session Book
Mock Server
API Client
File Server
Workspace
Public API
Guides
TroubleShooting
Subscription & Billing
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Guides
Session Book
Subscription & Billing
TroubleShooting
 

Modify DOM/Inject Scripts

Using Insert Scripts Rule, you can make on-the-fly changes to a webpage content. It allows you to automate, scrape & change webpages behaviour without needed to access the page source code.
notion image
 
  1. Source Condition: Source condition is where you set criteria for the rules. You can use URLHost, or Path with RegexContainsWildcard, or Equals to match the source request. Learn more about source conditions here.
  1. Script Language: The specific script language (JS/CSS) that needs to be inserted.
  1. Script Source: Source Code or URL of the script that needs to be inserted.
  1. Script Load Time: When is the script loaded in the webpage. (Before Page Load/After Page Load).
  1. Define Custom Attributes: Enables you to add pre-defined(defer, async etc.) or custom attributes to script tag on insert.

Popular Use Cases

  • Inject popular libraries or hosted scripts or execute custom code-snippet before or after page load using a simple rule builder.
  • Test & demonstrate SaaS applications like website widgets and monitoring scripts on target websites.
Video preview