您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Youtube in Black, not the ugly gray (dark mode must be active on youtube in order for it to work)
当前为
// ==UserScript== // @name Youtube Black Mode // @version 1.1 // @date 2020-05-23 // @author Paul Reiner // @description Youtube in Black, not the ugly gray (dark mode must be active on youtube in order for it to work) // @include http://* // @include https://* // @run-at document-end // @namespace https://greasyfork.org/users/570213 // ==/UserScript== (function(){ "use strict"; var x=window.location.toString().split("/")[2].split("."); var y=x[x.length-2]; if (y == "youtube") { document.getElementsByTagName("head")[0].innerHTML+='<style>html:not(.style-scope)[dark],:not(.style-scope)[dark]{--yt-spec-brand-background-solid:#000;--yt-spec-brand-background-primary:#000;--yt-spec-brand-background-secondary:#000;--yt-spec-general-background-a:#000;}ytd-browse[background-color-update][page-subtype="channels"]{background:#000;}ytd-browse[page-subtype=channels]{background:#000;}ytd-two-column-browse-results-renderer[page-subtype=history] #secondary.ytd-two-column-browse-results-renderer{background:#000;}.underline.paper-input-container{color:#d0d0d0;}#primary{background:#000;}ytd-settings-sidebar-renderer{background:#000}</style>'; document.getElementById("country-code").innerText="BLACK"; } })();