ShadeRoot 4Chan

Eye-friendly magic in your browser for Youtube

Από την 19/08/2015. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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