ShadeRoot 4Chan

Eye-friendly magic in your browser for Youtube

19.08.2015 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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