-
Notifications
You must be signed in to change notification settings - Fork 1
/
blackboard-shrink-vertical-space.user.js
66 lines (51 loc) · 2.57 KB
/
blackboard-shrink-vertical-space.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// ==UserScript==
// @name Blackboard: shrink vertical top space
// @namespace http://www.whiteaudio.com/
// @updateURL https://github.com/etihwnad/blackboard-userscripts/raw/master/blackboard-shrink-vertical-space.user.js
// @downloadURL https://github.com/etihwnad/blackboard-userscripts/raw/master/blackboard-shrink-vertical-space.user.js
// @version 0.13
// @description Remove the top banner and shrink vertical blank space
// @author You
// @match https://blackboard.valpo.edu/webapps/*
// @grant GM_addStyle
// ==/UserScript==
// remove Valpo image
GM_addStyle("div.brandingImgWrap { display: none !important; }");
// padding was: 0px 28px, pad so it sits to the left of the "global-nav-link"
GM_addStyle("div.tabWrapper-right { padding:0px 200px; }");
// padding was: 10px 1.2cm 19px
GM_addStyle(".appTabs a{ padding:0px 10px 10px 10px; }");
// top nav bar
GM_addStyle("#globalNavPageNavArea { height:30px !important; }");
// padding was: 12px 9px 12px 18px
GM_addStyle("#breadcrumbs { padding-top:0px; padding-bottom:0px; }");
// padding was: 20px 20px
GM_addStyle("#pageTitleDiv { padding-top:2px; padding-bottom:2px; }");
GM_addStyle(".pageTitle { margin:0px !important; }");
GM_addStyle(".searchbar { padding:0px !important; }");
GM_addStyle("#containerdiv.container { padding:5px; margin:5px; }");
GM_addStyle(".contentList { margin:0px; }");
GM_addStyle(".contentList li { padding:10px 10px; }");
GM_addStyle(".mainButton a{ padding-top:2px; padding-bottom:2px; }");
GM_addStyle(".mainButton h2 a{ padding-top:2px; padding-bottom:2px; }");
GM_addStyle(".secondaryButton a{ padding-top:2px; padding-bottom:2px; }");
GM_addStyle(".secondaryButton h2 a{ padding-top:2px; padding-bottom:2px; }");
// move quicklinks to top
GM_addStyle("#quick_links_wrap { top: 0px; }");
// gradebook cells
GM_addStyle(".gbtable tbody tr td, .gbtable tbody tr th, .gbtable_header th, .gbtable thead th { padding:0px !important; }");
// gradebook column headers
GM_addStyle(".gbtable_header th { text-transform: none;}");
// group listing cells
GM_addStyle(".inventory tbody tr td, .inventory tbody tr th, .inventory thead th { padding:0px !important; }");
/*
// adjust contentFrame height by net change to navFrame from above
// TODO: how to calculate this number on the fly??
var frame = document.getElementById("contentFrame");
if (frame && "offsetHeight" in frame) {
var newHeight = frame.offsetHeight + 60;
frame.style.height = newHeight + 'px';
}
*/
// Trigger a resize event to recalculate the Grade Center vertical height
window.dispatchEvent(new Event('resize'));