MIT WebSIS Dark Mode

Dark mode for student.mit.edu

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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);
})();