Script Switch

Script Switch

Quickly enable or disable javascript for all tabs and windows with a convenient button and keyboard shortcut.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "manifest_version": 2,
  "name": "Script Switch",
  "version": "1.1",
  "description": "A simple Firefox extension providing a toggle switch and keyboard shortcut to quickly enable or disable javascript for all tabs.",
  "permissions": [
    "webRequest",
    "webRequestBlocking",
    "<all_urls>"
  ],
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "content.js"
      ],
      "all_frames": true
    }
  ],
  "icons": {
    "48": "icons/on.png",
    "96": "icons/on.png"
  },
  "browser_action": {
    "default_icon": "icons/on.png",
    "default_title": "JS Enabled"
  },
  "commands": {
    "toggle": {
      "suggested_key": {
        "default": "Alt+J"
      },
      "description": "Toggle enable or disable JS"
    }
  }
}