SEO Extension

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.

View as Markdown

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 http and https pages 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:

ColumnWhat it shows
PatternThe host, or the domain with [*.] in front of it
Applies toThis host only, or Domain and subdomains for a [*.] pattern
JavaScriptBlocked or Allowed. Select the other value to change the rule
AddedThe 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

  1. In Settings, go to the JavaScript rules section.
  2. Enter a host, for example shop.example.com. To include all subdomains, enter [*.]example.com.
  3. 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

  1. In Settings, go to the Keyboard shortcuts section.
  2. Click Change shortcuts.
  3. On the shortcuts page of the browser, set a new shortcut for "Turn JavaScript on or off for this site".

On this page

VitalSentinel

Catch issues before they cost you

Track SEO, performance, and uptime in one place and get alerted the moment something breaks – hours before it hits your traffic.

  • Free plan for 1 domain
  • Set up in minutes
  • No credit card required