Youtube - Lights Out - A Dark Youtube Theme

A dark and smooth Youtube theme. Fully supports the main page, watch page, video manager, video editor, and account settings pages.

Цей скрипт не слід встановлювати безпосередньо. Це - бібліотека для інших скриптів для включення в мета директиву // @require https://update.greasyfork.org/scripts/5723/21288/Youtube%20-%20Lights%20Out%20-%20A%20Dark%20Youtube%20Theme.js

// ==UserScript==
// @name          Youtube - Lights Out - A Dark Youtube Theme
// @description	  A dark and smooth Youtube theme. Fully supports the main page, watch page, video manager, video editor, and account settings pages.
// @author        Draxx7
// @run-at        document-start
// ==/UserScript==
(function() {
var css = "";
if (false || (document.domain == "youtube.com" || document.domain.substring(document.domain.indexOf(".youtube.com") + 1) == "youtube.com"))
if (false || (location.href.replace(location.hash,'') == "https://www.youtube.com/upload") || (location.href.replace(location.hash,'') == "http://www.youtube.com/upload") || (document.location.href.indexOf("http://www.youtube.com/edit") == 0) || (document.location.href.indexOf("https://www.youtube.com/edit") == 0))
	css += "h4 {\ncolor: #aaa !important;\n}";
if (false || (new RegExp("^https://apis.google.com/u/[0-9]/(.*)/_/widget/render/comments\\?usegapi=1&first_party_property=YOUTUBE&href=(.*)$")).test(document.location.href) || (new RegExp("^https://plus.googleapis.com/(.*)/widget/render/comments\\?usegapi=1&first_party_property=YOUTUBE&href=(.*)$")).test(document.location.href))
	css += ".yJa, .BJa, .mj {\nbackground: transparent !important;\n}\n\n.yDa {\nbackground-color: #222 !important;\n}\n  \n.DJa {\nbackground-color: transparent !important;\ncolor: #999 !important;\n}\n\n.E5, .e4 {\nbackground-color: #111 !important;\nborder-color: #303030 !important;\nborder-top: 1px solid #303030 !important;\n}\n  \n.Jea {\nborder-color: #303030 !important;\n}\n\n.Mga {\nborder-color: #111 !important;\n}\n\n.Jea, .Mga {\nborder-bottom-color: transparent !important;\nborder-left-color: transparent !important;\n}\n  \n.dn, .ve.oba, .Aq,.OF, .e4, .cp {\ncolor: #aaa !important;\n}\n  \n.gj.d-s, .qg {\ncolor: #777 !important;\n}\n      \n.g9 .Xa.va .vy, .g9 .Xa.va .dp.d-s, .g9 .Xa.va .ot-anchor, .g9 .Xa.va .ot-hashtag, .g9 .Xa.va .proflink, .g9 .Xa.va .proflinkPrefix, .g9 .Xa.va .gj.d-s, .Xa.va .qg, .Xa.va .mi.d-s {\ncolor: #427fed !important;\n}\n\n.ot-hashtag, .proflink, .zDa, .proflinkPrefix {\ncolor: #bbb !important;\n}\n\n.d-A, .d-Kl, .d-A-yb .d-A-B, .d-A-u .d-A-B {\ncolor: #ccc !important;\n}\n\n.bmd {\ncolor:#590;\n}\n\n.r3 .r0 {\nborder-color: #303030 !important;\nbackground: #242323 !important;\ncolor: #aaa !important;\n}\n    \n.d-y-r-c {\nbackground-color: #2b2b2b !important;\nbackground-image: -webkit-linear-gradient(top,#222 0,#2c2c2c 100%) !important;\nbackground-image: linear-gradient(to bottom,#222 0,#2c2c2c 100%) !important;\nborder-color: #444 !important;\ncolor: #bbb !important;\n}\n    \n.xN .d-y-r-c-ha, .Pga.d-A .d-A-B {\ncolor: #bbb !important;\n}\n\n.d-k-l.d-y-r-c-Qa, .ena {\nbackground: no-repeat url(http://i.imgur.com/ho8PnMO.png) -131px -17px !important;\n}\n\n.d-r {\nbackground: #222 !important;\nborder: 1px solid #444 !important;\n}\n\n.d-A-yb, .d-A-u {\nbackground-color: #333 !important;\nborder-style: solid !important;\nborder-color: #333 !important\n}\n\n.Hma .Pga.d-A-yb {\nborder: none !important;\n}\n\n.ot-anchor {\ncolor: #6f6f6f !important;\n}\n\n.dga {\nbackground-color: #151515 !important;\nborder-color: #303030 !important;\n}\n\n.mj .g-h-f-vc-B {\nborder-color: #303030 !important;\n}\n    \n.mj .tm {\nbackground: no-repeat url(http://i.imgur.com/VpPZ6yW.png) -13px -719px !important;\n}\n\n.g-h-f-k .g-h-f-V-nb {\nborder-color: #303030 !important;\n}\n    \n.g-h-f-V-nb {\nbackground: #222 !important;\n}\n  \n.d-cm {\nborder-top-color: #303030 !important;\n}\n\n.g-h-f-m-wc-E, .g-h-f-m-Ed-wc-E {\nbackground: no-repeat url(http://i.imgur.com/p4Hnp94.png) -21px -25px !important;\n}\n\n.jbgcdb {\ncolor: #aaa !important;\n}\n\n.IGPVEc {\nbackground: no-repeat url(http://i.imgur.com/k5G05JP.png) -131px 0 !important;\n}\n\n.FnlLyd:hover {\nbackground-color: #222 !important;\nborder-color: #303030 !important;\n}\n    \n.FnlLyd:active {\nbackground-color: #2a2a2a !important;\nborder-color: #444 !important;\n}\n        \n.Kgb, .Y8b .TD {\nbackground-color: #3a3a3a !important;\n}\n\n.MJa.JMc {\nbackground: no-repeat url(http://i.imgur.com/G39kb8k.png) 0 -186px !important;\n}\n\n.LJa.Zld {\nbackground: no-repeat url(http://i.imgur.com/G39kb8k.png) 0 -204px !important;\n}\n\n.MJa {\nbackground: no-repeat url(http://i.imgur.com/KxkJKLZ.png) 0 -144px !important;\n}\n\n.LJa {\nbackground: no-repeat url(http://i.imgur.com/KxkJKLZ.png) 0 -175px !important;\n}\n\n.Bl {\nbackground: no-repeat url(http://i.imgur.com/IjLPagd.png) 0 -49px !important;\n}\n  \n.Kx {\nbackground: no-repeat url(http://i.imgur.com/IjLPagd.png) -171px -21px !important;\n}\n\n.M7Fqc {\ncolor: #aaa !important;\n}\n  \n.cp {\nbackground-color: #131313 !important;\n}\n  \n.sk {\nbackground: #222 !important;\nborder-color: #222 !important;\noutline: none !important;\n}";
if (false || (new RegExp("^https://apis.google.com/u/0/(.*)/_/hovercard/internalcard(.*)$")).test(document.location.href) || (new RegExp("^https://www.youtube.com/subscribe_embed\\?usegapi=1&(.*)$")).test(document.location.href))
	css += ".GQb a {\ncolor: #aaa !important;\n}\n\n.o-ms-fk {\n-webkit-box-shadow: 3px 5px 5px rgba(0,0,0,1) !important;\nbox-shadow: 3px 5px 5px rgba(0,0,0,1) !important;\n}\n\n.nbc {\nbackground-color: #1b1b1b !important;\nborder-color: #303030 !important;\n}\n\n.yt-uix-button-subscription-container {\nbackground: #1b1b1b !important;\n}";
    css += ".pf {\npadding: 1px 10px 2px 8px !important;\n}\n\n.lg {\npadding: 0 0 0 58px !important;\n}\n\nimg.go.Wh {\ndisplay:none !important;\n}\n\n.Jx {\nmargin: 0 0 0 -33px !important;\n}\n\n.yJa {\nwidth: 326px !important;\n zoom: 0.95 !important;\n  -moz-transform: scale(0.95);\n -moz-transform-origin: 0 0;\n}\n\n.wy, .Sea, .eR, .WR, .YR {\nopacity:0.4 !important;\nzoom:0.8 !important;\n -moz-transform: scale(0.8);\n -moz-transform-origin: 0 0;\n}\n\n.Xa {\npadding: 0 0 13px 0 !important;\n}\n\n.r3 .b2 {\npadding-right: 5px !important;\nmargin: 0 !important;\nzoom: 0.7 !important;\n -moz-transform: scale(0.7);\n -moz-transform-origin: 0 0;\n}\n\n.mj {\nwidth:400px !important;\n;padding: 8px 0 8px 0 !important;\nzoom: 0.8 !important;\n -moz-transform: scale(0.8);\n -moz-transform-origin: 0 0;\n}\n\n.BJa {\npadding: 0 0 0 0 !important;\n left: 200px !important;\n top: 0px !important;\nposition: fixed !important;\n zoom: 0.7 !important;\n -moz-transform: scale(0.7);\n -moz-transform-origin: 0 0;\n height: 25px !important;\n}\n\n.wPa {\npadding: 10px 8px 10px !important;\n zoom: 0.8 !important;\n -moz-transform: scale(0.8);\n -moz-transform-origin: 0 0;\n}\n\n.ve.oba {\nmargin-left:-5px !important;\n}\n.comments-iframe-container {\nmargin-left: 0px !important;\n}\n\n#comments-test-iframe {\nwidth:311px !important;\n}\n\n.comments-iframe-container {\nmax-width:311px !important;\n}\n\n#widget_bounds {\nwidth:311px !important;\n}\n\n.yJa, .BJa, .mj {\nbackground: transparent !important;\n}\n\n.yDa {\nbackground-color: #222 !important;\n}\n  \n.DJa {\nbackground-color: transparent !important;\ncolor: #999 !important;\n text-transform: capitalize;\n}\n\n.E5, .e4 {\nbackground-color: #111 !important;\nborder-color: #303030 !important;\nborder-top: 1px solid #303030 !important;\n}\n  \n.Jea {\nborder-color: #303030 !important;\nborder-bottom-color: transparent !important;\nborder-left-color: transparent !important;\n}\n\n.Mga {\ndisplay: none !important;\n}\n  \n.dn, .ve.oba, .Aq,.OF, .e4, .cp {\ncolor: #aaa !important;\n}\n  \n.gj.d-s, .qg {\ncolor: #777 !important;\n}\n      \n.g9 .Xa.va .vy, .g9 .Xa.va .dp.d-s, .g9 .Xa.va .ot-anchor, .g9 .Xa.va .ot-hashtag, .g9 .Xa.va .proflink, .g9 .Xa.va .proflinkPrefix, .g9 .Xa.va .gj.d-s, .Xa.va .qg, .Xa.va .mi.d-s {\ncolor: #427fed !important;\n}\n\n.ot-hashtag, .proflink, .zDa {\ncolor: #bbb !important;\n}\n\n.d-A, .d-Kl, .d-A-yb .d-A-B, .d-A-u .d-A-B {\ncolor: #ccc !important;\n}\n\n.bmd {\ncolor:#590;\n}\n\n.r3 .r0 {\nborder-color: #303030 !important;\nbackground: #242323 !important;\ncolor: #aaa !important;\n}\n    \n.d-y-r-c {\nbackground-color: #2b2b2b !important;\nbackground-image: -webkit-linear-gradient(top,#222 0,#2c2c2c 100%) !important;\nbackground-image: linear-gradient(to bottom,#222 0,#2c2c2c 100%) !important;\nborder-color: #444 !important;\ncolor: #bbb !important;\n}\n    \n.xN .d-y-r-c-ha, .Pga.d-A .d-A-B {\ncolor: #bbb !important;\n}\n    \n.d-k-l.d-y-r-c-Qa {\nbackground: no-repeat url(http://i.imgur.com/ho8PnMO.png) -131px -17px !important;\n}\n\n.d-r {\nbackground: #222 !important;\nborder: 1px solid #444 !important;\n}\n\n.d-A-yb, .d-A-u {\nbackground-color: #333 !important;\nborder-style: solid !important;\nborder-color: #333 !important\n}\n\n.Hma .Pga.d-A-yb {\nborder: none !important;\n}\n\n.ot-anchor {\ncolor: #6f6f6f !important;\n}\n\n.dga {\nbackground-color: #151515 !important;\nborder-color: #303030 !important;\n}\n\n.mj .g-h-f-vc-B {\nborder-color: #303030 !important;\n}\n    \n.mj .tm {\nbackground: no-repeat url(http://i.imgur.com/VpPZ6yW.png) -13px -719px !important;\n}\n\n.g-h-f-k .g-h-f-V-nb {\nborder-color: #303030 !important;\n}\n    \n.g-h-f-V-nb {\nbackground: #222 !important;\n}\n  \n.d-cm {\nborder-top-color: #303030 !important;\n}\n\n.g-h-f-m-wc-E, .g-h-f-m-Ed-wc-E {\nbackground: no-repeat url(http://i.imgur.com/p4Hnp94.png) -21px -25px !important;\n}\n\n.jbgcdb {\ncolor: #aaa !important;\n}\n\n.IGPVEc {\nbackground: no-repeat url(http://i.imgur.com/k5G05JP.png) -131px 0 !important;\n}\n\n.FnlLyd:hover {\nbackground-color: #222 !important;\nborder-color: #303030 !important;\n}\n    \n.FnlLyd:active {\nbackground-color: #2a2a2a !important;\nborder-color: #444 !important;\n}\n        \n.Kgb, .Y8b .TD {\nbackground-color: #3a3a3a !important;\n}\n\n.MJa.JMc {\nbackground: no-repeat url(http://i.imgur.com/G39kb8k.png) 0 -186px !important;\n}\n\n.LJa.Zld {\nbackground: no-repeat url(http://i.imgur.com/G39kb8k.png) 0 -204px !important;\n}\n\n.Bl {\nbackground: no-repeat url(http://i.imgur.com/IjLPagd.png) 0 -49px !important;\n}\n  \n.Kx {\nbackground: no-repeat url(http://i.imgur.com/IjLPagd.png) -171px -21px !important;\n}";
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node); 
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();