blackboardfix

blackboardfix Commit Details


Date:2018-01-24 14:03:23 (2 years 11 months ago)
Author:Natalie Adams
Branch:master
Commit:c9333b0ddca2be38c3c61b3d776d337617d82e5b
Parents: b4c8454a7a3ebc685397c6fd862cc6fbe17902e1
Message:adding some key hooks and styling

Changes:

File differences

blackboardfix.user.js
11
22
33
4
4
55
66
77
......
2525
2626
2727
28
29
2830
2931
32
3033
3134
3235
3336
3437
38
39
40
41
42
43
3544
36
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// ==UserScript==
// @name Blackboard fix
// @namespace https://srchub.org
// @version 0.6
// @version 0.7
// @description Fixes the grade center to actually be usable
// @author Nathan Adams <nathan@allostech.com>
// @match https://lewisuniversity.blackboard.com/*
document.getElementsByTagName('head')[0].appendChild(style);
// end fix
// This will display all students rather than the default of 10
if (window.location.href.includes("gradebook/do/instructor/enterGradeCenter")) {
jQuery(document).ready(function () {
jQuery("#openRowEditing")[0].click();
jQuery("#numRows").val("50");
jQuery("#submitRowEditing")[0].click();
});
setTimeout(function () {
jQuery("#table1").css("height", "600px");
jQuery("#table1_viewport").css("height", "614px");
jQuery("#table1_container > div").css("top", "615px");
}, 1000);
}
//
//
if (window.location.href.includes("assessment/do/gradeTest")) {
jQuery(document).keydown(function (e) {
if (e.which == 78) { // n
var ide = jQuery(":focus").attr("id").replace("points_", "");
jQuery("#" + ide).next().find("input[id^=points__]").focus();
e.preventDefault();
}
if (e.which == 190) { // .
jQuery("#bottom_saveAndNextButton").click();
e.preventDefault();
}
if (e.which == 188) { // ,
jQuery("#bottom_saveAndExitButton").click();
e.preventDefault();
}
});
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05448s using 14 queries.