Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add zsgl platform support and config options #2

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
tg-bot.js
pack-crx.js
publish-docs.js
config.js
server/server
server/config.yaml
Expand All @@ -9,8 +8,6 @@ node_modules
build/cxmooc-tools/src/*.*
build/*.js
docs/.vuepress/dist/
docs/.vuepress/.temp
docs/.vuepress/.cache
.vscode/
coverage
typings
Expand All @@ -19,6 +16,5 @@ certificate
*.pem
*.crx
*.zip
*.zst
*.tar.gz
*.map
115 changes: 36 additions & 79 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<div align="center">
<h1 align="center">
网课小工具(重制版)
网课小工具
</h1>

![GitHub stars](https://img.shields.io/github/stars/chettoy/cxmooc-tools.svg)
![GitHub tag](https://img.shields.io/github/v/tag/chettoy/cxmooc-tools.svg?label=version)
[![Edge add-on](https://img.shields.io/badge/dynamic/json?label=edge%20add-on&color=brightgreen&prefix=v&query=%24.version&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fonjbbeifafonkjcpaeeelbfbidfdpcoa)](https://microsoftedge.microsoft.com/addons/detail/onjbbeifafonkjcpaeeelbfbidfdpcoa)
[![Edge rating](https://img.shields.io/badge/dynamic/json?label=edge%20rating&color=brightgreen&suffix=%20/%205&query=%24.averageRating&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fonjbbeifafonkjcpaeeelbfbidfdpcoa)](https://microsoftedge.microsoft.com/addons/detail/onjbbeifafonkjcpaeeelbfbidfdpcoa)
[![Edge users](https://img.shields.io/badge/dynamic/json?label=edge%20users&query=%24.activeInstallCount&url=https%3A%2F%2Fmicrosoftedge.microsoft.com%2Faddons%2Fgetproductdetailsbycrxid%2Fonjbbeifafonkjcpaeeelbfbidfdpcoa)](https://microsoftedge.microsoft.com/addons/detail/onjbbeifafonkjcpaeeelbfbidfdpcoa)
[![Chrome](https://img.shields.io/badge/chrome-old%20version-yellowgreen)](https://chrome.google.com/webstore/detail/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/kkicgcijebblepmephnfganiiochecfl?hl=zh-CN)
[![FireFox](https://img.shields.io/badge/firefox-old%20version-yellowgreen)](https://addons.mozilla.org/zh-CN/firefox/addon/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/)
[![tampermonkey](https://img.shields.io/badge/tampermonkey-old%20version-yellowgreen)](https://bbs.tampermonkey.net.cn/thread-61-1-1.html)
![GitHub All Releases](https://img.shields.io/github/downloads/chettoy/cxmooc-tools/total)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fchettoy%2Fcxmooc-tools.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fchettoy%2Fcxmooc-tools?ref=badge_shield)
![GitHub stars](https://img.shields.io/github/stars/codfrm/cxmooc-tools.svg)
[![Build Status](https://github.com/CodFrm/cxmooc-tools/workflows/build/badge.svg?branch=master)](https://github.com/CodFrm/cxmooc-tools)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/codfrm/cxmooc-tools.svg?label=version)
[![Chrome](https://img.shields.io/badge/chrome-success-brightgreen)](https://chrome.google.com/webstore/detail/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/kkicgcijebblepmephnfganiiochecfl?hl=zh-CN)
[![FireFox](https://img.shields.io/badge/firefox-success-brightgreen)](https://addons.mozilla.org/zh-CN/firefox/addon/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/)
[![tampermonkey](https://img.shields.io/badge/tampermonkey-success-yellowgreen)](https://bbs.tampermonkey.net.cn/thread-61-1-1.html)
![GitHub All Releases](https://img.shields.io/github/downloads/CodFrm/cxmooc-tools/total)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FCodFrm%2Fcxmooc-tools.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FCodFrm%2Fcxmooc-tools?ref=badge_shield)

</div>

Expand All @@ -27,108 +25,70 @@
- [题库](#题库)
- [关于反馈](#关于反馈)
- [免责声明](#免责声明)

## 关于重制版

在原有基础上
- 更新了全部依赖 (webpack5, vue3, vuepress2, ...)
- 替换了一些弃用的库和方法
- 内置了WebAssembly模块以还原超星网页中的字体混淆
- 添加了题库镜像 (基于actix-web开发的备用接口)
- 其他细节优化
- 迁移至 Manifest V3 版本规范(浏览器扩展可以重新上架啦)
- 以及版本号提升至3.0.0

## 关于网课小工具

一个 超星(学习通)/智慧树(知到)/中国大学mooc 刷课工具,火狐,谷歌,油猴支持.全自动任务,视频倍速秒过,作业考试题库,验证码自动打码(੧ᐛ੭挂科模式,启动)
**如果觉得好用,顺手点个 Star 吧 ❤❤❤**

**仓库地址:[chettoy/cxmooc-tools](https://github.com/chettoy/cxmooc-tools)** ![GitHub Repo stars](https://img.shields.io/github/stars/chettoy/cxmooc-tools?style=social)

**原作地址:[CodFrm/cxmooc-tools](https://github.com/CodFrm/cxmooc-tools)**
**仓库地址:[CodFrm/cxmooc-tools](https://github.com/CodFrm/cxmooc-tools)**

## 从应用商店下载
[Chrome商店](https://chrome.google.com/webstore/detail/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/kkicgcijebblepmephnfganiiochecfl?hl=zh-CN)

[Edge商店](https://microsoftedge.microsoft.com/addons/detail/onjbbeifafonkjcpaeeelbfbidfdpcoa) (已上架)
[FireFox商店](https://addons.mozilla.org/zh-CN/firefox/addon/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/)

[Chrome商店](https://chrome.google.com/webstore/detail/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/kkicgcijebblepmephnfganiiochecfl?hl=zh-CN) (旧版)
[油猴](https://bbs.tampermonkey.net.cn/thread-61-1-1.html)

[FireFox商店](https://addons.mozilla.org/zh-CN/firefox/addon/%E8%B6%85%E6%98%9F%E6%85%95%E8%AF%BE%E5%B0%8F%E5%B7%A5%E5%85%B7/) (旧版)

[油猴](https://bbs.tampermonkey.net.cn/thread-61-1-1.html) (旧版)

## 功能支持列表

> 详情请看使用文档,不同平台所支持的功能不尽相同

- [x] 视频挂机

- [ ] 视频秒过

- [x] 视频倍速

- [x] 静音播放

- [x] 任务答题

- [x] 作业答题

以上功能建议使用 [FxxkStar](https://github.com/chettoy/FxxkStar) 效果更佳

- [x] 自动阅读

- [ ] 自动填写验证码

- [x] 考试答题

* [x] 视频挂机
* [x] 视频秒过
* [x] 视频倍速
* [x] 静音播放
* [x] 任务答题
* [x] 自动阅读
* [x] 自动填写验证码
* [x] 考试答题
* [x] 作业答题

## 适配列表
* [x] Chrome for PC
* [x] Firefox for PC
* [x] Firefox for Mobile
* [x] QQ 浏览器 for PC
* [x] Tampermonkey

- [x] Chrome for PC
- [x] Microsoft Edge for PC
- [ ] Firefox for PC (未测试)
- [ ] Firefox for Mobile (未测试)
- [x] QQ 浏览器 for PC
- [ ] Tampermonkey (未测试)

## 参与开发
> 如果你想参与开发,请阅读下面内容,如果只是使用本扩展,请移步 **[使用文档](https://cx.icodef.com/)**

> 如果你想参与开发,请阅读下面内容,如果只是使用本扩展,请移步 **[使用文档(旧版)](https://cx.icodef.com/)**

### 环境

* Node.js & npm
- Rust & cargo
- wasm-pack
### 环境:
* Node.js
* webpack

### Build

```bash
git clone https://github.com/chettoy/cxmooc-tools.git
git clone https://github.com/CodFrm/cxmooc-tools.git
cd cxmooc-tools
npm install
npm run build
# 开发模式请使用
npm run dev
# 打包生成扩展和脚本
# 打包生成crx和油猴脚本
npm run tampermonkey
npm run pack
# 生成文档
npm run docs:build
npm run docs:dev
```

> 由于 `chaoxing-rs`(超星协议的rust实现) 未发布,编译前请暂时删去`webpack.config.js`中的`WasmPackPlugin`部分以跳过wasm模块的重新构建

### 贡献流程

1. `Fork Repo`
2. 发起`Pull Request`,并简要描述更改内容。
3. `CI 检查通过`
4. `CodeReview`
5. 合并到项目仓库

## 题库

1. 题库大部分答案来源于用户答题后的页面采集,**所以需要有人第一次做过**,后来的人才能搜索到题目。
2. 可以配置随机题目,当题库中没有的题目则会自动随机选择一个选项
3. 考试题库收集,需要考试完毕后,进入考试答案页面,扩展会自动收集.
Expand All @@ -138,11 +98,9 @@ npm run docs:dev
![](/dist/images/3.webp)

## 关于反馈

您可以通过Issues反馈,反馈时请尽量提供足够明确的信息。

## 免责声明

本项目完全开源,免费,仅供技术学习和交流,**开发者团队并未授权任何组织、机构以及个人将其用于商业或者盈利性质的活动。也从未使用本项目进行任何盈利性活动。未来也不会将其用于开展营利性业务。个人或者组织,机构如果使用本项目产生的各类纠纷,法律问题,均由其本人承担。**

如果您开始使用本项目,即视为同意项目免责声明中的一切条款,条款更新不再另行通知。**开发者仅接受和捐赠者之间不构成购买或雇佣关系的捐赠或者赞赏。** 如果您选择捐赠此项目,我们会列出一份捐赠者名单(包含捐赠金额,日期),但不会公布您的捐赠账号。如果您选择捐赠,那么我将视之为您完全自愿的,没有任何雇佣,购买关系的捐赠。
Expand All @@ -152,5 +110,4 @@ The project is completely open source, free, and is for technical learning and c
If you start using this project, you are deemed to agree to all the terms in the project disclaimer, and the terms are updated without further notice. **Developers only accept donations or appreciations that do not constitute a purchase or employment relationship with the donor.** If you choose to donate this item, we will list a list of donors (including donation amount, date), but will not announce your donation account. If you choose to donate, then I will treat you as completely voluntary, without any employment, donation of the relationship.

## License

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fchettoy%2Fcxmooc-tools.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fchettoy%2Fcxmooc-tools?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FCodFrm%2Fcxmooc-tools.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FCodFrm%2Fcxmooc-tools?ref=badge_large)
59 changes: 12 additions & 47 deletions build/cxmooc-tools/manifest.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
{
"manifest_version": 3,
"name": "网课小工具(remastered)",
"version": "3.1.0",
"description": "一个 大学生网课 学习工具,Edge,谷歌,油猴支持.全自动任务,视频倍速秒过,作业考试题库(੧ᐛ੭挂科模式,启动)",
"manifest_version": 2,
"name": "网课小工具",
"version": "2.5.2",
"description": "一个 大学生网课 学习工具,火狐,谷歌,油猴支持.全自动任务,视频倍速秒过,作业考试题库,验证码自动打码(੧ᐛ੭挂科模式,启动)",
"icons": {
"16": "img/logo.png",
"48": "img/logo.png",
"128": "img/logo.png"
},
"action": {
"browser_action": {
"default_icon": "img/logo.png",
"default_title": "网课小工具",
"default_popup": "src/popup.html"
},
"background": {
"service_worker": "src/background.js",
"type": "module"
"scripts": [
"src/background.js"
]
},
"content_scripts": [
{
"matches": [
"*://*/mycourse/studentstudy?*",
"*://*/mooc-ans/mycourse/studentstudy?*",
"*://*/work/doHomeWorkNew?*",
"*://*/mooc-ans/mooc2/work/dowork?*",
"*://*/work/selectWorkQuestionYiPiYue?*",
"*://*/exam/test/reVersionTestStartNew?*",
"*://*/exam-ans/exam/test/reVersionTestStartNew*",
"*://*/ztnodedetailcontroller/visitnodedetail?*",
"*://*/antispiderShowVerify.ac*",
"*://*/html/processVerify.ac?*",
Expand All @@ -51,44 +49,11 @@
"storage",
"contextMenus",
"notifications",
"scripting"
"<all_urls>"
],
"host_permissions": [
"*://*.chaoxing.com/*",
"*://*/mycourse/studentstudy?*",
"*://*/work/doHomeWorkNew?*",
"*://*/work/selectWorkQuestionYiPiYue?*",
"*://*/exam/test/reVersionTestStartNew?*",
"*://*/exam-ans/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": [
{
"resources": [
"src/mooc.js",
"src/mooc.js.map",
"src/start.js.map"
],
"matches": [
"*://*/*"
],
"use_dynamic_url": false
}
"src/mooc.js"
],
"homepage_url": "https://err.pw/cxmooc-tools/?v=3.1.0",
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
}
"homepage_url": "https://cx.icodef.com",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
}
2 changes: 1 addition & 1 deletion docs/.vuepress/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<footer>
<div class="footer">
<p>MIT Licensed | Copyright © 2022 cxmooc-tools developers</p>
<p>MIT Licensed | Copyright © 2018 CXmooc-tool developer Team</p><a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank">湘ICP备19008073号</a>
</div>
</footer>
</template>
Loading