北极象沉浸式翻译 - 免费,谷歌,deepl,学术,网页,划词翻译

免费好用,谷歌翻译,deepl,AI,网页翻译,划词翻译,PDF翻译,学术翻译,文档翻译,截图翻译,图片翻译,辞典翻译,在线翻译,中英对照,字幕翻译
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "manifest_version": 2,
  "name": "__MSG_extName2__",
  "description": "__MSG_extDesc__",
  "version": "1.1.6.0",
  "incognito": "spanning",
  "permissions": [
    "contextMenus",
    "tabs",
    "storage",
    "chrome://favicon/*",
    "https://*/",
    "alarms",
    "activeTab",
    "<all_urls>",
    "cookies"
  ],
  "commands": {
    "_execute_browser_action": {
      "suggested_key": {
        "default": "Alt+N"
      }
    },
    "page-translate-or-revert": {
      "description": "__MSG_webpageTranslate__",
      "suggested_key": {
        "default": "Alt+Y"
      }
    },
    "translate": {
      "description": "__MSG_quickTranslate__",
      "suggested_key": {
        "default": "Alt+R"
      }
    },
    "ocr-translate": {
      "description": "__MSG_webScreenshotTranslate__",
      "suggested_key": {
        "default": "Alt+G"
      }
    },
    "hover-slt-word": {
      "description": "__MSG_hoverSltWord__"
    }
  },
  "icons": {
    "16": "icons/16.png",
    "32": "icons/32.png",
    "48": "icons/48.png",
    "64": "icons/64.png",
    "128": "icons/128.png"
  },
  "background": {
    "scripts": [
      "js/background.js"
    ],
    "persistent": true
  },
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*",
        "file://*/*"
      ],
      "all_frames": true,
      "css": [
        "css/cs-external.css",
        "css/translate-theme.css"
      ],
      "js": [
        "js/content-script.js"
      ]
    },
    {
      "matches": [
        "http://*/*",
        "https://*/*",
        "file://*/*"
      ],
      "all_frames": true,
      "js": [
        "js/content-start.js"
      ],
      "run_at": "document_start"
    }
  ],
  "browser_action": {
    "default_popup": "pages/popup.html",
    "default_icon": {
      "16": "icons/16.png",
      "32": "icons/32.png",
      "48": "icons/48.png",
      "64": "icons/64.png",
      "128": "icons/128.png"
    }
  },
  "content_security_policy": "script-src 'self'; object-src 'self'",
  "web_accessible_resources": [
    "images/**",
    "assets/**",
    "js/video-captions/**"
  ],
  "default_locale": "zh_CN",
  "browser_specific_settings": {
    "gecko": {
      "id": "{e373006f-311f-4259-8585-7bb9d3c3f70d}"
    }
  }
}