Getting Started

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.

Demo Video

https://youtu.be/4dvucRjLwGY

How to create an insert script rule?

https://docs.requestly.io/img/docs/annotated-script-rule.png

  1. Source Condition: Source condition is where you set criteria for which requests will match the. You can use URLHost or Path with RegexContainsWildcard or Equals to match the source request. Learn more about source conditions here.
  2. Script Language: The specific script language (JS/CSS) that needs to be inserted.
  3. Script Source: Source Code or URL of the script that needs to be inserted.
  4. Script Load Time: When is the script loaded in the webpage. (Before Page Load/After Page Load)

Testing rule

To test if the rule is properly configured or not, use the Test this Rule feature at the bottom of the Rule Editor. This can help you verify if the rule is working on the URL you want or not. Click here to know more about this feature.

Screenshot 2024-05-09 at 1.39.56 AM.png

Popular use cases