diff --git a/blackboardfix.user.js b/blackboardfix.user.js index 5f9039a..b483316 100644 --- a/blackboardfix.user.js +++ b/blackboardfix.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Blackboard fix // @namespace https://srchub.org -// @version 0.4 +// @version 0.5 // @description Fixes the grade center to actually be usable // @author Nathan Adams // @match https://lewisuniversity.blackboard.com/* @@ -15,5 +15,12 @@ // 1kqfr9hYPHTwGdMev9b538sSeyLa5h4FR // -var style = ''; -$('html > head').append(style); +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);