A Chrome browser extension for injecting scripts based on the browser url.
- Download the extension here, https://github.com/fanplayr/chrome-script-injector/archive/master.zip.
- Extract the zip file.
- Navigate to chrome://extensions in Chrome.
- Ensure the Developer mode option is checked.
- Click the Load unpacked extension button.
- Browse to the folder that was created when you extracted the zip file and click Select.
The extension should now be installed.
- On any webpage, right-click and select Fanplayr > Script Injector.
- Click the New Rule button at the bottom to define a new rule.
- Enter the website's domain, url or pattern to match against.
- Enter the customer's domain, for example
*fanplayr.com*to have this rule run on any page on http://www.fanplayr.com.
- Enter the customer's domain, for example
- Enter the script's url or content.
- Click Save Changes.
- Enable the rule you just added.
The script should be automatically injected into the url you defined the next time you visit it.
- Open the extension options by right-clicking any page and selecting Fanplayr > Script Injector.
- Click Backup / Restore Settings.
- Copy the JSON text and store it in a safe location.
- Open the extension options by right-clicking any page and selecting Fanplayr > Script Injector.
- Click Backup / Restore Settings.
- Paste the JSON text you previously saved into the text area.
- Click Restore.