youtube code snippet
only works in landscape mode on mobile
'new penji' font by
sozaiya405
does override custom caption font
make a new code snippet, and paste the following:
function addStyleString(str) { var node = document.createElement('style'); node.innerHTML = str; document.body.appendChild(node); } if(window.location.host.includes('youtube.com')){ var link = document.querySelectorAll("link[rel*='icon']") || document.createElement('link'); for(var i = 0; i < link.length; ++i){ link[i].type = 'image/x-icon'; link[i].rel = 'icon'; link[i].href = 'https://i.imgur.com/Q1BB4Id.png'; document.getElementsByTagName('head')[0].appendChild(link[i]) document.title = '𝑦𝑜𝑢𝑡𝑢𝑏𝑒' } var c = ` body { font-family: new penji !important; } #page-header.ytd-tabbed-page-header { background-color: #fff1f4; font-family: new penji color: #A69491; } .yt-core-attributed-string--white-space-pre-wrap { color: #A69491; } ytd-watch-metadata[title-headline-xs] h1.ytd-watch-metadata { font-family: new penji !important; } #owner-sub-count.ytd-video-owner-renderer { font-family: new penji !important; } .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal { color: #C3B2AE !important; } #info-container.ytd-watch-info-text{ color: #7F726F !important; } #description.ytd-watch-metadata { --ytd-text-inline-expander-button-color: #7F726F; font-family: new penji !important; } div.immersive-header-background-wrapper.style-scope.ytd-playlist-header-renderer{ background-color:rgba() !important; font-family: new penji !important; } div.immersive-header-gradient.style-scope.ytd-playlist-header-renderer{ background-color:rgba(255,255,255,0.1) !important; background:linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 33.000001%, rgba(255,255,255,0.1) 100%) !important; font-family: new penji !important; } ytd-rich-shelf-renderer { display: none !important; } yt-formatted-string.style-scope.ytd-video-meta-block { display: none !important; } ytd-metadata-row-container-renderer { display: none !important; } .animated-rolling-number-wiz { display: none !important; } h2.style-scope.ytd-reel-shelf-renderer{ display: none !important; } div.style-scope.ytd-reel-shelf-renderer{ display: none !important; } ytd-yoodle-renderer { display: none !important; } ytd-topbar-logo-renderer { display: none !important; } country-code { display: none !important; } [overlay-style='SHORTS']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Shorts']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Originals']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Youtube Music']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='YouTube Music']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Trending']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Live']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Gaming']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Music']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Movies']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='News']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Sports']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Learning']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Creator Studio']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Podcasts']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='YouTube Studio']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Youtube Kids']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='YouTube Kids']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='Youtube TV']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } [title='YouTube TV']{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } iron-selector#chips{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } #chips-wrapper{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } ytd-feed-filter-chip-bar-renderer{ display: none !important; background-color: inherit !important; border: none !important; height: 0 !important; width: 0 !important; } .html5-scrubber-button:hover, .ytp-scrubber-button:hover, .ytp-swatch-background-color, .ytp-swatch-background-color-secondary { background: #ffd9e4 !important; font-family: new penji !important; } .play-progress, .ytp-play-progress { background: #ffd9e4 !important; font-family: new penji !important; } .ytp-volume-slider-track, .ytp-volume-slider-handle:before { background: #ffd9e4 !important; z-index: -117; font-family: new penji !important; } .ytp-settings-button.ytp-hd-quality-badge::after, .ytp-settings-button.ytp-4k-quality-badge::after, .ytp-settings-button.ytp-5k-quality-badge::after, .ytp-settings-button.ytp-8k-quality-badge::after, .ytp-settings-button.ytp-3d-badge::after { background-color: #ffd9e4 !important; font-family: new penji !important; } .ytp-swatch-color { color: #ffd9e4 !important; } .ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox { background: #F3D2D2 !important; font-family: new penji !important; } .ytp-chrome-controls .ytp-button.ytp-youtube-button:hover:not([aria-disabled="true"]):not([disabled]) .ytp-svg-fill-logo-tube-lozenge { fill: #F3D2D2 !important; font-family: new penji !important; } .ytp-cued-thumbnail-overlay:hover .ytp-large-play-button-bg, .ytp-large-play-button.ytp-touch-device .ytp-large-play-button-bg { fill: #F3D2D2 !important; font-family: new penji !important; } .resume-playback-progress-bar { background: #F3D2D2 !important; font-family: new penji !important; } .ytp-chrome-controls .ytp-button[aria-pressed]::after { background-color: #F3D2D2 !important; font-family: new penji !important; } @font-face { font-family: 'new penji'; font-weight: normal; font-style: normal; src: url('https://dl.dropbox.com/scl/fi/fckco316lz0d4ktm7h1om/mikiyu-newpenji-p.ttf?rlkey=ms7t60qr5qip8rfoylhjkzng1&dl=0') format('opentype'); /* change "opentype" to "truetype" if the font is a .ttf file */ } html:after { padding: 5px; text-align: center; color: #fefbfb; font-size: 8px; font-family: new penji !important; display: block; text-transform: uppercase; position: fixed; margin: 0 auto; width: 100%; left: 0; bottom: 0; right: 0; opacity: 0.2; } .ytd-page-manager,body.site-center-aligned{background: #fefbfb!important;background:#fefbfb url("https://i.imgur.com/QXjfQ2i.jpg") repeat !important; font-family: new penji !important; } ::-webkit-scrollbar { width: 6px!important; height: 10px!important; background: transparent!important; } ::-webkit-scrollbar-thumb { background-color: #ffeff3!important; -webkit-border-radius: 5ex!important; border: 1px solid #e3cccc!important; } ::selection {text-shadow: 0 0 2px #cec1bb;color:#cec1bb; background: transparent;} ::-moz-selection {text-shadow: 0 0 2px #cec1bb;color:#cec1bb} input:-webkit-autofill {-webkit-box-shadow: 0 0 0px 1000px #e3cccc inset!important;-webkit-animation-name: autofill;-webkit-animation-fill-mode: both;border-color: #9F918E !important;} @-webkit-keyframes autofill {to {color: #e3cccc;border-color: #9F918E !important;}} html:before{color: #C3B2AE !important; font-family: new penji !important;} #subscribers,.ytd-video-report-action-result-renderer,.yt-options-renderer,#content-text,.line-text,.yt-sharing-renderer,.ytd-menu-navigation-item-renderer,#vote-count,#textarea,.paper-input,.ytd-menu-service-item-renderer,#channel-title,.date,#search,#video-title,.description,#label,.title{font-family: new penji !important; color: #A69491 !important;} #result-count,.ytd-report-form-renderer,.ytd-sharing-embed-renderer,#simplebox-placeholder,#icon-label,.ytd-toggle-menu-service-item-renderer,#message,.content,#description,.message.ytd-notification-renderer,.ghp-iconTextComponent-label,#email{color: #9A8C8A !important;font-family: new penji !important;} #video-count,#guide-section-title,.content-text,#embed-label,#upnext,.count-text,.ytd-channel-about-metadata-renderer,#title,#subscriber-count,#byline,#content,.view-count,.yt-simple-endpoint,#account-name{color: #7F726F !important;font-family: new penji !important;} .ytd-report-form-details-sub-view-renderer,#text,#icon-label,.tab-content,#metadata-line span,.less-button,.more-button,.ytd-video-meta-block,#author-name{color: #9A8C8A !important; font-family: new penji !important;} svg:hover {fill: #938384;} svg {fill: #938384; font-family: new penji !important;} .sbqs_c{color: #AFA09C !important;} .sbqs_c b{color: #C2B3AF !important; font-family: new penji !important;} .sbdd_b,.sbsb_a{background-color: rgba(237,216,216,0.1)!important;border-color: #D7C5C1 !important; font-family: new penji; } .sbsb_d{background-color: rgba(116, 101, 99, 0.33) !important; font-family: new penji !important;} html { background-image: url(https://i.imgur.com/nOaOAfg.jpg) !important; background: transparent !important; background-repeat: no-repeat !important; background-attachment: fixed !important; font-family: new penji !important; } ytd-watch-flexy[flexy]:not([full-bleed-player][full-bleed-no-max-width-columns]) #columns.ytd-watch-flexy { max-width: calc(1280px + var(--ytd-watch-flexy-sidebar-width) + var(--ytd-margin-6x)* 3); background-image: url(https://i.imgur.com/QXjfQ2i.jpeg) !important; } #like-bar.ytd-sentiment-bar-renderer{background-color: #DCC9CB !important; font-family: new penji !important;} .ytd-video-secondary-info-renderer,.ytd-watch,.ytd-app,.ytd-app,.yt-multi-page-menu-section-renderer{background-color: transparent !important; font-family: new penji !important;} b,::before,h3,header,i,button,footer,label,td,table,div,body,html,a,li,ui,ul,span{text-shadow: 0 0 0 !important; font-family: new penji !important;} ::before,h3,header,i,button,footer,label,td,table,div,body,html,a,li,ui,ul,span{-webkit-box-shadow: 0 0 0 !important;box-shadow: 0 0 0 !important; font-family: new penji !important;} .yt-live-chat-text-message-renderer{background-color: transparent !important;background-image: -moz-linear-gradient(top, #F7DDDD, #F7E1E1) !important;background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0,0,0,0)), to(rgba(0,0,0,0))) !important;background-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0)) !important;background-image: -o-linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0)) !important;background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0)) !important;font-family: new penji !important;} #container.ytd-searchbox{background: #fcf5f5 !important;color: #E4D1D1 !important;border-color: #E4D1D1 !important; font-family: new penji !important; } ::-webkit-input-placeholder {color: #C8BBB8 !important;} :-moz-placeholder { /* Firefox 18- */ color: #C8BBB8 !important;} ::-moz-placeholder { /* Firefox 19+ */ color: #C8BBB8 !important;} :-ms-input-placeholder {color: #C8BBB8 !important;} .yt-next-continuation,.ghp-button:not(:disabled):hover,.ghp-iconTextComponent:hover{border-color: #FFFCF4!important;border-bottom-color: #fcf5f5!important;color: #A29391 !important;background-color: #CCBBB9 !important; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .header.ytd-playlist-panel-renderer,ytd-alert-with-button-renderer[is-displayed],#header.ytd-app,#tabs-inner-container,.yt-live-chat-message-input-renderer-0,.yt-live-chat-header-renderer-0,.ghp-header,#yt-masthead-container,.ytd-multi-page-menu-renderer,.dropdown-content,a.ytd-active-account-header-renderer,#guide-renderer{border-color: #9D8F8F!important;background:#fff1f4!important; color: #CFBABA!important; font-family: new penji !important;} .playlist-items.ytd-playlist-panel-renderer,#embed-panel,.ytd-popup-container,.ghp-dialog{border: 1px solid #fff1f4!important;background:#fff1f4!important; font-family: new penji !important;} html:not([style-scope]):not(.style-scope),#channel-header{border-color: #fff1f4!important;background: #fff1f4!important; font-family: new penji !important;} paper-dialog-scrollable.is-scrolled:not(:first-child)::before,paper-dialog-scrollable.is-scrolled:not(:first-child)::after,#buttons.ytd-form-popup-renderer,.ytd-menu-popup-renderer{background: #fff1f4!important; font-family: new penji !important;} a.ytd-menu-navigation-item-renderer:hover,#unfocused,.yt-live-chat-text-message-renderer-0{background: #fff1f4!important; font-family: new penji !important;} .focused-line,.unfocused-line{background:#fff1f4!important; font-family: new penji !important;} #primary.ytd-two-column-search-results-renderer,#main.ytd-watch,.ytd-browse,#primary-links.ytd-c4-tabbed-header-renderer, #secondary-links.ytd-c4-tabbed-header-renderer {} #tabs-inner-container, .yt-horizontal-list-renderer *, #footer-container, #footer, #footer-main, #footer-links, #top, #primary, .live-chat-expander, #chat-messages, .yt-live-chat-renderer, #hide-live-comments, #commentbox #main #footer, #sponsor-button ytd-button-renderer, #embed-layout-options, ytd-playlist-sidebar-renderer #items, .branded-page-v2-container, .ytp-cards-teaser-box, .iv-card-content, .comment-section-sort-menu, .ytp-upnext-top, .yt-masthead-creation-clickcard > .yt-uix-clickcard-card-border { font-family: new penji !important; } a.yt-uix-sessionlink, .ytd-subscribe-button-renderer, ytd-playlist-sidebar-renderer, ytd-two-column-browse-results-renderer, #comments ytd-item-section-renderer #header, #dismissable #contents *, #page-container #content, .ytd-playlist-panel-renderer, #player, #player-container, ytd-c4-tabbed-header-renderer, .ytd-c4-tabbed-header-renderer, ytd-c4-tabbed-header-renderer app-header-layout, #movie_player, #like-button a #button[is="paper-icon-button-light"] *, #dislike-button a #button[is="paper-icon-button-light"] *, #top-level-buttons ytd-toggle-button-renderer a #button[is="paper-icon-button-light"] *, #top-level-buttons ytd-button-renderer a #button[is="paper-icon-button-light"] *, #guide-button *, .yt-next-continuation, #guide *, #masthead-container *, #body-container #page-container #content .branded-page-v2-container-flex-width *, #theater-background, #masthead-search *, #masthead-appbar, #yt-uix-clickcard-card1287 *, .comment-section-sort-menu *, #watch7-sidebar *, #placeholder-player div, #non-appbar-vm-video-actions-bar *, .vm-video-item-content, .live-dashboard-status-bar, .live-dashboard-status-bar-container, .video-settings-title, .video-settings-description, .detail-message, .yt-uix-dragdrop-drag-handle, .tabs-area *, .subscribers-header .sort-menu *, .comment-settings-header, .C2KYWWB-b-c, .C2KYWWB-b-n, #contentTable, #analyticsCard, .C2KYWWB-b-d, #gwt-debug-topEntity *, .C2KYWWB-P-j, #gwt-debug-demographicsGroup, .C2KYWWB-a-a, .C2KYWWB-P-h, #gwt-debug-performanceGroup, .C2KYWWB-a-a, .C2KYWWB-P-D, .channel-header, .yt-uix-subscription-button, .yt-uix-subscription-preferences-button, .ytp-ce-subscribe-container *, .comment-simplebox-text, a[is="yt-endpoint"] #channel-container, a[is="yt-endpoint"] #channel-container *, .player-controls-card .card-content *, .ytp-ce-channel-metadata, #vm-search-container *, .ytd-unlimited-manage-subscription-page-renderer, .dropdown-content[slot="dropdown-content"] *, .metadata-container[role="tabpanel"], span.yt-uix-form-input-container.yt-uix-form-input-textarea-container, #container #sections, iron-dropdown #container #sections *, ytd-browse[page-subtype="playlist"] #alerts, #columns, #offer-module #header, #offer-module #contents, .ytd-banner-promo-renderer-background, .ytp-transparent .html5-main-video { background-color: rgba(250,242,242,0.08) !important; z-index: 0; font-family: new penji !important; } ytd-shelf-renderer.ytd-item-section-renderer,ytd-playlist-sidebar-primary-info-renderer,ytd-report-form-renderer,#guide-links-primary,.ytd-app,.buttons.yt-confirm-dialog-renderer,#additional-info,#action-buttons,#title-bar,#start-at-wrapper,#share-target-wrapper,.ytd-watch-next-secondary-results-renderer,#buttons.ytd-form-popup-renderer,.ytd-channel-about-metadata-renderer,.ytd-browse-secondary-contents-renderer,#placeholder-area.ytd-comment-simplebox-renderer,#unfocused,#underline,.ytd-watch,.ytd-section-list-renderer,.ghp-separator,.ghp-searchResults .ghp-iconTextComponent-label,.ytd-multi-page-menu-renderer,.ytd-guide-renderer{border-color: #EED0D0 !important; font-family: new penji !important;} #logo-icon.ytd-topbar-logo-renderer #youtube-paths path { fill: var(--yt-swatch-logo-override, #e3cccc) !important; font-family: new penji !important; } span.yt-core-attributed-string--link-inherit-color{ color: #606060 !important; } .badge-shape-wiz--default.badge-shape-wiz--overlay, ytd-thumbnail-overlay-bottom-panel-renderer[use-modern-collections-v2] { font-family: new penji; color: #9A8C8A; background-color: #ffe2eae0 !important; } .YtProgressBarLineProgressBarPlayed, .YtProgressBarPlayheadProgressBarPlayheadDot { background-color: #ffc3d4; } .ytd-menu-popup-renderer, ytd-menu-popup-renderer tp-yt-paper-listbox.ytd-menu-popup-renderer { background: #ffe5ec !important; } .sbpqs_a { color: #606060; } .sbsb_i { color: #A69491; transition: 0.3s all ease; } .sbsb_i:hover{ color: #606060; text-decoration: none; } .sbsb_b { background: #ffe5ec !important; color: #A69491; font-family: new penji; } td.ytd-about-channel-renderer, .yt-channel-external-link-view-model-wiz__title, #snippet.ytd-text-inline-expander, .metadata-stats.ytd-playlist-byline-renderer, ytd-dropdown-renderer[no-underline] tp-yt-paper-dropdown-menu-light .tp-yt-paper-dropdown-menu-light[style-target=input] { color: #A69491; } div.immersive-header-gradient.style-scope.ytd-playlist-header-renderer { background-color: #fff1f4 !important; font-family: new penji !important; } #contentContainer.tp-yt-app-header { background-color: #fff1f4 !important; } immersive-header-gradient style-scope ytd-playlist-header-renderer { background: none !important; } a.ytd-mini-guide-entry-renderer { background-color: #fff1f4 !important; } ytd-page-manager>*.ytd-page-manager { background-color: #fff1f4 !important; } #contentContainer.tp-yt-app-header { background-color: #fff1f4 !important; } .yt-spec-button-shape-next--call-to-action.yt-spec-button-shape-next--text, .yt-spec-button-shape-next--call-to-action.yt-spec-button-shape-next--outline{ color: #cbb0ad; border: none; } #sections.ytd-guide-renderer>*.ytd-guide-renderer:not(:last-child), #sections.ytd-guide-renderer>ytd-guide-section-renderer.ytd-guide-renderer:not(:first-child), #sections.ytd-guide-renderer>ytd-guide-subscriptions-section-renderer.ytd-guide-renderer, #guide-links-primary.ytd-guide-renderer, #guide-links-secondary.ytd-guide-renderer, #footer.ytd-guide-renderer>#copyright { background-color: #fff1f4 !important; } .yt-spec-button-shape-next--call-to-action.yt-spec-button-shape-next--text:hover, .yt-spec-button-shape-next--call-to-action.yt-spec-button-shape-next--outline:hover{ background: none !important; } yt-smartimation.ytd-subscribe-button-renderer { border: 1px dotted #cbb0ad; border-radius: 5px; } #container.ytd-masthead { background-color: #fff1f4 !important; border-bottom: 1px dotted #cbb0ad; } ytd-mini-guide-renderer.ytd-app { background-color: #fff1f4 !important; border-right: 1px dotted #cbb0ad; border-top: 1px dotted #cbb0ad; } .ytd-guide-entry-renderer:hover, .yt-next-continuation:hover {} .yt-core-attributed-string--link-inherit-color { border-bottom: none!important; } yt-formatted-string.ytd-menu-service-item-download-renderer , #channel-handle.ytd-active-account-header-renderer, #label.ytd-compact-link-renderer, #subtitle.ytd-compact-link-renderer, .yt-tab-shape-wiz__tab--tab-selected, yt-dropdown-menu .yt-dropdown-menu[style-target=label-text]{ color: #A69491; font-family: new penji; } #expand.ytd-text-inline-expander, #sub-header-text.ytd-video-description-transcript-section-renderer, .button.ytd-text-inline-expander, tp-yt-paper-button.ytd-tri-state-button-view-model, #description-text.ytd-video-renderer, yt-formatted-string[ellipsis-truncate-styling] { font-family: new penji !important;; } .yt-core-attributed-string--link-inherit-color { border-bottom:1px dotted #C3B2AE; text-decoration:none; color: #7F726F !important; } ytd-author-comment-badge-renderer { background-color:#ffd9e4; } .yt-core-attributed-string__link--call-to-action-color { border-bottom:1px dotted #C3B2AE !important; text-decoration:none; color: #7F726F !important; } #description.ytd-watch-metadata, .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal { background: none; } .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal:hover { background: none; } #progress.ytd-thumbnail-overlay-resume-playback-renderer{ background-color:#ffd9e4; } #guide-renderer{background: #fefbfb!important; } `; addStyleString(c); var oldUrl = location.href; var goingThere = false; setInterval(function(){ if(location.href.includes('/shorts/') && oldUrl !== location.href){ var newUrl = location.href.replace('shorts/', 'watch?v='); console.log(newUrl) oldUrl = location.href; location.href = newUrl; } }, 50); }
copy text