Mobile View Switcher Firefox

Examine source code of Mobile View Switcher

By: Bernard
Inspect and view changes in Mobile View Switcher source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "version": "0.2.2",
  "manifest_version": 3,
  "name": "Mobile View Switcher",
  "host_permissions": [
    "*://*/*"
  ],
  "homepage_url": "https://mybrowseraddon.com/mobile-view-switcher.html",
  "description": "Switch to mobile view with one click via toolbar button.",
  "options_ui": {
    "open_in_tab": true,
    "page": "data/options/options.html"
  },
  "permissions": [
    "storage",
    "scripting",
    "contextMenus",
    "declarativeNetRequest"
  ],
  "browser_specific_settings": {
    "gecko": {
      "strict_min_version": "109.0",
      "id": "{fa247c57-77ac-41cd-b942-332051e15ced}"
    }
  },
  "background": {
    "scripts": [
      "lib/config.js",
      "lib/chrome.js",
      "lib/runtime.js",
      "lib/netrequest.js",
      "lib/common.js"
    ]
  },
  "commands": {
    "toggle-mobile-view": {
      "description": "Switch to Mobile View",
      "suggested_key": {
        "mac": "Command+Shift+D",
        "default": "Ctrl+Shift+D"
      }
    }
  },
  "action": {
    "default_title": "Mobile View Switcher",
    "default_icon": {
      "16": "data/icons/16.png",
      "32": "data/icons/32.png",
      "48": "data/icons/48.png",
      "64": "data/icons/64.png"
    }
  },
  "content_scripts": [
    {
      "all_frames": true,
      "matches": [
        "*://*/*"
      ],
      "run_at": "document_start",
      "js": [
        "data/content_script/inject.js"
      ]
    }
  ],
  "icons": {
    "16": "data/icons/16.png",
    "32": "data/icons/32.png",
    "48": "data/icons/48.png",
    "64": "data/icons/64.png",
    "128": "data/icons/128.png"
  }
}

Best Mobile View Switcher Alternatives

Here are some Firefox add-ons that are similar to Mobile View Switcher: