README.md 3.8 KB
Newer Older
C
CodFrm 已提交
1
[![Build Status](https://www.travis-ci.org/CodFrm/cxmooc-tools.svg?branch=master)](https://www.travis-ci.org/CodFrm/cxmooc-tools)
C
CodFrm 已提交
2 3
[![npm](https://img.shields.io/npm/v/cxmooc-tools.svg)](https://www.npmjs.com/package/cxmooc-tools)
[![npm](https://img.shields.io/npm/dt/cxmooc-tools.svg)](https://www.npmjs.com/package/cxmooc-tools)
C
CodFrm 已提交
4

C
CodFrm 已提交
5
## 超星慕课小工具
C
CodFrm 已提交
6
> 一个快速学习超星慕课的chrome扩展工具(੧ᐛ੭挂科模式,启动)
C
CodFrm 已提交
7
>
M
moshi 已提交
8
> 初次开发chrome扩展,有兴趣的朋友可以一起来哦,欢迎PR!
C
CodFrm 已提交
9

M
moshi 已提交
10 11
## 准备工作
### Build
C
CodFrm 已提交
12 13 14
环境:
* Node.js
* webpack
M
moshi 已提交
15 16

```shell
M
moshi 已提交
17
git clone https://github.com/CodFrm/cxmooc-tools.git
C
CodFrm 已提交
18 19 20
npm install
npm run build
```
C
CodFrm 已提交
21

M
moshi 已提交
22
### Server
M
moshi 已提交
23
搭建了一个服务器程序,这个服务器用于完善题库。由于接口没有任何权限,所以只会记录你的正确答题答案,并不会记录你的其他个人信息。以上过程全由插件自动提交,还请大家不要故意上传错误的答案哦 (๑• . •๑)
C
CodFrm 已提交
24

M
moshi 已提交
25
因为超星慕课全站启用了https,所以服务器配置需要https。
C
CodFrm 已提交
26 27 28 29

环境:
* Node.js
* Mongodb
M
moshi 已提交
30 31

```shell
C
CodFrm 已提交
32 33 34
npm install
npm run server
```
M
moshi 已提交
35
## 安装
C
CodFrm 已提交
36

C
CodFrm 已提交
37
### 方法1:
C
CodFrm 已提交
38

M
moshi 已提交
39
能够体验到最新的功能,需要按照准备工作的方法步骤配置本地环境,可能会存在一些BUG。
40

M
moshi 已提交
41 42 43
1. 执行`npm run build`,此时会在`build/cxmooc-tools`目录下生成插件文件。
2. 打开Chrome浏览器的更多工具选项,打开扩展程序页面并启用开发者模式。
3. 加载已解压的扩展程序,路径选择`build/cxmooc-tools`
C
CodFrm 已提交
44

C
CodFrm 已提交
45
### 方法2(推荐):
46

M
moshi 已提交
47
下载发布的版本[cxmooc-tools.crx](https://github.com/CodFrm/cxmooc-tools/releases)无需安装环境,下载即可使用。
C
CodFrm 已提交
48
1. 下载发布的版本cxmooc-tools.crx文件,修改后缀为.zip,并将其解压。
M
moshi 已提交
49 50
2. 打开Chrome浏览器的更多工具选项,打开扩展程序页面并启用开发者模式。
3. 加载已解压的扩展程序,路径选择你解压的路径`build/cxmooc-tools`
M
moshi 已提交
51 52 53

解压后应包含以下文件
```
M
moshi 已提交
54
.
M
moshi 已提交
55 56 57 58
├── img
|    └── some files
├── src
|    └── some files
M
moshi 已提交
59 60
└── manifest.json
```
M
moshi 已提交
61 62
**以Chrome浏览器为例:**

C
CodFrm 已提交
63 64 65
![](build/cxmooc-tools/img/1.png)
![](build/cxmooc-tools/img/2.png)

M
moshi 已提交
66
加载完成后,打开超星慕课的课程或者题目页面之后就可以正常使用了。
C
CodFrm 已提交
67 68

### 方法3:
M
moshi 已提交
69 70 71 72 73 74
下载[发布版本](https://github.com/CodFrm/cxmooc-tools/releases)cxmooc-tools.crx文件,直接拖入浏览器安装
某些浏览器允许直接拖入扩展进行安装。(内核为Chromium,如果不行,请按照方法2来)
支持列表
* [x] 360极速浏览器
* [x] QQ浏览器
* [ ] Chrome浏览器(无法启用)
C
init  
CodFrm 已提交
75

M
moshi 已提交
76
## 说明
M
moshi 已提交
77
使用已安装扩展插件的浏览器打开超星慕课学习页面,在视频上方会显示相关功能按钮。
78

C
CodFrm 已提交
79
**秒过视频**功能可直接将视频看完,但是**有一定的风险**
80

C
CodFrm 已提交
81 82 83
开始挂机(钩为已经实现,空为更新内容):
* [x] 后台挂机
* [x] 视频内题目填充(选择类型的题目,填空的没有案例,未测试)
C
CodFrm 已提交
84
* [x] 视频源选择
C
CodFrm 已提交
85
* [x] 自动下一集
C
init  
CodFrm 已提交
86

C
CodFrm 已提交
87
![](/build/cxmooc-tools/img/soft/soft_01.png)
M
moshi 已提交
88
![](/build/cxmooc-tools/img/soft/soft_02.png)
M
moshi 已提交
89
### 题库
C
CodFrm 已提交
90 91 92

关于题库,可以访问该页面:[https://github.com/CodFrm/cxmooc-tools/issues/16](https://github.com/CodFrm/cxmooc-tools/issues/16)

M
moshi 已提交
93
1. 不定期的更新题库文件,因为没有手动的去收集题目,所以大部分题目**需要有人第一次做过**,后来的人才能搜索到题目。
M
moshi 已提交
94
2. 题库中没有的题目则会自动随机选择一个选项。。。。请注意!!!!
M
moshi 已提交
95

M
moshi 已提交
96
## 其他
C
CodFrm 已提交
97 98 99

GitHub项目地址:[https://github.com/CodFrm/cxmooc-tools](https://github.com/CodFrm/cxmooc-tools)

C
CodFrm 已提交
100
Blog地址:[http://blog.icodef.com/2018/01/25/1304](http://blog.icodef.com/2018/01/25/1304)
C
v1.58  
CodFrm 已提交
101 102

QQ群:[614202391](https://shang.qq.com/wpa/qunwpa?idkey=9bddd2564d84bd999940de422d1c0c70f87ecaf02fe9d7c60389fc2b376179eb)