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?
- Source Condition: Source condition is where you set criteria for which requests will match the. You can use
URL
, Host
or Path with Regex
, Contains
, Wildcard
or Equals to match the source request
. Learn more about source conditions here.
- Script Language: The specific script language (JS/CSS) that needs to be inserted.
- Script Source: Source Code or URL of the script that needs to be inserted.
- 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.
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.