Steps to Test the Banner in the Browser Console (Without VPN) Using Script Overrides
1. Open the Website
- Launch your browser and navigate to the website where the Osano banner is implemented.
2. Open Developer Tools and Network Tab
- Open Developer Tools in your browser:
-
- Windows/Linux: Press F12 or Ctrl + Shift + I.
- Mac: Press Cmd + Option + I.
-
- Click on the Network tab.
3. Locate and Open osano.js in a New Tab
- In the Network tab, use the search/filter bar and type osano.js to find the script. Right-click on osano.js and select “Open in New Tab”.
4. Modify the URL to Override Language and Variant
- In the new tab, modify the URL by appending the following parameters at the end:
?language=XX&variant=#
- Replace XX with the desired language code (e.g., en, es, fr, de).
- Replace # with the specific variant number (e.g., one, two three, six) you want to test.
- Press Enter to reload the page with the modified script.
5. Copy the Updated osano.js Code
- Once the modified osano.js script loads, select all the text (Ctrl + A / Cmd + A) and copy it (Ctrl + C / Cmd + C)
6. Override the Response in Developer Tools
- Option 1: Manually Run the Script in the Console
-
- Open the Console tab in Developer Tools.
- Paste the copied osano.js code into the console.
- Press Enter to execute it.
- The Osano banner should now load with the modified language and variant settings.
-
- Option 2: Override the Original osano.js Response
-
- Go back to the Network tab in Developer Tools.
- Locate osano.js in the list of network requests.
- Right-click osano.js and select “Override Content” (or “Edit and Resend” in some browsers).
- A text editor will open—delete the existing content and paste the copied osano.js code.
- Save the changes (Ctrl + S / Cmd + S).
- Reload the page (Ctrl + R / Cmd + R) to apply the overridden script.
-