2016-03-17 03:33:15 +00:00
|
|
|
{
|
|
|
|
"manifest_version": 2,
|
2019-08-17 23:01:54 +00:00
|
|
|
"name": "Yomichan",
|
2021-09-01 01:49:57 +00:00
|
|
|
"version": "21.8.31.0",
|
2019-10-11 02:49:05 +00:00
|
|
|
"description": "Japanese dictionary with Anki integration",
|
2020-08-09 17:09:06 +00:00
|
|
|
"author": "Alex Yatskov",
|
2020-04-26 20:56:14 +00:00
|
|
|
"icons": {
|
2021-02-13 01:27:43 +00:00
|
|
|
"16": "images/icon16.png",
|
|
|
|
"19": "images/icon19.png",
|
|
|
|
"32": "images/icon32.png",
|
|
|
|
"38": "images/icon38.png",
|
|
|
|
"48": "images/icon48.png",
|
|
|
|
"64": "images/icon64.png",
|
|
|
|
"128": "images/icon128.png"
|
2020-04-26 20:56:14 +00:00
|
|
|
},
|
2017-03-02 04:49:46 +00:00
|
|
|
"browser_action": {
|
2020-04-26 20:56:14 +00:00
|
|
|
"default_icon": {
|
2021-02-13 01:27:43 +00:00
|
|
|
"16": "images/icon16.png",
|
|
|
|
"19": "images/icon19.png",
|
|
|
|
"32": "images/icon32.png",
|
|
|
|
"38": "images/icon38.png",
|
|
|
|
"48": "images/icon48.png",
|
|
|
|
"64": "images/icon64.png",
|
|
|
|
"128": "images/icon128.png"
|
2020-04-26 20:56:14 +00:00
|
|
|
},
|
|
|
|
"default_title": "Yomichan",
|
2021-02-13 04:23:26 +00:00
|
|
|
"default_popup": "action-popup.html"
|
2017-03-02 04:49:46 +00:00
|
|
|
},
|
2019-08-22 23:44:31 +00:00
|
|
|
"background": {
|
2021-02-13 04:03:15 +00:00
|
|
|
"page": "background.html",
|
2019-08-22 23:44:31 +00:00
|
|
|
"persistent": true
|
|
|
|
},
|
2020-08-09 17:09:06 +00:00
|
|
|
"content_scripts": [
|
|
|
|
{
|
2021-08-07 16:40:51 +00:00
|
|
|
"run_at": "document_idle",
|
2020-08-09 17:09:06 +00:00
|
|
|
"matches": [
|
|
|
|
"http://*/*",
|
|
|
|
"https://*/*",
|
|
|
|
"file://*/*"
|
|
|
|
],
|
2021-08-07 16:40:51 +00:00
|
|
|
"match_about_blank": true,
|
|
|
|
"all_frames": true,
|
2020-08-09 17:09:06 +00:00
|
|
|
"js": [
|
2021-02-14 03:52:28 +00:00
|
|
|
"js/core.js",
|
|
|
|
"js/yomichan.js",
|
2021-02-15 01:25:41 +00:00
|
|
|
"js/app/frontend.js",
|
2021-02-14 04:13:53 +00:00
|
|
|
"js/app/popup.js",
|
|
|
|
"js/app/popup-factory.js",
|
|
|
|
"js/app/popup-proxy.js",
|
|
|
|
"js/app/popup-window.js",
|
2021-02-15 01:25:41 +00:00
|
|
|
"js/comm/api.js",
|
|
|
|
"js/comm/cross-frame-api.js",
|
|
|
|
"js/comm/frame-ancestry-handler.js",
|
|
|
|
"js/comm/frame-client.js",
|
|
|
|
"js/comm/frame-offset-forwarder.js",
|
|
|
|
"js/dom/dom-text-scanner.js",
|
|
|
|
"js/dom/document-util.js",
|
|
|
|
"js/dom/text-source-element.js",
|
|
|
|
"js/dom/text-source-range.js",
|
|
|
|
"js/input/hotkey-handler.js",
|
|
|
|
"js/language/text-scanner.js",
|
|
|
|
"js/script/dynamic-loader.js",
|
2021-02-14 04:13:53 +00:00
|
|
|
"js/app/content-script-main.js"
|
2021-08-07 16:40:51 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"run_at": "document_start",
|
|
|
|
"matches": [
|
|
|
|
"http://*/*",
|
|
|
|
"https://*/*",
|
|
|
|
"file://*/*"
|
2020-08-09 17:09:06 +00:00
|
|
|
],
|
|
|
|
"match_about_blank": true,
|
2021-08-07 16:40:51 +00:00
|
|
|
"all_frames": true,
|
|
|
|
"js": [
|
|
|
|
"js/document-start.js"
|
|
|
|
]
|
2020-08-09 17:09:06 +00:00
|
|
|
}
|
|
|
|
],
|
2017-07-10 22:22:19 +00:00
|
|
|
"minimum_chrome_version": "57.0.0.0",
|
2018-12-10 22:23:53 +00:00
|
|
|
"options_ui": {
|
2021-02-13 04:03:15 +00:00
|
|
|
"page": "settings.html",
|
2018-12-10 22:23:53 +00:00
|
|
|
"open_in_tab": true
|
|
|
|
},
|
2020-09-19 01:16:39 +00:00
|
|
|
"sandbox": {
|
|
|
|
"pages": [
|
2021-02-13 04:03:15 +00:00
|
|
|
"template-renderer.html"
|
2020-09-19 01:16:39 +00:00
|
|
|
],
|
2021-07-03 02:12:02 +00:00
|
|
|
"content_security_policy": "sandbox allow-scripts; default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'unsafe-inline'"
|
2020-09-19 01:16:39 +00:00
|
|
|
},
|
2016-12-29 17:36:54 +00:00
|
|
|
"permissions": [
|
2017-02-26 19:49:37 +00:00
|
|
|
"<all_urls>",
|
2017-04-01 04:48:10 +00:00
|
|
|
"storage",
|
2019-10-15 23:41:39 +00:00
|
|
|
"clipboardWrite",
|
2019-11-03 03:08:57 +00:00
|
|
|
"unlimitedStorage",
|
2020-08-02 22:58:19 +00:00
|
|
|
"webRequest",
|
|
|
|
"webRequestBlocking"
|
2016-12-29 17:36:54 +00:00
|
|
|
],
|
2019-10-26 22:51:18 +00:00
|
|
|
"optional_permissions": [
|
2021-02-08 22:52:41 +00:00
|
|
|
"clipboardRead",
|
|
|
|
"nativeMessaging"
|
2019-10-26 22:51:18 +00:00
|
|
|
],
|
2017-03-18 20:00:29 +00:00
|
|
|
"commands": {
|
2021-01-16 16:33:34 +00:00
|
|
|
"toggleTextScanning": {
|
2017-03-18 20:00:29 +00:00
|
|
|
"suggested_key": {
|
|
|
|
"default": "Alt+Delete"
|
|
|
|
},
|
2021-01-16 16:33:34 +00:00
|
|
|
"description": "Toggle text scanning on/off"
|
2017-03-18 20:00:29 +00:00
|
|
|
},
|
2021-01-18 19:22:48 +00:00
|
|
|
"openInfoPage": {
|
|
|
|
"description": "Open the info page"
|
2021-01-16 16:33:34 +00:00
|
|
|
},
|
|
|
|
"openSettingsPage": {
|
|
|
|
"description": "Open the settings page"
|
|
|
|
},
|
|
|
|
"openSearchPage": {
|
2017-03-18 20:00:29 +00:00
|
|
|
"suggested_key": {
|
|
|
|
"default": "Alt+Insert"
|
|
|
|
},
|
2021-01-16 16:33:34 +00:00
|
|
|
"description": "Open the search page"
|
|
|
|
},
|
|
|
|
"openPopupWindow": {
|
|
|
|
"description": "Open the popup window"
|
2017-03-18 20:00:29 +00:00
|
|
|
}
|
|
|
|
},
|
2020-08-09 17:09:06 +00:00
|
|
|
"web_accessible_resources": [
|
2021-02-13 04:23:26 +00:00
|
|
|
"popup.html",
|
2021-02-13 04:03:15 +00:00
|
|
|
"template-renderer.html"
|
2020-08-09 17:09:06 +00:00
|
|
|
],
|
2021-03-14 22:41:15 +00:00
|
|
|
"content_security_policy": "default-src 'self'; img-src blob: 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *"
|
2016-03-17 03:33:15 +00:00
|
|
|
}
|