-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# `bb_batch_reconcile` | ||
|
||
## 🪄 Function | ||
|
||
This is a simple script to batch reconcile student grades in [Blackboard](https://www.blackboard.com/). It uses the simple method of emulating user clicks to batch reconcile grades. This is not the most efficient method, but it is rather simple and works pretty well. | ||
|
||
Note that this script is intended for **Chinese** interface of Blackboard, and it accepts the **mean value** for you. If you are using the English interface or would rather accept the highest/lowest grade, you may need to change L3 in the script. | ||
|
||
## 📖 Usage | ||
|
||
1. Navigate to the reconcile page in your Blackboard system. (Something like `https://bb.example.com/webapps/gradebook/controller/reconcileGrades?course_id=***&id=***`) | ||
2. Copy the script to the clipboard, and paste it into the browser console. | ||
3. Press `Enter` to run it. | ||
|
||
## ⚠️ Warning | ||
|
||
- Tested on `Enterprise License (3300.0.1-rel.37+c07f12a)`, theme `Bb Learn 2012`. | ||
- Not guaranteed to work on other versions and themes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# `bb_batch_reconcile` | ||
|
||
## 🪄 功能 | ||
|
||
这是一个简单的脚本,用于批量核对 [Blackboard](https://www.blackboard.com/) 中的学生成绩。它使用模拟用户点击的简单方法来批量核对成绩————这不是最有效的方法,但它相当简单,而且效果还不错。 | ||
|
||
请注意,此脚本仅适用于 Blackboard 的**中文**界面,并且它只会为您取**平均值**。如果您使用的是英文界面,或者您更愿意接受最高/最低分,您可能需要修改脚本第三行。 | ||
|
||
## 📖 使用 | ||
|
||
1. 在您的 Blackboard 系统中导航到核对成绩页面。 (类似 `https://bb.example.com/webapps/gradebook/controller/reconcileGrades?course_id=***&id=***`) | ||
2. 将脚本复制到剪贴板,然后粘贴到浏览器控制台中。 | ||
3. 按 `Enter` 运行它。 | ||
|
||
## ⚠️ 警告 | ||
|
||
- 在 `Enterprise License (3300.0.1-rel.37+c07f12a)` 版本,主题 `Bb Learn 2012` 上测试通过。 | ||
- 不能保证在其他版本和主题上工作。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
let rows = table.querySelectorAll("#reconcileTable div.row.notReconciled"); | ||
function reconcile(row) { | ||
let btn = row.querySelector("div.cell.reconciledGrade .nav-menu li a[title$='平均']"); | ||
if (btn) btn.click(); | ||
} | ||
if (rows) { | ||
rows.forEach(reconcile); | ||
} |