New TongWenTang

New TongWenTang

Convert characters between Chinese Simplified and Chinese Traditional

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "manifest_version": 2,
  "name": "__MSG_MSG_EXT_NAME__",
  "version": "2.2.0",
  "description": "__MSG_MSG_EXT_DESC__",
  "author": "t7yang",
  "homepage_url": "https://github.com/tongwentang/tongwentang-extension",
  "default_locale": "en",
  "icons": {
    "16": "icons/tongwen-icon-16.png",
    "32": "icons/tongwen-icon-32.png",
    "48": "icons/tongwen-icon-48.png",
    "128": "icons/tongwen-icon-128.png"
  },
  "permissions": [
    "contextMenus",
    "downloads",
    "notifications",
    "storage",
    "unlimitedStorage"
  ],
  "optional_permissions": [
    "clipboardWrite",
    "clipboardRead"
  ],
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "<all_urls>"
      ],
      "js": [
        "content.js"
      ],
      "all_frames": true,
      "run_at": "document_idle"
    }
  ],
  "browser_action": {
    "browser_style": true,
    "default_icon": {
      "16": "icons/tongwen-icon-16.png",
      "32": "icons/tongwen-icon-32.png",
      "48": "icons/tongwen-icon-48.png",
      "128": "icons/tongwen-icon-128.png"
    }
  },
  "options_ui": {
    "browser_style": true,
    "open_in_tab": true,
    "page": "options.html"
  },
  "commands": {
    "w_s2t": {
      "description": "__MSG_MSG_WEBPAGE_S2T__",
      "suggested_key": {
        "default": "Shift+Alt+C"
      }
    },
    "w_t2s": {
      "description": "__MSG_MSG_WEBPAGE_T2S__",
      "suggested_key": {
        "default": "Shift+Alt+V"
      }
    },
    "c_s2t": {
      "description": "__MSG_MSG_CONVERT_CLIPBOARD_S2T__",
      "suggested_key": {
        "default": "Shift+Alt+Z"
      }
    },
    "c_t2s": {
      "description": "__MSG_MSG_CONVERT_CLIPBOARD_T2S__",
      "suggested_key": {
        "default": "Shift+Alt+X"
      }
    }
  }
}