ShadeRoot 4Chan

Eye-friendly magic in your browser for Youtube

As of 19. 08. 2015. See the latest version.

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!)

//
// Written by Glenn Wiking
// Script Version: 0.0.1
// Date of issue: 06/12/14
// Date of resolution: 06/12/14
//
// ==UserScript==
// @name        ShadeRoot 4Chan
// @namespace   YT
// @description Eye-friendly magic in your browser for Youtube
// @version     0.0.1
// @icon        https://i.imgur.com/8vq9zZn.png

// @include        http://*.4chan.*
// @include        https://*.4chan.*

// ==/UserScript==

function ShadeRoot4Chan(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);
}

ShadeRoot4Chan(
  'html, iframe html, body {background: #112 !important;}'
  +
  '.top-box {background: none repeat scroll 0% 0% rgba(17, 29, 81, 1) !important;}'
  +
  '.box-outer {border: 1px solid #113 !important;}'
  +
  '.boxcontent img, #logo {opacity: .42 !important;}'
  +
  '.boxbar {background: none repeat scroll 0% 0% rgba(18, 45, 123, 1) !important;}'
  +
  '.boxbar h2, .shown a, #copyright {color: rgba(24, 93, 213, 1) !important;}'
  +
  'video {opacity: .88;}'
);