JavaScript switcher
Turn JavaScript on or off for a site with the VitalSentinel SEO Extension, from the popup, the right-click menu or the Alt+Shift+Q shortcut, and manage the rules in Settings.
The JavaScript switcher turns JavaScript on or off for a site. Use it to see what a page shows without JavaScript, for example to check what a crawler that does not run JavaScript can read.
The switcher uses the JavaScript setting of the browser. The browser keeps a rule for each site that you change.
Before you start
- The switcher works on
httpandhttpspages only. - After each change, the extension reloads the tab.
- While JavaScript is blocked for the site, the VitalSentinel icon in the toolbar is grey. The tooltip of the icon says "JavaScript blocked".
Turn JavaScript on or off for the current site
Use one of these three ways. Each way changes the rule for the current host only, for example shop.example.com.
- Popup. In the Tools group of the sidebar, use the JavaScript switch.
- Keyboard shortcut. Press
Alt+Shift+Q. - Right-click menu. Right-click the page or the VitalSentinel icon, then select Turn JavaScript on or off for this site.
Manage the rules in Settings
The JavaScript rules section of Settings lists every rule that you made. If there are no rules, it says "No rules yet. JavaScript runs everywhere."
Each rule shows:
| Column | What it shows |
|---|---|
| Pattern | The host, or the domain with [*.] in front of it |
| Applies to | This host only, or Domain and subdomains for a [*.] pattern |
| JavaScript | Blocked or Allowed. Select the other value to change the rule |
| Added | The date when you made the rule |
To remove one rule, click Remove on its row. To remove all rules, click Remove all.
Block JavaScript on a host or a domain
- In Settings, go to the JavaScript rules section.
- Enter a host, for example
shop.example.com. To include all subdomains, enter[*.]example.com. - Click Block JavaScript.
You can also paste a full address. The rule always covers the whole host.
Export the rules
Click Export. The browser downloads the file vitalsentinel-js-rules.json with all your rules.
Incognito windows
A rule that you make in an incognito window stays only until you close the incognito session, as Chrome requires. These rules do not show in the JavaScript rules list.
Change the keyboard shortcut
- In Settings, go to the Keyboard shortcuts section.
- Click Change shortcuts.
- On the shortcuts page of the browser, set a new shortcut for "Turn JavaScript on or off for this site".
Related
- Toolbar badge - the grey icon while JavaScript is blocked
- Crawl and index reports - compare the raw HTML with the rendered page
- Settings - all the settings of the extension
VitalSentinel tab
The VitalSentinel tab of the extension shows the last 90 days of your VitalSentinel data for the page, and adds the page to Page Monitoring with Watch this page.
Toolbar badge and Domain Rating
The VitalSentinel icon in the browser toolbar shows the Domain Rating of the site, can show the Core Web Vitals rating of the page, and turns grey while JavaScript is blocked.