diff --git a/blackboardfix.user.js b/blackboardfix.user.js index b483316..564e7a2 100644 --- a/blackboardfix.user.js +++ b/blackboardfix.user.js @@ -11,10 +11,9 @@ // ==/UserScript== // License: MIT // -// If you feel this script was useful please send BTC donations to this address: -// 1kqfr9hYPHTwGdMev9b538sSeyLa5h4FR -// + +// 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; }'; @@ -24,3 +23,14 @@ if(style.styleSheet){ 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(); + }); +} +// \ No newline at end of file