Greasy Fork

Greasy Fork is available in English.

Youtube night mode

try to take over the world!

当前为 2017-08-07 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Youtube night mode
// @namespace    http://tampermonkey.net/
// @version      1.02
// @description  try to take over the world!
// @author       Head_Shot Nr
// @match        https://www.youtube.com/*
// @grant        none
// ==/UserScript==


//This mod can cause latency when the page has loaded
//Ce mod peut provoquer de la latence quand la page s'est chargée

//I wish you a good experience with this mod!
//If there is a problem (or questions) with this one , contact me : [email protected] 
// I can't change You Tube icon , the bell and Upload icon , if you know how contact me


// Si vous rencontrez des problèmes ou bug avec ce programme , contactez moi : [email protected]
// Je ne peux pas changer l'icone You Tube , la cloche et le bouton d'upload , si vous savez comment les changer ( de couleur ) , contactez-moi :D
// ECe script vous permettra d'avoir Youtube en mode nuit , pour reposer vos yeux ! 
//This script is a night mode for Youtube ! 
//There are things I can't change , if you know how , contact me : [email protected] 
//Il y a certeines choses que je ne peux pas modifier , si vous savez comment , contactez moi : [email protected] 
//This is the beta version , please , report some bug 
//Ceci est la version beta , svp , communiquez-moi des bug si vous en trouvez sur youtube.
// There will be script for : Google , gmail , and others !

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

addGlobalStyle('body { background-color : #333 !important; }');
 
addGlobalStyle(' div { background-color: #333 !important; ');

addGlobalStyle("body { color : white !important; }");

addGlobalStyle('.video-list .video-list-item .title { color: white !important; } ' );

addGlobalStyle(".yt-uix-button { color: white !important; }");

addGlobalStyle('p { color: white !important ;}' );

addGlobalStyle('.yt-card { color: #333 !important; }' );

addGlobalStyle('.yt-ui-ellipsis { background-color : transparent !important; }' );

addGlobalStyle('li { color: white !important} ' );

addGlobalStyle(' h1 { color: white !important }');

addGlobalStyle('.yt-uix-button-default, .yt-uix-button-default[disabled], .yt-uix-button-default[disabled]:hover, .yt-uix-button-default[disabled]:active, .yt-uix-button-default[disabled]:focus { color: black !important }');

addGlobalStyle('.yt-uix-button-default, .yt-uix-button-default[disabled], .yt-uix-button-default[disabled]:hover, .yt-uix-button-default[disabled]:active, .yt-uix-button-default[disabled]:focus { color: white !important }');

addGlobalStyle('.yt-live-chat-header-renderer-0 {  color: white !important; }');

addGlobalStyle('.yt-live-chat-text-message-renderer-0 #message.yt-live-chat-text-message-renderer { color: white !important ; }');

addGlobalStyle('a { color: grey !important }');

addGlobalStyle('.yt-uix-button-default, .yt-uix-button-default[disabled], .yt-uix-button-default[disabled]:hover, .yt-uix-button-default[disabled]:active, .yt-uix-button-default[disabled]:focus { color: grey !important; }');

addGlobalStyle('.yt-uix-button-subscribe-branded .yt-uix-button-content, .yt-uix-button-subscribed-branded .yt-uix-button-content { color: grey !important }');

addGlobalStyle('input, textarea, select, button {color: white !important; }');

addGlobalStyle('table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var { color: #E6E6E6 !important; }');

addGlobalStyle('table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var  { background-color: #333 !important;}');

addGlobalStyle('.yt-uix-button-subscribe-branded .yt-uix-button-content, .yt-uix-button-subscribed-branded .yt-uix-button-content, .yt-uix-button-subscribe-unbranded .yt-uix-button-content, .yt-uix-button-subscribed-unbranded .yt-uix-button-content { color: grey !important } ');

addGlobalStyle('h2  { color: white !important } ' );

addGlobalStyle('h3 { color: #E6E6E6 !important; } ');

addGlobalStyle('.yt-uix-button yt-uix-button-size-default yt-uix-button-default yt-uix-button-empty yt-uix-button-has-icon no-icon-markup comment-action-buttons-renderer-thumb yt-uix-sessionlink sprite-comment-actions sprite-like i-a-v-sprite-like { color: black !important; } ');

addGlobalStyle('.category-header .category-title { color: #E6E6E6 !important }');

addGlobalStyle('#yt-masthead-notifications-title { color: #E6E6E6 !important }');

addGlobalStyle('.comment-renderer-text-content { color: white !important }');

addGlobalStyle('.comment-simplebox-text, .comment-simplebox-prompt { color: #E6E6E6 !important; } ');

addGlobalStyle('h4 { color: #E6E6E6 !important; } ');

addGlobalStyle('strong { color: white !important; }');

addGlobalStyle('b { color: white !important; } ');

addGlobalStyle('#comment-section-renderer .sprite-comment-actions { background-color: grey !important; } ');

addGlobalStyle('.yt-live-chat-renderer-0 yt-live-chat-header-renderer.yt-live-chat-renderer { background-color: #333 !important; } ');

addGlobalStyle('.yt-live-chat-message-input-renderer-0 { color: #333 !important; } ' );

addGlobalStyle('.yt-live-chat-text-input-field-renderer-0 #input.yt-live-chat-text-input-field-renderer { color: white !important; } ');

addGlobalStyle('.yt-live-chat-paid-message-renderer-1 #header.yt-live-chat-paid-message-renderer { color: #E6E6E6 !important; } ');

addGlobalStyle('.yt-live-chat-message-input-renderer-0 { background-color: #333 !important; } ');

addGlobalStyle('.yt-live-chat-message-input-renderer-0 #author-name.yt-live-chat-message-input-renderer { color: grey !important; } ');

addGlobalStyle('.yt-live-chat-paid-message-renderer-1 #author-name.yt-live-chat-paid-message-renderer { color: white; } ' );

addGlobalStyle('div { color: white } '); //If you see some bug contact me