// ==UserScript==
// @name Blackboard fix
// @namespace https://srchub.org
// @version 0.5
// @description Fixes the grade center to actually be usable
// @author Nathan Adams <nathan@allostech.com>
// @match https://lewisuniversity.blackboard.com/*
// @updateURL https://srchub.org/p/blackboardfix/source/file/master/blackboardfix.user.js
// @downloadURL https://srchub.org/p/blackboardfix/source/file/master/blackboardfix.user.js
// @grant none
// ==/UserScript==
// License: MIT
//
// This fixes the horriable "boxing" in the grade center
var style=document.createElement('style');
style.type='text/css';
var cssStyle = '.gbtable tbody tr td, .gbtable tbody tr th, .gbtable_header th, .gbtable thead th { padding: 0px !important; height: 0px !important; }';
if(style.styleSheet){
style.styleSheet.cssText=cssStyle;
}else{
style.appendChild(document.createTextNode(cssStyle));
}
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();
});
}
//