Replace AI Translator API Firefox

Examine source code of Replace AI Translator API

提供元: 1llum1n4t1
Inspect and view changes in Replace AI Translator API source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
  "manifest_version": 3,
  "name": "__MSG_appName__",
  "description": "__MSG_appDescription__",
  "default_locale": "en",
  "version": "1.0.12",
  "browser_specific_settings": {
    "gecko": {
      "id": "{f3a8b1c2-6d4e-4a9f-8b2c-1e7d5a9c3f60}",
      "strict_min_version": "142.0",
      "data_collection_permissions": {
        "required": [
          "websiteContent"
        ]
      }
    }
  },
  "minimum_chrome_version": "116",
  "action": {
    "default_icon": {
      "16": "icons/icon16.png",
      "48": "icons/icon48.png",
      "128": "icons/icon128.png"
    },
    "default_title": "__MSG_defaultTitle__",
    "default_popup": "src/popup/popup.html"
  },
  "icons": {
    "16": "icons/icon16.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "background": {
    "scripts": [
      "src/lib/actions.js",
      "src/lib/lang.js",
      "src/lib/model-pricing.js",
      "src/lib/providers.js",
      "src/lib/stream.js",
      "src/service_worker.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "src/lib/actions.js",
        "src/content/fab.js",
        "src/content/image-translator.js",
        "src/content/selection-translator.js"
      ],
      "css": [
        "src/content/fab.css",
        "src/content/image-translator.css",
        "src/content/selection-translator.css"
      ],
      "run_at": "document_idle"
    }
  ],
  "commands": {
    "translate-selection": {
      "suggested_key": {
        "default": "Ctrl+Shift+L",
        "mac": "Command+Shift+L"
      },
      "description": "__MSG_cmdTranslateSelection__"
    }
  },
  "permissions": [
    "activeTab",
    "storage",
    "scripting",
    "contextMenus"
  ],
  "host_permissions": [
    "<all_urls>"
  ],
  "content_security_policy": {
    "extension_pages": "script-src 'self'; object-src 'self'; base-uri 'self'; frame-ancestors 'none'"
  }
}

ベストのReplace AI Translator API代替案

Replace AI Translator APIに類似したFirefox add-onをいくつか紹介します: