Using the Same Helpers across Different Pages
- Last updated on June 1, 2021 at 11:28 PM
If you want to use the same helper on different pages or URLs, you can use a regular expression to target it.
As a basic example, let's say you wanted to attach a helper to an element that exists on each of the following pages:
- https://website.com/gold-user/account
- https://website.com/pro-user/account
The regular expression to use would be (.*) and the URL to use for your helper would therefore be https://website.com/(.*)/account
Much more powerful rules can be created using regular expressions. If you're looking for something a little more custom, you can use this tool to help create your rule. When you get a rule that matches what you want, just copy and paste the rule it into the URL field.