Last active
September 13, 2020 06:14
-
-
Save chiragzq/7a2ad2585c2b1db282cbe168298e965d to your computer and use it in GitHub Desktop.
Schoology dark theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Schoology dark theme | |
// @namespace https://chiragzq.github.io | |
// @version 0.1 | |
// @author chiragzq | |
// @match *://schoology.harker.org/* | |
// @grant none | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
console.log(head); | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
addGlobalStyle(` | |
#body | |
{ | |
background: #1e1e1e; | |
} | |
p | |
{ | |
color: #aaa; | |
} | |
h2 | |
{ | |
color: white; | |
} | |
#main-inner | |
{ | |
background: #1e1e1e; | |
} | |
.s-enable-course-dashboard.theme-2016-layout #home-feed-container | |
{ | |
box-shadow: none; | |
background: #1e1e1e; | |
padding: 10px; | |
} | |
.theme-2016-layout #right-column-inner>div:not(:empty), .theme-2016 #right-column-inner>div:not(:empty) | |
{ | |
box-sizing: border-box; | |
margin-top: 0; | |
margin-bottom: 15px; | |
padding: 15px; | |
background: #1e1e1e!important; | |
} | |
._1Z0RM | |
{ | |
background-color: #1e1e1e; | |
box-shadow: none!important; | |
} | |
.s-enable-course-dashboard.theme-2016-layout #main | |
{ | |
background: #1e1e1e!important; | |
box-shadow: none!important; | |
} | |
.sgy-card | |
{ | |
background: #212121; | |
border: 1px solid #1e1e1e; | |
border-radius: 2px; | |
box-shadow: 0 3px 4px 0 rgba(0,0,0,.15); | |
} | |
.sgy-multiline-ellipsis__split-part | |
{ | |
color: white; | |
} | |
#main-content-wrapper | |
{ | |
margin-left: 180px; | |
border: 1px solid #c7c7c7; | |
border-top: 0; | |
padding: 0 20px; | |
background: #1e1e1e; | |
min-height: 500px; | |
} | |
.has-right-col #center-top | |
{ | |
background: #1e1e1e; | |
} | |
.page-title a | |
{ | |
color: #fff; | |
/*background: url(/sites/all/themes/schoology_theme/images/icons_sprite_realm.png?5c51fa2a00253b33) no-repeat right 2px;*/ | |
padding-right: 27px; | |
} | |
.action-links-wrapper-gearless .action-links-unfold | |
{ | |
background: #333; | |
border: 0; | |
color: #327cbb; | |
width: auto; | |
box-shadow: none; | |
-moz-box-shadow: none; | |
-webkit-box-shadow: none; | |
} | |
#sidebar-left .active-trail a, #left-nav #menu-s-main .menu .menu a.active, #sidebar-left .menu .expanded.active-trail a.active, #sidebar-left #left-nav .menu .expanded.active-trail .active-trail-dist-1 a, #sidebar-left #left-nav .menu .expanded.active-trail .menu .active-trail-dist-2 a | |
{ | |
background-color: #dfdfdf; | |
font-weight: bold; | |
border: 1px solid #c7c7c7; | |
border-right: 0; | |
margin: -1px 0 -1px -1px; | |
} | |
.feed-comments { | |
background-color: #333 !important; | |
} | |
input[type=text], textarea { | |
background-color: #111 !important; | |
color: white !important; | |
border:none; | |
} | |
.s-edge-feed li { | |
border-top: 1px solid black !important; | |
} | |
#home-feed-container .s-edge-feed li:first-child { | |
border-top: none !important; | |
} | |
.sgy-tabbed-navigation { | |
border-color: black !important; | |
} | |
#home-feed-container #smart-box { | |
border-bottom: 1px solid black !important; | |
} | |
.fc-view-month td:hover { | |
background: none !important; | |
background-color: #444 !important; | |
} | |
`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment