A userscript that switches to a dark theme on the Rehike YouTube frontend.
Dark Mode for Rehike by nsa0001
Details
Authornsa0001
LicenseNo License
Categoryyoutube
Created
Updated
Size17 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Rehike is required for this to run properly!
- This userstyle isn't mine. I got it from here.
- The original userscript switches the dark mode on at night and off during the day, so I copied the CSS and ported it to Stylus.
Update 10/26/23
- Fixed the userstyle not applying to youtube.com
Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name Dark Mode for Rehike
@version 20230927.14.18
@namespace ?
==/UserStyle== */
@-moz-document domain("youtube.com") {
body,
.not-found,
.yt-thumb {
background: #181818;
color: #eee;
}
body,
input,
button,
textarea,
.branded-page-module-title,
a.yt-uix-button-epic-nav-item.selected,
a.yt-uix-button-epic-nav-item.yt-uix-button-toggled,
button.yt-uix-button-epic-nav-item.selected,
button.yt-uix-button-epic-nav-item.yt-uix-button-toggled,
.epic-nav-item.selected,
.epic-nav-item.yt-uix-button-toggled,
.epic-nav-item-heading,
.search-header .yt-uix-button-content,
.yt-badge:not(.yt-badge-live),
.yt-uix-overlay-primary .yt-dialog-header h2,
.rebug-tab,
.yt-dialog-fg-content,
.yt-ui-menu-item,
.yt-uix-button-text,
.yt-uix-button-text[disabled],
.comment-simplebox-text,
.comment-simplebox-prompt {
color: #eee;
}
.yt-card,
#yt-masthead-container,
#appbar-guide-menu,
#footer-container,
#masthead-appbar,
.compact-shelf .yt-uix-button-shelf-slider-pager,
.yt-dialog-fg,
.yt-uix-overlay-fg,
.rebug-tab-content,
.yt-ui-menu-content,
.comment-simplebox,
.comment-simplebox-frame,
.comment-simplebox-text,
.comment-simplebox-prompt {
background: #202020 !important;
border-color: #323232 !important;
}
.comment-simplebox:not(.yt-uix-form-error).focus .comment-simplebox-frame {
border-color: #167ac6 !important;
}
#action-panel-details a {
color: #167ac6 !important;
}
#watch-header,
#action-panel-details,
#watch-discussion,
#watch7-sidebar-contents,
#watch-sidebar-live-chat {
border: 1px solid #323232 !important;
}
.watch-view-count,
.yt-subscription-button-subscriber-count-branded-horizontal {
color: #8e8d8d;
}
#watch-sidebar-live-chat .yt-uix-expander-collapsed {
background: none;
}
.yt-spinner-img,
#masthead-search .search-btn-component .yt-uix-button-content,
.yt-uix-button-icon,
.yt-uix-button.no-icon-markup::before,
.compact-shelf .yt-uix-shelfslider-next-arrow,
.compact-shelf .yt-uix-shelfslider-prev-arrow,
.autoplay-bar .autoplay-info-icon,
.comment-replies-renderer-expander-down::after,
.comment-replies-renderer-expander-up::after,
#channel-search .show-search .search-icon,
#rebug-lightbox .global-walker-item .toggle-icon,
.yt-ui-menu-item.has-icon::before {
filter: invert(1);
}
.yt-channel-title-icon-verified:not(:hover) {
opacity: 0.5;
}
#browse-items-primary .item-section > li > .yt-lockup-tile,
.branded-page-v2-primary-col .branded-page-box,
.section-list li .item-section .branded-page-box,
.guide-section-separator,
#watch8-action-buttons,
#watch7-sidebar .watch-sidebar-separation-line,
.search-header,
.yt-badge:not(.yt-badge-live),
.comment-simplebox-renderer,
.comment-simplebox-renderer-collapsed-content,
#c4-header-bg-container,
#footer-main,
.yt-card .yt-uix-tabs {
border-color: #323232 !important;
}
.yt-card .yt-uix-button-expander {
border-top-color: #323232;
}
.exp-invert-logo #header::before,
.exp-invert-logo .ypc-join-family-header .logo,
.exp-invert-logo #footer-logo .footer-logo-icon,
.exp-invert-logo #yt-masthead #logo-container .logo,
.exp-invert-logo #masthead #logo-container,
.exp-invert-logo .admin-masthead-logo a,
.exp-invert-logo #yt-sidebar-styleguide-logo #logo {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAA8CAYAAAAjW/WRAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAfwSURBVHhe7Z2LfdQ4EIfta4B0AFQAVECo4KCChAouVwFJB7kKCBUAFUAqCFfBhQ6ggr351quNVpmRtS+vvJ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S/W5fbgnFsfFJrnnIkSFqwE36eaweTlsMatLSRZE8oGDX/UvKSukx3y9eN4HyWHIettFay03vslvuF4dYUMVtewOAQymwQ0Khpllfp7Byi68Vc5eknwccsN0+QsmS8/8jtk2YR8VQ4jN8pFV2XPe6AmX7ZYW0KpCuFbGeGnFMXMi1lnZ6dwkZRie6z8fUnNT8bGu1cmQimakVHr5j/yCufQiEOJ5zaJB+ntYSKtxNbwHgGkk7ItGiG64TH1j9DUCgLB3pSwMtNT9TsSJo/xnow0LGM+oTRp4oEAhi3QLNcbCwLzZU+BjSH59/WQPvGM4Tj5Kte56Q1vAa9jePowsEul+BRShceHbN/AggVEEU1wP3O5yRYwskpvuxy1h5AcQTw/83ebzmJqRNZlrzdrXCbLav2syZAGUCcZyJko5iOY4T4QJxnAwuEMfJ4AJxnAwuEMfJ4AJxnAwuEMcxaZr/ATSb6quBYxtiAAAAAElFTkSuQmCC");
}
#header::before,
.ypc-join-family-header .logo,
#footer-logo .footer-logo-icon,
#yt-masthead #logo-container .logo,
#masthead #logo-container,
.admin-masthead-logo a,
#yt-sidebar-styleguide-logo #logo {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAeCAYAAABg+DOTAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAVHSURBVGhD7Zp/aJVVGMfPe+91u2s/2lyIm2maGpExQ4oh2vrhwJZb0YKCQdEPRdcIERZBCS1YEFh/lejShAoGRQ3MiTPUVSBtkGIrI/phNpu5ym1t2u7d7r1vz/ec53l7773vnZus3Vv2gcfnOc85uzz38Zzznue816qu36Iygde+b1uZ3Wvdrxux6HVQlj9rTlRFZsP2RWNF2hcZuxpasJUqZDMOS6khNjV2IOsP6JjfNwjtV4EBOzr2K2zl8/8EFV5g7316Se1n2uci7Una2dO2SJ1Xbb5w6BZ2pZVYdvCEKla1m8pqf2SX8rFOC0iQ/2zoeKYkCCAWxKT/85i0Jsl/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zCg26kI3lmpx6EkAc5VCx0wwx3mfIxSBLUbPhOJG2nZrv2CxDjpJKF+I4VLuE7tMMBezX1yGJV+JOcOElzoJcOvcbxAmQCRxIBQa6suMbAkcL/0+6N1zjhZQtDiG6y+R99NYTzaF9/7+8g32LBBDTe/oD8vEomY8VSiYBOPg2NMuuOmJYJ7pKBpqRB98XG2HXgMkpLUB9Cfqk/uuFs+3bfJ+nNkh25kKPZV+fUbK2p2/v8iYALkRUBaX07u6vzwsB2+cDc3MworO+/Ihrvuw5VRes9J0eLI+kw4VCaCmBAbN9ObJEzlaGlwhX61nCEgltCS4L2IjV3p/y2AgD0K77n0axyPH0yAyf5oItWPJUCqH0zYgcDpsdLxL5J/MKHUX5RvPhtCMYUJAAAAAElFTkSuQmCC");
}
.yt-uix-button-default:not(.yt-uix-button-link),
.yt-uix-button-default:not(.yt-uix-button-link):disabled,
.yt-uix-button-subscribe-unbranded,
.yt-uix-button-subscribe-unbranded:disabled {
background: #303030;
border-color: #393939;
color: #eee;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.yt-uix-load-more-loading {
border-color: transparent !important;
background: transparent !important;
color: #eee !important;
}
.yt-uix-button-default:not(.yt-uix-button-link):not(:disabled):hover,
.yt-uix-button-subscribe-unbranded:not(:disabled):hover {
background: #292929;
border-color: #303030;
}
.sb-notif-on .yt-uix-button-content {
border-color: #202020;
}
.yt-uix-menu-trigger-selected .yt-ui-menu-item,
.yt-ui-menu-item:hover,
.yt-uix-menu-trigger-selected .yt-ui-menu-item,
.yt-ui-menu-item:focus {
background: #292929;
}
.yt-uix-button-default:not(.yt-uix-button-link):not(:disabled):active,
.yt-uix-button-default.yt-uix-button-toggled:not(.yt-uix-button-link):not(
:disabled
),
.yt-uix-button-subscribe-unbranded:not(:disabled):active {
box-shadow: none;
background: #252525;
border-color: #303030;
}
#masthead-search-terms,
.not-found-search__field,
.yt-uix-form-input-text {
color: #eee;
background: #191919;
border-color: #2f2f2f;
box-shadow: none;
}
#masthead-search-terms.gsfe_a {
border-color: #3a3a3a;
}
#masthead-search-terms.gsfe_b {
border-color: #1c62b9;
}
#masthead-search-term,
.not-found-search__input {
color: #eee;
...