/
qw-rubrics.user.js
47 lines (44 loc) · 1.35 KB
/
qw-rubrics.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// ==UserScript==
// @name QuizWiz : Rubrics
// @namespace https://github.com/jamesjonesmath/canvancement
// @description Regrading and speed enhancements for Canvas quizzes
// @include https://*.instructure.com/courses/*/gradebook/speed_grader?*
// @include https://*.instructure.com/courses/*/quizzes/*/history?*
// @noframes
// @version 6
// @grant none
// ==/UserScript==
(function() {
'use strict';
var config = {
// Regrading methods may be 'disabled', 'enabled', or 'autorun'
'methods' : {
'unanswered' : 'autorun',
'full_points' : 'disabled',
'ma_allnone' : 'disabled',
'ma_correct' : 'disabled',
'ma_difference' : 'disabled',
'fill_in_blanks' : 'disabled',
'dropdowns' : 'disabled'
},
// Speed enhancements may be true or false
'autoExpandComments' : true,
'duplicateQuestionHeader' : true,
'showButtonCounts' : true,
'nextAfterUpdate' : true,
'nextAfterComment' : true,
'nextAfterRubric' : true,
'nextRubricExpanded' : true
};
if (typeof QuizWiz !== 'function') {
const script = document.createElement('script');
script.src = 'https://canvancement.s3.us-east-2.amazonaws.com/qw-engine.min.js';
script.onload = function() {
QuizWiz(config);
};
document.head.appendChild(script);
}
else {
QuizWiz(config);
}
})();