NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name EDS Dark Theme
// @namespace http://tampermonkey.net/
// @version 1.0
// @description A simple dark theme for EDS.
// @author Simonculus
// @match https://eds.kedschools.se/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('#content{color: white !important; background-color: #262626 !important; background-image: -webkit-linear-gradient(left, #262626, #262626) !important; background-image: -moz-linear-gradient(left, #262626, #262626) !important; background-image: -o-linear-gradient(left, #262626, #262626) !important; background-image: linear-gradient(to right, #262626, #262626) !important;');
addGlobalStyle('div, a{color: white !important');
addGlobalStyle('table {background-color: #424242; }');
addGlobalStyle('table tr.odd {background-color: #424242; }');
addGlobalStyle('table tr.even {background-color: #515151; }');
addGlobalStyle('table th {background-color: #212121;background-image: -webkit-linear-gradient(top, #111111, #111111);background-image: -moz-linear-gradient(top, #111111, #111111);background-image: -o-linear-gradient(top, #111111, #111111);background-image: linear-gradient(to bottom, #111111, #111111);background-size: 100% 100%;}');
addGlobalStyle('table td, table th {border: 1px solid #000;}');
addGlobalStyle('#profile-panel {background-color: #262626;border: 2px #BFCCFF solid;}');
addGlobalStyle('.menu-tail, #menu li.menu-item a,.marker-top-panel, .course,.step, .block, .theme, footer, body{background-color: #111111;background-image: -webkit-linear-gradient(top, #111111, #111111);background-image: -moz-linear-gradient(top, #111111, #111111);background-image: -o-linear-gradient(top, #111111, #111111);background-image: linear-gradient(to bottom, #111111, #111111);border-right: 1px solid #CCC;}');
addGlobalStyle('#menu li.menu-item a:hover, .not-processed {background: #424242;background-image: -webkit-linear-gradient(top, #424242, #424242);background-image: -moz-linear-gradient(top, #424242, #424242);background-image: -o-linear-gradient(top, #424242, #424242);background-image: linear-gradient(to bottom, #424242, #424242)}');
addGlobalStyle('#menu li.menu-item.selected a, .not-achieved{background: #666666;background-image: -webkit-linear-gradient(top, #666666, #666666);background-image: -moz-linear-gradient(top, #666666, #666666);background-image: -o-linear-gradient(top, #666666, #666666);background-image: linear-gradient(to bottom, #666666, #666666);}');
addGlobalStyle('.course-map, .course-panel {background-color: #111111;background-image: -webkit-linear-gradient(top, #111111, #111111); background-image: -moz-linear-gradient(top, #111111, #111111);background-image: -o-linear-gradient(top, #111111, #111111);background-image: linear-gradient(to bottom, #111111, #111111);clear: both;float: left;font-size: x-small;}');
addGlobalStyle('.course:hover, .theme:hover, .themepart:hover, .step:hover, .block:hover {background-color: #666666;background-image: -webkit-linear-gradient(top, #666666, #666666);background-image: -moz-linear-gradient(top, #666666, #666666);background-image: -o-linear-gradient(top, #666666, #666666);background-image: linear-gradient(to bottom, #666666, #666666);}');
addGlobalStyle('.course-child-name:hover {background-color: #666666;background-image: -webkit-linear-gradient(top, #666666, #666666);background-image: -moz-linear-gradient(top, #666666, #666666);background-image: -o-linear-gradient(top, #666666, #666666);background-image: linear-gradient(to bottom, #666666, #666666);}');
addGlobalStyle('.partially-achieved {background-color: #ffb600;background-image: -webkit-linear-gradient(top, #ffb600, #ffb600);background-image: -moz-linear-gradient(top, #ffb600, #ffb600);background-image: -o-linear-gradient(top, #ffb600, #ffb600);background-image: linear-gradient(to bottom, #ffb600, #ffb600);}');
addGlobalStyle('.fully-achieved {background-color: #61ba2e;background-image: -webkit-linear-gradient(top, #61ba2e, #61ba2e);background-image: -moz-linear-gradient(top, #61ba2e, #61ba2e);background-image: -o-linear-gradient(top, #61ba2e, #61ba2e);background-image: linear-gradient(to bottom, #61ba2e, #61ba2e);}');
addGlobalStyle('header {background-image: url("http://i.imgur.com/BokzrSB.png") !important;}');
}
)();