Skip to content

Commit

Permalink
Add bb_batch_reconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Oct 10, 2023
1 parent c219976 commit f031ccb
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bb_batch_reconcile/README.md
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.
18 changes: 18 additions & 0 deletions bb_batch_reconcile/README_CN.md
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` 上测试通过。
- 不能保证在其他版本和主题上工作。
8 changes: 8 additions & 0 deletions bb_batch_reconcile/reconcile.js
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);
}

0 comments on commit f031ccb

Please sign in to comment.