Mouse Tooltip Translator

Mouse Tooltip Translator

Mouse Tooltip Translator translate mouseover text using google translate. Support OCR, TTS, manga translator & pdf translator.

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 3,
  "version": "0.1.142",
  "name": "__MSG_appName__",
  "description": "__MSG_appDesc__",
  "default_locale": "en",
  "icons": {
    "16": "icons/icon_16.png",
    "32": "icons/icon_32.png",
    "48": "icons/icon_48.png",
    "128": "icons/icon_128.png"
  },
  "content_security_policy": {
    "extension_pages": "script-src 'self' 'wasm-unsafe-eval' ;  object-src 'none'"
  },
  "permissions": [
    "storage",
    "tts",
    "tabs",
    "scripting",
    "contextMenus",
    "offscreen",
    "search"
  ],
  "host_permissions": [
    "<all_urls>"
  ],
  "web_accessible_resources": [
    {
      "resources": [
        "pdfjs/web/viewer.html",
        "ocr.html",
        "opencvHandler.html",
        "googleDocInject.js",
        "subtitle.js"
      ],
      "matches": [
        "<all_urls>"
      ],
      "use_dynamic_url": true
    }
  ],
  "sandbox": {
    "pages": [
      "opencvHandler.html"
    ]
  },
  "commands": {
    "copy-translated-text": {
      "suggested_key": {
        "default": "Ctrl+Shift+1"
      },
      "description": "Copy Translated Text"
    },
    "save-translation": {
      "suggested_key": {
        "default": "Ctrl+Shift+2"
      },
      "description": "Save Translation"
    }
  },
  "omnibox": {
    "keyword": "/"
  },
  "content_scripts": [
    {
      "js": [
        "contentScript.js"
      ],
      "css": [
        "tippy.css"
      ],
      "run_at": "document_start",
      "all_frames": true,
      "matches": [
        "<all_urls>"
      ],
      "match_about_blank": true
    }
  ],
  "background": {
    "service_worker": "background.js"
  },
  "action": {
    "default_title": "Mouse Tooltip Translator",
    "default_popup": "popup.html"
  },
  "options_ui": {
    "open_in_tab": true,
    "page": "popup.html"
  }
}