YouSub Firefox

Examine source code of YouSub

By: Masaru
Inspect and view changes in YouSub source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "YouSub",
  "version": "0.2.2",
  "description": "Real-time subtitle translator for YouTube",
  "permissions": [
    "storage",
    "activeTab"
  ],
  "host_permissions": [
    "*://*.youtube.com/*",
    "https://api.groq.com/*",
    "https://api.openai.com/*",
    "https://api.anthropic.com/*",
    "https://generativelanguage.googleapis.com/*",
    "https://api.deepseek.com/*",
    "https://api.x.ai/*",
    "https://api.mistral.ai/*",
    "https://openrouter.ai/*",
    "https://translate.googleapis.com/*"
  ],
  "optional_host_permissions": [
    "http://localhost/*",
    "http://127.0.0.1/*"
  ],
  "background": {
    "scripts": [
      "src/background/service-worker.js"
    ],
    "type": "module"
  },
  "content_scripts": [
    {
      "matches": [
        "*://*.youtube.com/*"
      ],
      "js": [
        "src/content/loader.js"
      ],
      "css": [
        "src/content/overlay.css"
      ],
      "run_at": "document_idle"
    }
  ],
  "action": {
    "default_popup": "src/popup/popup.html",
    "default_icon": {
      "16": "assets/icons/icon16.png",
      "19": "assets/icons/icon19.png",
      "32": "assets/icons/icon32.png",
      "38": "assets/icons/icon38.png",
      "48": "assets/icons/icon48.png",
      "128": "assets/icons/icon128.png"
    }
  },
  "options_page": "src/options/options.html",
  "icons": {
    "16": "assets/icons/icon16.png",
    "19": "assets/icons/icon19.png",
    "32": "assets/icons/icon32.png",
    "38": "assets/icons/icon38.png",
    "48": "assets/icons/icon48.png",
    "128": "assets/icons/icon128.png"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "src/shared/libs/browser-polyfill.js",
        "src/shared/constants.js",
        "src/shared/logger.js",
        "src/shared/trusted-types.js",
        "src/shared/providers-registry.js",
        "src/shared/utils.js",
        "src/content/page-detector.js",
        "src/content/video-binder.js",
        "src/content/subtitle-extractor.js",
        "src/content/subtitle-parser.js",
        "src/content/overlay.js",
        "src/content/sync-engine.js",
        "src/content/main.js",
        "src/content/main-world-extractor.js",
        "src/content/main-world-fetcher.js"
      ],
      "matches": [
        "*://*.youtube.com/*"
      ]
    }
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "yousub@xinh.tools",
      "strict_min_version": "128.0",
      "data_collection_permissions": {
        "required": [
          "none"
        ]
      }
    }
  }
}

Best YouSub Alternatives

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