In this article, we'll show you how to record a login script and use it to show sign-in protected web pages on your screens.
- What You'll Need and How It Works
- Record Your Script
- Create a Web Scripting Asset
- Show It on Your Screens
- How Your Script Is Protected
- Troubleshooting and Frequently Asked Questions
The Web Scripting app signs in to a website for your screens and opens the page you want to show, with no coding.
What You'll Need
- An OptiSigns account on the Pro Plus Plan or higher.
- The Chrome browser on your computer, to record your script with the Burp Suite recorder extension.
- The username and password for the website you want to show. If the site uses two-factor authentication (2FA), you'll also need access to its authenticator setup.
NOTE |
| Web Scripting is not supported on Samsung SSSP smart TVs, LG webOS smart TVs or Apple TV devices. |
How It Works
You record yourself signing in to the website once, using a free browser extension. The recording is your script. You paste it into a Web Scripting asset in OptiSigns, and your screens replay it to sign in and open the right page every time the asset plays.
OptiSigns encrypts the script, including any username and password in it, as soon as it leaves your browser. It is decrypted only on the screen, right before the fields are filled in. For an extra layer of protection, you can also lock it with your own Master Password.
Record Your Script
We use the Burp Suite recorder extension from PortSwigger in this article. Other tools work too, as long as they produce a similar script.
Install the Recorder
Open Chrome and go to the Chrome Web Store. Search for PortSwigger's Burp Suite recorder extension, now listed as Login Recorder for Burp Suite, and click it in the results.
Click Add to Chrome.
Chrome confirms that the extension has been added, and its icon appears in the toolbar.
Click the recorder icon in the toolbar, then click Open settings to finish the setup.
Scroll down and turn on Allow in Incognito, then close the settings tab.
Record Your Sign-In
Click the recorder icon again and click Start recording. An Incognito window opens.
In the Incognito window, enter the URL of the page you want to show on your screens. Fill in the sign-in form, for example your username and password, and click the sign-in button.
IMPORTANT |
| A few habits prevent most problems later. Always start with the URL of the page you want to display, and let the website redirect you to its sign-in page. Click the Login button instead of pressing Enter. Type slowly and get every field right the first time, without Backspace or the arrow keys. If you make a mistake, start the recording again. |
After you sign in, you can click around, open a specific page or scroll to the part you want to show. When you're done, click the recorder icon and click Stop recording. The Incognito window closes.
Back in your normal Chrome window, click the recorder icon and click Copy to clipboard. Your script is now ready to paste into OptiSigns.
If Your Sign-In Uses 2FA
If the website asks for a code from an authenticator app, you'll need the 2FA Secret Key as well as the script.
While you set up the authenticator for the account, click the option to enter a key instead of scanning the QR code. On this example site it is I Can't Scan the QR Code.
The site shows the Secret Key. Copy it and keep it for later, then finish the 2FA setup.
Then record your script as described in Record Your Sign-In. When you finish, you should have the recorded script, the 2FA Secret Key and a 2FA code from your authenticator.
Create a Web Scripting Asset
Sign in to OptiSigns. Click Files/Assets, then click Apps.
Search for Web Scripting and click the Web Scripting app.
Fill in the Web Scripting form.
- Name - The name of the asset in your Files/Assets list. It is not shown on your screens.
- Master Password - Optional. Tick the box to lock the script with a password of your own, on top of OptiSigns' encryption. A password field appears next to the box. If you use one, you'll need to enter it once on each screen, and when you open the asset to edit it.
- Recorded Script - Paste the script you copied from the recorder. The script is easy to read, so you can make small changes to it if you need to.
- Scripts Injection - Optional. JavaScript of your own to run on the page. This field only appears on accounts where script injection is turned on.
- Block third-party cookies - Turn this on to block third-party cookies on the website.
- Secret 2FA - The Secret Key from the 2FA setup. Only needed if your sign-in uses 2FA.
- Recorded 2FA Code - The 2FA code you used while recording. Together with the Secret Key, it lets the asset keep signing in with 2FA.
- Delay Execute 2FA JavaScript - How many seconds to wait before entering the 2FA code. The default is 5, and the minimum is 1.
- Delay Execute JavaScript - How many seconds to wait before running the script on the page. The default is 10, and the minimum is 1.
Click Save. Save stays unavailable until both Name and Recorded Script are filled in.
Show It on Your Screens
Once it's saved, your Web Scripting asset works like any other asset. Assign it directly to a screen, or add it to a playlist, a schedule or a Split Screen zone.
If you didn't set a Master Password, there's nothing else to do. Your screens decrypt the script with OptiSigns' private key and run it.
If you set a Master Password, enter it once on each screen that plays the asset. One entry is enough for every Web Scripting asset that uses the same Master Password.
How Your Script Is Protected
When anyone other than the person who created a Web Scripting asset opens it, the sensitive fields are hidden and the form shows Sensitive fields are hidden. Use Override to replace. They can't read the script. To change Recorded Script or Scripts Injection, they have to click Override and paste a new one.
If the asset uses a Master Password, its creator also has to enter the Master Password before the script is shown.
Your script is encrypted in your browser, travels over HTTPS to OptiSigns' servers and is stored there encrypted. It is then sent securely to your screens and decrypted on the screen right before it runs on the website.
Troubleshooting
Here are a few of the more common issues our customers may face when using the Web Scripting app, and how to solve them.
The Screen Shows the Sign-In Page Instead of My Page
Record the script again. Start the recording from the URL of the page you want to show, click the Login button instead of pressing Enter, and type every field correctly the first time. If the site takes a while to load, raise Delay Execute JavaScript.
The 2FA Code Is Not Accepted
Check that Secret 2FA holds the Secret Key from the site's authenticator setup, not a one-time code, and that Recorded 2FA Code holds the code you used while recording. If the 2FA page loads slowly, raise Delay Execute 2FA JavaScript.
I Can't Click Save
Name and Recorded Script are required. If you ticked Master Password, enter a password too.
I Don't See the Scripts Injection Field
Scripts Injection only appears on accounts where it is turned on. Contact our support team if you need it.
I Don't See the Web Scripting App
Web Scripting is available on the Pro Plus Plan or higher. Check your plan, or contact our support team.
Contact Support
Visit the OptiSigns Help Center or contact support@optisigns.com for additional help with the Web Scripting app.