-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WebSIS Dark Mode.user.js
29 lines (28 loc) · 1.17 KB
/
WebSIS Dark Mode.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
// ==UserScript==
// @name MIT WebSIS Dark Mode
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Dark mode for student.mit.edu
// @author Erik Demaine
// @match http*://student.mit.edu/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=mit.edu
// @grant none
// @license MIT
// @website https://github.com/edemaine/dark-monkey
// ==/UserScript==
(function() {
'use strict';
const style = document.createElement('style');
style.innerHTML = `
body, table, select, #registrarheadercontainer, #registrarmininav, #contentmini {
background-color: black; background-image: none; color: white;
}
h1, h2 { color: #e68e8c; }
h3, h4 { color: #ccc; }
a:link, #registrarheadercontainer a:link { color: #4ca3ce; }
a:visited, #registrarheadercontainer a:visited, a:active, #registrarheadercontainer a:active { color: #8cabba; }
a:hover, #registrarheadercontainer a:hover { color: #ea4844; }
img.registrarlogo, img[src="/cgi-gif/subpage_title_websis.gif"] { filter: invert(1) hue-rotate(180deg) brightness(1.5) }
`;
document.head.appendChild(style);
})();