Skip to content

Commit

Permalink
Migrate to Manifest V3
Browse files Browse the repository at this point in the history
  • Loading branch information
chettoy committed Oct 8, 2022
1 parent 86e4665 commit 4966fb2
Show file tree
Hide file tree
Showing 18 changed files with 498 additions and 249 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* 内置了WebAssembly模块以还原超星网页中的字体混淆
* 添加了题库镜像 (基于actix-web开发的备用接口)
* 其他细节优化
* 迁移至 Manifest V3 版本规范(浏览器扩展可以重新上架啦)
* 以及版本号提升至3.0.0



Expand Down
51 changes: 41 additions & 10 deletions build/cxmooc-tools/manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "网课小工具(remastered)",
"version": "2.6.0",
"version": "3.0.0",
"description": "一个 大学生网课 学习工具,Edge,谷歌,油猴支持.全自动任务,视频倍速秒过,作业考试题库(੧ᐛ੭挂科模式,启动)",
"icons": {
"16": "img/logo.png",
"48": "img/logo.png",
"128": "img/logo.png"
},
"browser_action": {
"action": {
"default_icon": "img/logo.png",
"default_title": "网课小工具",
"default_popup": "src/popup.html"
},
"background": {
"scripts": [
"src/background.js"
]
"service_worker": "src/background.js",
"type": "module"
},
"content_scripts": [
{
Expand Down Expand Up @@ -49,11 +48,43 @@
"storage",
"contextMenus",
"notifications",
"<all_urls>"
"scripting"
],
"host_permissions": [
"*://*.chaoxing.com/*",
"*://*/mycourse/studentstudy?*",
"*://*/work/doHomeWorkNew?*",
"*://*/work/selectWorkQuestionYiPiYue?*",
"*://*/exam/test/reVersionTestStartNew?*",
"*://*/ztnodedetailcontroller/visitnodedetail?*",
"*://*/antispiderShowVerify.ac*",
"*://*/html/processVerify.ac?*",
"*://*/exam/test/reVersionPaperMarkContentNew?*",
"*://*/ananas/modules/*/index.html?*",
"*://*/exam/test?*",
"*://*/course/*.html?*",
"*://examh5.zhihuishu.com/stuExamWeb.html*",
"*://onlineexamh5new.zhihuishu.com/stuExamWeb.html*",
"*://studyh5.zhihuishu.com/videoStudy.html*",
"*://www.icourse163.org/learn/*",
"*://www.icourse163.org/spoc/learn/*"
],
"optional_host_permissions": [],
"web_accessible_resources": [
"src/mooc.js"
{
"resources": [
"src/mooc.js",
"src/mooc.js.map",
"src/start.js.map"
],
"matches": [
"*://*/*"
],
"use_dynamic_url": false
}
],
"homepage_url": "https://err.pw/cxmooc-tools/?v=2.6.0",
"content_security_policy": "script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval' 'wasm-eval'; object-src 'self'"
"homepage_url": "https://err.pw/cxmooc-tools/?v=3.0.0b",
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
}
}
Loading

0 comments on commit 4966fb2

Please sign in to comment.