YumCha: Learn Cantonese Firefox

Examine source code of YumCha: Learn Cantonese

Inspect and view changes in YumCha: Learn Cantonese source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "YumCha: Learn Cantonese",
  "version": "0.1.0",
  "description": "Learn Cantonese on any page. Jyutping, Yale, and English from the YumCha Cantonese app. Free, no account needed.",
  "homepage_url": "https://www.yumcha.fun/cantonese-chrome-extension",
  "action": {
    "default_popup": "popup/index.html",
    "default_title": "YumCha"
  },
  "options_ui": {
    "page": "options/index.html",
    "open_in_tab": true
  },
  "background": {
    "scripts": [
      "background.js"
    ],
    "type": "module"
  },
  "omnibox": {
    "keyword": "yc"
  },
  "permissions": [
    "storage",
    "contextMenus",
    "activeTab",
    "downloads"
  ],
  "host_permissions": [
    "https://www.yumcha.fun/*",
    "https://yumcha.fun/*",
    "https://yumcha-core-backend-production.up.railway.app/*"
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
  },
  "web_accessible_resources": [
    {
      "resources": [
        "lexicon.json",
        "simp-map.json",
        "brand/text-plus-icon-logo.png"
      ],
      "matches": [
        "http://*/*",
        "https://*/*"
      ]
    }
  ],
  "commands": {
    "toggle-annotation": {
      "suggested_key": {
        "default": "Alt+Shift+J"
      },
      "description": "Toggle Jyutping on this page"
    },
    "lookup-selection": {
      "suggested_key": {
        "default": "Alt+Shift+L"
      },
      "description": "Look up the selected text"
    },
    "play-audio": {
      "description": "Play audio for the selection"
    },
    "save-word": {
      "description": "Save the selected word"
    }
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "exclude_matches": [
        "https://www.yumcha.fun/extension/auth*",
        "https://yumcha.fun/extension/auth*"
      ],
      "js": [
        "content.js"
      ],
      "run_at": "document_idle"
    },
    {
      "matches": [
        "https://www.yumcha.fun/extension/auth*",
        "https://yumcha.fun/extension/auth*"
      ],
      "js": [
        "auth-bridge.js"
      ],
      "run_at": "document_idle"
    }
  ],
  "icons": {
    "16": "icons/icon-16.png",
    "48": "icons/icon-48.png",
    "128": "icons/icon-128.png"
  },
  "sidebar_action": {
    "default_title": "YumCha",
    "default_panel": "sidepanel/index.html",
    "default_icon": {
      "16": "icons/icon-16.png",
      "48": "icons/icon-48.png",
      "128": "icons/icon-128.png"
    }
  },
  "browser_specific_settings": {
    "gecko": {
      "id": "extension@yumcha.fun",
      "strict_min_version": "140.0",
      "data_collection_permissions": {
        "required": [
          "websiteContent"
        ],
        "optional": [
          "authenticationInfo"
        ]
      }
    }
  }
}

Best YumCha: Learn Cantonese Alternatives

Here are some Firefox add-ons that are similar to YumCha: Learn Cantonese: