MediaSwift Firefox

Examine source code of MediaSwift

By: zs
Inspect and view changes in MediaSwift source codes across current and past versions
Vidego icon
Looking to download videos? Try the universal video downloader:
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "__MSG_manifest_name__",
  "description": "__MSG_manifest_description__",
  "version": "0.0.2",
  "icons": {
    "16": "icons/16.png",
    "32": "icons/32.png",
    "48": "icons/48.png",
    "128": "icons/128.png"
  },
  "default_locale": "en",
  "permissions": [
    "storage",
    "activeTab",
    "downloads",
    "downloads.open",
    "declarativeNetRequest",
    "contextMenus"
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "media-swift@zscumt123.top"
    }
  },
  "host_permissions": [
    "*://*.googlevideo.com/*",
    "*://*.x.com/*",
    "*://*.twitter.com/*",
    "*://*.twimg.com/*",
    "*://*.tiktok.com/*",
    "*://*.douyinvod.com/*",
    "*://*.douyinstatic.com/*",
    "*://*.fbcdn.net/*",
    "*://*.youtube.com/watch*",
    "*://*.tiktok.com/@*/video/*",
    "*://*.tiktok.com/embed/*",
    "*://*.douyin.com/video/*",
    "*://*.twitter.com/*/status/*",
    "*://*.x.com/*/status/*",
    "*://*.facebook.com/watch*",
    "*://*.facebook.com/*/videos/*",
    "*://*.facebook.com/*/posts/*",
    "*://*.facebook.com/groups/*/permalink/*",
    "*://*.facebook.com/events/*",
    "*://*.facebook.com/reel/*"
  ],
  "declarative_net_request": {
    "rule_resources": [
      {
        "id": "1",
        "enabled": true,
        "path": "rules/index.json"
      }
    ]
  },
  "web_accessible_resources": [
    {
      "resources": [
        "dy-hook.js"
      ],
      "matches": [
        "*://*.douyin.com/*"
      ]
    }
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
  },
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "action": {
    "default_title": "media-ext",
    "default_popup": "popup.html"
  },
  "options_ui": {
    "open_in_tab": true,
    "page": "options.html"
  },
  "content_scripts": [
    {
      "matches": [
        "*://*.douyin.com/*"
      ],
      "run_at": "document_start",
      "js": [
        "content-scripts/douyin.js"
      ]
    },
    {
      "matches": [
        "*://*.facebook.com/*"
      ],
      "run_at": "document_idle",
      "js": [
        "content-scripts/facebook.js"
      ]
    },
    {
      "matches": [
        "*://*.tiktok.com/*"
      ],
      "run_at": "document_end",
      "js": [
        "content-scripts/tiktok.js"
      ]
    },
    {
      "matches": [
        "*://*.twitter.com/*",
        "*://*.x.com/*"
      ],
      "run_at": "document_idle",
      "js": [
        "content-scripts/twitter.js"
      ]
    },
    {
      "matches": [
        "*://*.youtube.com/*"
      ],
      "js": [
        "content-scripts/youtube.js"
      ]
    }
  ]
}

Best MediaSwift Alternatives

Here are some Firefox add-ons that are similar to MediaSwift: