mgtv.com extension
A simple browser extension for mgtv.com service.
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version": 2,
"name": "__MSG_appName__",
"short_name": "芒果TV · Chrome插件",
"description": "__MSG_appDesc__",
"version": "1.1.0",
"default_locale": "zh_CN",
"author": "genie88([email protected])",
"omnibox": {
"keyword": "mg"
},
"browser_action": {
"default_icon": "./src/assets/images/icon-29x29.png",
"default_popup": "popup.html"
},
"background": {
"scripts": [
"src/libs/utils.js",
"src/libs/consts.js",
"src/libs/storage.js",
"src/libs/sdHuiCore.js",
"src/libs/tj.js",
"src/libs/badgeIconAnimate.js",
"eventPage.js"
],
"persistent": false
},
"icons": {
"16": "./src/assets/images/icon-29x29.png",
"32": "./src/assets/images/icon-65x65.png",
"48": "./src/assets/images/icon-65x65.png",
"128": "./src/assets/images/icon-175x175.png"
},
"permissions": [
"notifications",
"cookies",
"tabs",
"alarms",
"background",
"contextMenus",
"http://*/*",
"https://*/*"
],
"web_accessible_resources": [
"48.png"
],
"content_security_policy": "script-src 'self' https://*.qq.com https://*.mgtv.com https://*.hunantv.com 'unsafe-eval'; object-src 'self';"
}