YouTube Comment Translator
A browser extension that easily translates YouTube comments, supports multiple languages, bilingual comparison, comment export,…
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"name": "__MSG_extension_name__",
"description": "__MSG_extension_description__",
"version": "4.2",
"icons": {
"16": "./static/img/icons/icon_128_default.png",
"32": "./static/img/icons/icon_128_default.png",
"64": "./static/img/icons/icon_128_default.png",
"128": "./static/img/icons/icon_128_default.png"
},
"manifest_version": 2,
"background": {
"scripts": [
"./background.js",
"./common-chunk.js"
]
},
"default_locale": "zh_CN",
"browser_action": {
"default_popup": "./popup.html"
},
"content_scripts": [
{
"all_frames": true,
"js": [
"./contentScriptsSubtitle.js"
],
"matches": [
"https://*.youtube.com/*"
],
"run_at": "document_start"
},
{
"all_frames": true,
"js": [
"./static/libs/jquery-3.6.0.min.js",
"./static/libs/art-dialog.js",
"./contentScripts.js",
"./common-chunk.js"
],
"matches": [
"https://denghao.me/*",
"https://*.youtube.com/*"
],
"run_at": "document_end"
}
],
"web_accessible_resources": [
"/assets/img/*",
"/static/img/*",
"/subtitle.js",
"/static/libs/hook.js",
"/common-chunk.js"
],
"options_ui": {
"chrome_style": false,
"open_in_tab": true,
"page": "./options.html"
},
"permissions": [
"http://*/*",
"https://*/*",
"background",
"storage",
"tabs",
"tabCapture",
"webRequest",
"webRequestBlocking"
],
"content_security_policy": "script-src 'self' https://www.google-analytics.com https://www.googletagmanager.com 'unsafe-eval'; object-src 'self'"
}