diff --git a/package.json b/package.json index f8c3309..ef30572 100644 --- a/package.json +++ b/package.json @@ -1,98 +1,98 @@ { - "name": "bilibili-helper-master", - "version": "1.2.13-beta.2", - "description": "bilibili-helper", - "main": "index.js", - "dependencies": { - "color": "^3.0.0", - "fetch-progress": "^1.2.0", - "ffmpeg.js": "^3.1.9001", - "history": "^4.7.2", - "jquery": "^3.4.0", - "lodash": "^4.17.10", - "md5": "^2.2.1", - "mobx": "^5.0.3", - "mobx-react": "^5.2.3", - "mobx-react-router": "^4.0.4", - "moment": "^2.22.2", - "npm": "^6.6.0", - "ocrad.js": "0.0.1", - "ocradjs-browser.js": "^1.0.2", - "prop-types": "^15.6.2", - "react": "^16.4.1", - "react-dom": "^16.4.1", - "react-router": "^4.3.1", - "react-transition-group": "^1.2.1", - "react-virtualized": "^9.21.0", - "store": "^2.0.12", - "styled-components": "^4.1.2", - "systemjs": "^2.1.1", - "url-parse": "^1.4.3" - }, - "devDependencies": { - "babel-core": "^6.26.3", - "babel-eslint": "^10.0.1", - "babel-loader": "^7.1.4", - "babel-plugin-add-module-exports": "^0.2.1", - "babel-plugin-import": "^1.6.5", - "babel-plugin-lodash": "^3.3.2", - "babel-plugin-styled-components": "^1.4.0", - "babel-plugin-syntax-dynamic-import": "^6.18.0", - "babel-plugin-transform-builtin-classes": "^0.6.1", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-plugin-transform-decorators": "^6.24.1", - "babel-plugin-transform-decorators-legacy": "^1.3.5", - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", - "babel-plugin-transform-es2015-modules-umd": "^6.24.1", - "babel-plugin-transform-es3-member-expression-literals": "^6.22.0", - "babel-plugin-transform-es3-property-literals": "^6.22.0", - "babel-plugin-transform-function-bind": "^6.22.0", - "babel-plugin-transform-object-assign": "^6.22.0", - "babel-plugin-transform-object-rest-spread": "^6.26.0", - "babel-plugin-transform-react-jsx": "^6.24.1", - "babel-plugin-transform-runtime": "^6.23.0", - "babel-polyfill": "^6.26.0", - "babel-preset-env": "^1.7.0", - "babel-preset-es2015": "^6.24.1", - "babel-preset-react": "^6.24.1", - "babel-preset-stage-0": "^6.24.1", - "clean-webpack-plugin": "^0.1.19", - "concurrently": "^4.1.0", - "copy-webpack-plugin": "^4.5.1", - "css-loader": "^2.1.0", - "cssnano": "^4.0.3", - "eslint": "^5.9.0", - "eslint-loader": "^2.1.1", - "eslint-plugin-react": "^7.11.1", - "html-webpack-plugin": "^4.0.0-alpha", - "json-loader": "^0.5.7", - "load-grunt-tasks": "^3.5.2", - "merge-jsons-webpack-plugin": "^1.0.18", - "mini-css-extract-plugin": "^0.4.0", - "node-sass": "^4.9.0", - "optimize-css-assets-webpack-plugin": "^5.0.0", - "react-hot-loader": "^4.3.3", - "sass-loader": "^7.0.3", - "style-loader": "^0.21.0", - "uglifyjs-webpack-plugin": "^1.2.7", - "webpack": "^4.10.2", - "webpack-bundle-analyzer": "^3.1.0", - "webpack-cli": "^3.0.3", - "webpack-dev-server": "^3.1.4", - "write-json-webpack-plugin": "^1.1.0", - "zip-webpack-plugin": "^3.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-beta.49" - }, - "scripts": { - "grunt": "grunt", - "watch": "webpack --env.DEBUG=true --config=webpack.config.development.js --watch --progress", - "build": "webpack --production --progress", - "build:test": "webpack --env.DEBUG=true --production --progress" - }, - "author": "zacyu & drowsyflesh", - "license": "MIT", - "repository": "https://github.com/zacyu/bilibili-helper", - "readme": "/source/README.md" + "name": "bilibili-helper-master", + "version": "1.2.13", + "description": "bilibili-helper", + "main": "index.js", + "dependencies": { + "color": "^3.0.0", + "fetch-progress": "^1.2.0", + "ffmpeg.js": "^3.1.9001", + "history": "^4.7.2", + "jquery": "^3.4.0", + "lodash": "^4.17.10", + "md5": "^2.2.1", + "mobx": "^5.0.3", + "mobx-react": "^5.2.3", + "mobx-react-router": "^4.0.4", + "moment": "^2.22.2", + "npm": "^6.6.0", + "ocrad.js": "0.0.1", + "ocradjs-browser.js": "^1.0.2", + "prop-types": "^15.6.2", + "react": "^16.4.1", + "react-dom": "^16.4.1", + "react-router": "^4.3.1", + "react-transition-group": "^1.2.1", + "react-virtualized": "^9.21.0", + "store": "^2.0.12", + "styled-components": "^4.1.2", + "systemjs": "^2.1.1", + "url-parse": "^1.4.3" + }, + "devDependencies": { + "babel-core": "^6.26.3", + "babel-eslint": "^10.0.1", + "babel-loader": "^7.1.4", + "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-import": "^1.6.5", + "babel-plugin-lodash": "^3.3.2", + "babel-plugin-styled-components": "^1.4.0", + "babel-plugin-syntax-dynamic-import": "^6.18.0", + "babel-plugin-transform-builtin-classes": "^0.6.1", + "babel-plugin-transform-class-properties": "^6.24.1", + "babel-plugin-transform-decorators": "^6.24.1", + "babel-plugin-transform-decorators-legacy": "^1.3.5", + "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", + "babel-plugin-transform-es2015-modules-umd": "^6.24.1", + "babel-plugin-transform-es3-member-expression-literals": "^6.22.0", + "babel-plugin-transform-es3-property-literals": "^6.22.0", + "babel-plugin-transform-function-bind": "^6.22.0", + "babel-plugin-transform-object-assign": "^6.22.0", + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-plugin-transform-react-jsx": "^6.24.1", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-polyfill": "^6.26.0", + "babel-preset-env": "^1.7.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react": "^6.24.1", + "babel-preset-stage-0": "^6.24.1", + "clean-webpack-plugin": "^0.1.19", + "concurrently": "^4.1.0", + "copy-webpack-plugin": "^4.5.1", + "css-loader": "^2.1.0", + "cssnano": "^4.0.3", + "eslint": "^5.9.0", + "eslint-loader": "^2.1.1", + "eslint-plugin-react": "^7.11.1", + "html-webpack-plugin": "^4.0.0-alpha", + "json-loader": "^0.5.7", + "load-grunt-tasks": "^3.5.2", + "merge-jsons-webpack-plugin": "^1.0.18", + "mini-css-extract-plugin": "^0.4.0", + "node-sass": "^4.9.0", + "optimize-css-assets-webpack-plugin": "^5.0.0", + "react-hot-loader": "^4.3.3", + "sass-loader": "^7.0.3", + "style-loader": "^0.21.0", + "uglifyjs-webpack-plugin": "^1.2.7", + "webpack": "^4.10.2", + "webpack-bundle-analyzer": "^3.1.0", + "webpack-cli": "^3.0.3", + "webpack-dev-server": "^3.1.4", + "write-json-webpack-plugin": "^1.1.0", + "zip-webpack-plugin": "^3.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-beta.49" + }, + "scripts": { + "grunt": "grunt", + "watch": "webpack --env.DEBUG=true --config=webpack.config.development.js --watch --progress", + "build": "webpack --production --progress", + "build:test": "webpack --env.DEBUG=true --production --progress" + }, + "author": "zacyu & drowsyflesh", + "license": "MIT", + "repository": "https://github.com/zacyu/bilibili-helper", + "readme": "/source/README.md" } \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index 492a6c3..cde75da 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,173 +1,173 @@ { - "version": "1.2.13.2", - "update_url": "https://clients2.google.com/service/update2/crx", - "manifest_version": 2, - "minimum_chrome_version": "56.0.0", - "name": "__MSG_extensionName__", - "short_name": "__MSG_extensionShortName__", - "default_locale": "zh_CN", - "description": "__MSG_extensionDescription__", - "options_ui": { - "page": "config.html", - "open_in_tab": true + "version": "1.2.13", + "update_url": "https://clients2.google.com/service/update2/crx", + "manifest_version": 2, + "minimum_chrome_version": "56.0.0", + "name": "__MSG_extensionName__", + "short_name": "__MSG_extensionShortName__", + "default_locale": "zh_CN", + "description": "__MSG_extensionDescription__", + "options_ui": { + "page": "config.html", + "open_in_tab": true + }, + "options_page": "config.html", + "background": { + "scripts": [ + "vendors.bundle.js", + "features.bundle.js", + "background.js" + ], + "persistent": true + }, + "browser_action": { + "default_icon": { + "19": "statics/imgs/bilibili-cat-256.png", + "38": "statics/imgs/bilibili-cat-256.png" }, - "options_page": "config.html", - "background": { - "scripts": [ - "vendors.bundle.js", - "features.bundle.js", - "background.js" - ], - "persistent": true + "default_popup": "popup.html", + "default_title": "__MSG_extensionShortName__" + }, + "content_scripts": [ + { + "all_frames": false, + "js": [ + "video.js", + "vendors.bundle.js", + "features.bundle.js" + ], + "css": [ + "styles/vendors.css", + "styles/features.css" + ], + "matches": [ + "*://*.bilibili.com/bangumi/play/ss*", + "*://*.bilibili.com/bangumi/play/ep*", + "*://*.bilibili.com/video/av*", + "*://www.bilibili.com/watchlater/*", + "*://www.bilibili.com/medialist/*" + ], + "run_at": "document_end" }, - "browser_action": { - "default_icon": { - "19": "statics/imgs/bilibili-cat-256.png", - "38": "statics/imgs/bilibili-cat-256.png" - }, - "default_popup": "popup.html", - "default_title": "__MSG_extensionShortName__" + { + "all_frames": true, + "js": [ + "vendors.bundle.js", + "live.js", + "statics/js/ocrad.min.js", + "features.bundle.js" + ], + "matches": [ + "*://live.bilibili.com/*" + ], + "run_at": "document_end" }, - "content_scripts": [ - { - "all_frames": false, - "js": [ - "video.js", - "vendors.bundle.js", - "features.bundle.js" - ], - "css": [ - "styles/vendors.css", - "styles/features.css" - ], - "matches": [ - "*://*.bilibili.com/bangumi/play/ss*", - "*://*.bilibili.com/bangumi/play/ep*", - "*://*.bilibili.com/video/av*", - "*://www.bilibili.com/watchlater/*", - "*://www.bilibili.com/medialist/*" - ], - "run_at": "document_end" - }, - { - "all_frames": true, - "js": [ - "vendors.bundle.js", - "live.js", - "statics/js/ocrad.min.js", - "features.bundle.js" - ], - "matches": [ - "*://live.bilibili.com/*" - ], - "run_at": "document_end" - }, - { - "all_frames": false, - "js": [ - "vendors.bundle.js", - "website.js", - "features.bundle.js" - ], - "matches": [ - "*://localhost/*", - "*://helper.drowsyflesh.com/*", - "*://bilibili-helper.github.io/*" - ], - "run_at": "document_start" - }, - { - "all_frames": false, - "js": [ - "vendors.bundle.js", - "cv.js", - "features.bundle.js" - ], - "css": [ - "styles/vendors.css", - "styles/features.css" - ], - "matches": [ - "*://www.bilibili.com/read/cv*" - ], - "run_at": "document_end" - }, - { - "all_frames": false, - "js": [ - "vendors.bundle.js", - "tbilibili.js", - "features.bundle.js" - ], - "css": [ - "styles/vendors.css", - "styles/features.css" - ], - "matches": [ - "*://t.bilibili.com/*" - ], - "run_at": "document_end" - }, - { - "all_frames": false, - "js": [ - "vendors.bundle.js", - "videoList.js", - "features.bundle.js" - ], - "css": [ - "styles/vendors.css", - "styles/features.css" - ], - "matches": [ - "*://space.bilibili.com/*/favlist*" - ], - "run_at": "document_end" - }, - { - "all_frames": false, - "js": [ - "vendors.bundle.js", - "vipPrivilege.js", - "features.bundle.js" - ], - "css": [ - "styles/vendors.css", - "styles/features.css" - ], - "matches": [ - "*://*.bilibili.com/*" - ], - "run_at": "document_end" - } - ], - "icons": { - "16": "statics/imgs/bilibili-cat-256.png", - "32": "statics/imgs/bilibili-cat-256.png", - "128": "statics/imgs/bilibili-cat-256.png" + { + "all_frames": false, + "js": [ + "vendors.bundle.js", + "website.js", + "features.bundle.js" + ], + "matches": [ + "*://localhost/*", + "*://helper.drowsyflesh.com/*", + "*://bilibili-helper.github.io/*" + ], + "run_at": "document_start" }, - "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDd/wqh8sN1lnVWVGyKqhGM0Zz0ZuY3Dq5hNK3qNBw1/+B/XGe+zzwe7aSyr0qikd8pkN5HpoDvEDdkFHcdhPwXWoQGKiNAnKtohuz/2+g5YzLYzQg2bRqKdYJebEoCoiHtoSNS/HRtUeg483ypAH26LLyD6p+ykwQNo9DvtBo0kwIDAQAB", - "permissions": [ - "downloads", - "alarms", - "contextMenus", - "cookies", - "notifications", - "storage", - "tabs", - "webRequest", - "webRequestBlocking", - "*://*.acgvideo.com/*", - "*://*.bilibili.com/*", - "*://bilibili-helper.github.io/*", - "*://*.hdslb.com/*" - ], - "web_accessible_resources": [ - "statics/*", - "bilibili-helper.woff", - "at.alicdn.com/t/*", - "libs/*", - "js/*" - ], - "content_security_policy": "script-src 'self' https://www.google-analytics.com/analytics.js https://www.google-analytics.com/analytics_debug.js; object-src 'self';" + { + "all_frames": false, + "js": [ + "vendors.bundle.js", + "cv.js", + "features.bundle.js" + ], + "css": [ + "styles/vendors.css", + "styles/features.css" + ], + "matches": [ + "*://www.bilibili.com/read/cv*" + ], + "run_at": "document_end" + }, + { + "all_frames": false, + "js": [ + "vendors.bundle.js", + "tbilibili.js", + "features.bundle.js" + ], + "css": [ + "styles/vendors.css", + "styles/features.css" + ], + "matches": [ + "*://t.bilibili.com/*" + ], + "run_at": "document_end" + }, + { + "all_frames": false, + "js": [ + "vendors.bundle.js", + "videoList.js", + "features.bundle.js" + ], + "css": [ + "styles/vendors.css", + "styles/features.css" + ], + "matches": [ + "*://space.bilibili.com/*/favlist*" + ], + "run_at": "document_end" + }, + { + "all_frames": false, + "js": [ + "vendors.bundle.js", + "vipPrivilege.js", + "features.bundle.js" + ], + "css": [ + "styles/vendors.css", + "styles/features.css" + ], + "matches": [ + "*://*.bilibili.com/*" + ], + "run_at": "document_end" + } + ], + "icons": { + "16": "statics/imgs/bilibili-cat-256.png", + "32": "statics/imgs/bilibili-cat-256.png", + "128": "statics/imgs/bilibili-cat-256.png" + }, + "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDd/wqh8sN1lnVWVGyKqhGM0Zz0ZuY3Dq5hNK3qNBw1/+B/XGe+zzwe7aSyr0qikd8pkN5HpoDvEDdkFHcdhPwXWoQGKiNAnKtohuz/2+g5YzLYzQg2bRqKdYJebEoCoiHtoSNS/HRtUeg483ypAH26LLyD6p+ykwQNo9DvtBo0kwIDAQAB", + "permissions": [ + "downloads", + "alarms", + "contextMenus", + "cookies", + "notifications", + "storage", + "tabs", + "webRequest", + "webRequestBlocking", + "*://*.acgvideo.com/*", + "*://*.bilibili.com/*", + "*://bilibili-helper.github.io/*", + "*://*.hdslb.com/*" + ], + "web_accessible_resources": [ + "statics/*", + "bilibili-helper.woff", + "at.alicdn.com/t/*", + "libs/*", + "js/*" + ], + "content_security_policy": "script-src 'self' https://www.google-analytics.com/analytics.js https://www.google-analytics.com/analytics_debug.js; object-src 'self';" } \ No newline at end of file