Modify DOM/Inject scripts

Category
HTTP Rules (Modify Traffic)
API Client
FAQ
File Server
Getting Started
Guides
HTTP Rules (Modify Traffic)
Inspect Traffic
Installation
Mock Server
New Section
Public API
Sessions Replay
Setup
TroubleShooting
Workspace
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Sessions Replay
FAQ
Guides
New Section
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Β URL,Β Host, orΒ PathΒ withΒ Regex,Β Contains,Β Wildcard, 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)

Popular Use Cases

  • Inject popular libraries or hosted scripts or execute custom code-snippet before or after page load using a simple rule builder.
  • Themify Twitter according to you. Remove/hide unwanted sections from the page.
Video preview
Β 
Β