// ==UserScript==
// @id b77e78bb-5ab5-403b-ae45-7540077fbc64
// @name Youtube - Right Side Description
// @namespace Takato
// @author Takato
// @copyright 2010+, Takato (https://greasyfork.org/users/1158/)
// @licence Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International - Additional conditions apply; https://greasyfork.org/scripts/976/
// @description Moves the video description to the right of the video, adds options for smaller video, retro player, retro style, and more
// @icon https://i.imgur.com/RAHw2kQ.png https://i.imgur.com/qlQhuaa.png
// @icon64 https://i.imgur.com/qlQhuaa.png
// @resource icon https://i.imgur.com/RAHw2kQ.png
// @resource icon64 https://i.imgur.com/RAHw2kQ.png
// @version 2020.12.20
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js
// @website https://greasyfork.org/scripts/976/
// @homepageURL https://greasyfork.org/scripts/976/
// @noframes
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
// @grant GM_addStyle
// @grant GM_getResourceURL
// @grant GM.getValue
// @grant GM.setValue
// @grant GM.deleteValue
// @grant GM.addStyle
// @grant GM.getResourceUrl
// @include https://www.youtube.com/*
// ==/UserScript==
// This script is licenced under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-nc-sa/4.0/) with additional conditions.
// See https://greasyfork.org/scripts/976/ for full details of the licence and conditions.
(async function() {
var script = {};
script.version = "2020.12.20";
// SETTINGS -----------------------------
// Available by hovering over the Youtube header on a video page. The settings button will appear.
// --------------------------------------
// Don't edit the code! All settings are available by clicking the button in the Youtube header. Suggest changes in the discussion/feedback section.
// Defining static script properties
script.name = "Right Side Description"; // Previously known as Better Watch Page
script.shortname = "RSD";
script.website = "https://greasyfork.org/scripts/976/";
script.discussion = "https://greasyfork.org/scripts/976/feedback";
script.icon = await GM.getResourceUrl("icon");
script.icon64 = await GM.getResourceUrl("icon64");
script.mainCSS = "/* Top Title Enabled */ .rsdTitle ytd-watch-flexy:not([theater]) #rsd-title {margin-bottom:4px;} .rsdTitle ytd-watch-flexy[theater] #rsd-title, .rsdTitle ytd-watch-flexy:not([theater]) ytd-video-primary-info-renderer h1.title {display:none;} .rsdTitle ytd-watch-flexy:not([theater]):not([fullscreen]) #primary.ytd-watch-flexy {padding-top:5px;} html:not(.rsdTitle) #rsd-title {display:none;} /* Side description (always) enabled */ #meta.rsd-description {width:auto; padding-right:0; order:0; margin-bottom:16px;} .rsdTitle ytd-watch-flexy:not([theater]) #meta.rsd-description {margin-top:9px;} ytd-video-secondary-info-renderer {max-height:390px; overflow:auto; width:auto; padding-top:0; padding-bottom:0; margin-right: 0 !important; background-color:var(--yt-playlist-background-item); padding:8px; border-bottom-width:0px; --yt-endpoint-text-decoration:underline;} html[dark] ytd-video-secondary-info-renderer {background-color:var(--yt-dark-surface-400);} @media screen and (min-width: 1000px) { ytd-video-secondary-info-renderer {margin-left:-14px;} } ytd-video-secondary-info-renderer #top-row.ytd-video-secondary-info-renderer {padding-top:0;} ytd-video-secondary-info-renderer #top-row.ytd-video-secondary-info-renderer paper-button {padding:4px 10px; min-width:20px;} ytd-video-secondary-info-renderer #subscribe-button.ytd-video-secondary-info-renderer ytd-subscription-notification-toggle-button-renderer {--yt-button-icon-size:24px; --yt-button-icon-padding:0px;} ytd-video-secondary-info-renderer #owner-sub-count {text-align:right;} ytd-video-secondary-info-renderer #subscribe-button, ytd-video-secondary-info-renderer #sponsor-button, ytd-video-secondary-info-renderer #analytics-button {align-self:start;} ytd-video-secondary-info-renderer #date.ytd-video-primary-info-renderer #dot {display:none;} ytd-video-secondary-info-renderer ytd-expander.ytd-video-secondary-info-renderer {margin-left:0; max-width:100%; font-size:1.3rem; line-height:normal; --ytd-expander-collapsed-height:auto !important;} ytd-video-secondary-info-renderer #less {display:none;} ytd-video-secondary-info-renderer #title.ytd-metadata-row-renderer {width:auto; font-size:1.1rem; line-height:normal;} ytd-video-secondary-info-renderer .content.ytd-metadata-row-renderer {width:auto; font-size:1.1rem; line-height:normal; white-space:normal;} ytd-video-secondary-info-renderer .content.content-line-height-override.ytd-metadata-row-renderer {line-height:normal;} ytd-video-secondary-info-renderer .rsdMusicCollapse:not(:hover) > * {display:none !important;} ytd-video-secondary-info-renderer .rsdMusicCollapse:not(:hover):before {content:'Hover to view'; opacity:0.6; font-size:1.1rem; line-height:normal; color:var(--yt-spec-text-primary);} ytd-video-secondary-info-renderer #contents.ytd-rich-metadata-row-renderer {margin-right:0;} ytd-video-secondary-info-renderer ytd-rich-metadata-renderer {transform:scale(0.68); transform-origin:top left; margin-right:-88px !important; margin-bottom:-30px !important; margin-top:0 !important; min-width:none; max-width:none;} #playlist.ytd-watch-flexy {margin-bottom:16px;} /* Below Video */ /*html:not(.rsdTitle) ytd-watch-flexy:not([theater]) ytd-video-primary-info-renderer {padding-top:10px;} ytd-video-primary-info-renderer #count {float:right; margin-top:-14px;} html:not(.rsdTitle) ytd-video-primary-info-renderer #count, ytd-watch-flexy[theater] ytd-video-primary-info-renderer #count {margin-top:-22px;} ytd-video-primary-info-renderer #count yt-view-count-renderer {font-size:18px;} ytd-video-primary-info-renderer #sentiment.ytd-video-primary-info-renderer {width:100%;}*/ ytd-video-primary-info-renderer #count yt-view-count-renderer {font-size:17px;} /*Retro Theme Enabled */ html:not([dark]).rsdRetro ytd-app[is-watch-page] {background-color: white !important;} .rsdRetro body, .rsdRetro input, .rsdRetro textarea, .rsdRetro select {font-family:arial,sans-serif;} .rsdRetro #masthead-container.ytd-app::after {display:none;} .rsdRetro #masthead:not([dark]) {border-bottom: 1px solid #CCCCCC;} .rsdRetro #container.ytd-masthead {height:49px;} .rsdRetro #masthead #logo-icon-container.ytd-topbar-logo-renderer {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAoCAIAAAH9A4jFAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkS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q5dALxr166zWoni/enThEL58/DhTTU1/sbL3r1Ltu0UCsXvFHfe2NiYn5/PRD2bzQZAqVSqVCoANpuNCYUtLS3Z2dkA8vLyiEalUhHra2tru3HjBlFaA2e2wjCFT2NdGBJwQ31CCEyDg4M1NTWM39Hr9VRc8nc0mK4HqdcDwb01JyeHLkiZaaQrQ9enqw2m74kwITCR9s+i6/zfwzTX08NzuVjSuqjD5LPbP8tkSzaAnjwhgmtoaF1VFaP3NjdvyM+n9e4dOzYGmI8puVzw7Bm9/K1ev/7mTQAzGRnCgJMl01gXOvj8adILBnKpBhGHvHaxLJiKioq0Wu2PWhPwV2bmUjD9NDbGwLTm1KkgI3HtGgMT0bszMlKMRvLrm9LSdWNj9HLHhQsJ7e0AXOnp22/fpv/Xt337z3fvEs3rkhLB+DgAT3n5ltra8NPjMszcN2GyWCwEHdJHF4vFBoPB6/WS/qshcGeYNm1aWppEIrFYLJPUbaFhenfs2OdHj9jr8xcviDA9NLRw4kSwJrt+ncA0PzPz7PLlpIKCZIqtm5DJ4kdG6OUAxi5dWnC7M86ejRMI/MmUWOxPv5uaNhYVkd1ednQA2BHI8p29vX9rNMEOY1XV98IEwG63V1ZWekILerlcrqF2pG0HgFarnZycZLUm1/nz7rY2VphSJyb8MD148EGhCD6MBw/+EkjoALw3maaNRvGdO+Tri0OHuDYbvXxCp0tMSdlQUsIseavRfCKvZ7BtyDoHQPKtW1FjCD4OD79a2j2tqpHpcESTb3p17pwr4FlW7fi1pydh9+4os5cfx8efSqURIWQjPjaWlqY1N68C9jKUwPaMji643Z6nTxnlnMPxyeFYNHPB7faMji6bxRQIErOywpUJlJK3dStvyxauQJAQFoX/GQCBvuuEYznpdQAAAABJRU5ErkJggg==) 0 0 no-repeat; } .rsdRetro #masthead[dark] #logo-icon-container.ytd-topbar-logo-renderer {background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAAoCAYAAAFyYR+SAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJb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wVR1Hj0obQuUwW5HjKsaJQhLr3DSmJFhBz0lDyPc1GGdKQe/qcHec/rsac3HAv5zWkRnHSzoP4ZodAefu6FoZCfMX5rkO/7zPpCdP0FzY6spaGSeIGc/NlTZEOXcPHOgxb/mIWqbX1IhXWyvXV67sZevjOmGKY63ZM45MuHnzZimbOVOe27ZNsnVHTVdjo9zetEk6cOzGnq2Q/DqYoJbDh9WzSqZNkxcOHZIytkFQuKAhfy5ZIg3Yq7usTL2f/o5b+NYzQwN9TVMqq5s/X8IjVfS7KuVD4H2iGNpfxvkJ4jbaLLCnyoMUK2fINUgMk9CIBAjm4m+uYiNwePRoldiRoAbCCMMcepBotR6STl/FToUsZOjKROE5PXYUvivMjjc6YVOfxx4p3BvHnjSdrk4MKVghhLohaJV5L2vUYtXSIcmIFmSo56HOWT4jaOo+5X+xdOT/NUD5y4io2Gp4+UkoDDXAZyxG5FIByfrSzbQxdWgxIAah2p7leR+HtGl9Uip0NAnfQSvGsP0GjCnAZF/f0zrLL8BvrCoV6L/zNQLg6W8M66NnZevuAL/fsSK9pHXeFZgJ7WJiGuaJQtqb9TmPbIz5KeS6t7hhKNAk/A/w2DIw7h8LEgAAAABJRU5ErkJggg==); } .rsdRetro #masthead #logo-icon-container.ytd-topbar-logo-renderer svg {visibility:hidden;} .rsdRetro #masthead #logo-icon-container.ytd-topbar-logo-renderer {width:99px; height:42px;} .rsdRetro ytd-topbar-logo-renderer #country-code {display:none;} .rsdRetro #page-manager.ytd-app {margin-top: 49px;} .rsdRetro #rsd-title {font-size:19px; font-weight:bold;} .rsdRetro ytd-video-secondary-info-renderer {background:#EEEEEE; border:1px solid #CCCCCC; font-size:12px; padding:6px; margin-bottom:8px;} html[dark].rsdRetro ytd-video-secondary-info-renderer {background-color:var(--yt-dark-surface-400); border-color:var(--yt-border-color);} .rsdRetro ytd-video-secondary-info-renderer a.yt-simple-endpoint:not(.ytd-button-renderer):not(.ytd-subscription-notification-toggle-button-renderer), .rsdRetro ytd-video-secondary-info-renderer a.yt-simple-endpoint:not(.ytd-button-renderer):not(.ytd-subscription-notification-toggle-button-renderer):hover {color:#0033CC;} html[dark].rsdRetro ytd-video-secondary-info-renderer a.yt-simple-endpoint:not(.ytd-button-renderer), html[dark].rsdRetro ytd-video-secondary-info-renderer a.yt-simple-endpoint:not(.ytd-button-renderer):hover {color:var(--yt-spec-call-to-action);} .rsdRetro ytd-video-secondary-info-renderer #top-row.ytd-video-secondary-info-renderer {margin-bottom:2px; } .rsdRetro ytd-video-secondary-info-renderer #avatar.ytd-video-owner-renderer {border-radius:0; border:1px solid white; outline:1px solid #999999; margin:1px; margin-right:7px;} html[dark].rsdRetro ytd-video-secondary-info-renderer #avatar.ytd-video-owner-renderer {outline-color:#1b1b1b; border-color:var(--yt-border-color);} .rsdRetro ytd-video-secondary-info-renderer #upload-info.ytd-video-owner-renderer {justify-content:flex-start;} .rsdRetro ytd-video-secondary-info-renderer #upload-info.ytd-video-owner-renderer > * {font-size:1em; color:black;} html[dark].rsdRetro ytd-video-secondary-info-renderer #upload-info.ytd-video-owner-renderer > * {color:white;} .rsdRetro ytd-video-secondary-info-renderer #owner-name.ytd-video-owner-renderer, .rsdRetro ytd-video-secondary-info-renderer #channel-name.ytd-video-owner-renderer {font-weight:bold; font-size:1em;} html:not([dark]).rsdRetro ytd-video-secondary-info-renderer yt-formatted-string[has-link-only_]:not([force-default-style]) a.yt-simple-endpoint.yt-formatted-string {color:#0033CC;} .rsdRetro ytd-video-secondary-info-renderer #upload-info.ytd-video-owner-renderer .date.ytd-video-secondary-info-renderer { font-size:1em; color:var(--yt-primary-text-color); } .rsdRetro ytd-video-secondary-info-renderer ytd-expander.ytd-video-secondary-info-renderer {font-size:1em; line-height:15px;} html:not([dark]).rsdRetro ytd-video-secondary-info-renderer .content.ytd-video-secondary-info-renderer {color:#333;} .rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-container-renderer {border-top:1px solid #CCCCCC; padding-top:2px; margin-top:8px;} html[dark].rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-container-renderer {border-color:var(--yt-border-color);} .rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-renderer {margin:0; margin-top:2px; } .rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-header-renderer[has-divider-line] {margin-top:0; border-top:0;} .rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-header-renderer {display:inline-block; padding-top:0; } .rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-header-renderer + ytd-metadata-row-header-renderer {margin-left:8px; padding-left:8px; border-left:1px solid #CCCCCC;} html[dark].rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-header-renderer + ytd-metadata-row-header-renderer {border-left-color:var(--yt-border-color);} .rsdRetro ytd-video-secondary-info-renderer ytd-metadata-row-header-renderer .content.ytd-metadata-row-header-renderer {font-size:0.9em;} .rsdRetro ytd-video-secondary-info-renderer #title.ytd-metadata-row-renderer {font-size:0.9em;} .rsdRetro ytd-video-secondary-info-renderer .content.ytd-metadata-row-renderer {font-size:0.9em;} /* Retro Player Enabled */ .rsdPlayer ytd-player#ytd-player #container.ytd-player {overflow:hidden; padding-bottom:30px;} .rsdPlayer #player.ytd-watch-flexy {margin-bottom:30px;} .rsdPlayer ytd-watch-flexy[theater] #player-theater-container {margin-bottom:30px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) {overflow:visible; contain: layout size;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-player-content, #movie_player:not(.ytp-fullscreen) .ytp-settings-menu {bottom:8px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-player-content.html5-endscreen {bottom:39px; top:28px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-bottom:not(.ytp-preview), .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-paid-content-overlay {bottom:14px; top:auto !important;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-preview {bottom:46px; top:auto !important;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .caption-window.ytp-caption-window-bottom {margin-bottom:0;} .rsdPlayer #movie_player:not(.ytp-fullscreen):not(.paused-mode):not(.ytp-cards-teaser-shown):not(.ytp-iv-drawer-open):not(:hover) .ytp-cards-button {opacity:0;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-gradient-bottom {display:none;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-bottom { background-color:#ccc; color:#000; text-shadow:none; border:0px solid #ccc; border-width: 0px 12px 0 12px; left:0 !important; opacity:1; bottom:-30px; height:27px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container {bottom:27px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-list {transform-origin:center bottom !important; background-color:#444;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) {margin-left:-12px; width:calc(100% + 24px); } .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:only-child {width:100% !important;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:first-child:not(:only-child) {padding-left:12px} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:first-child:not(:only-child) .ytp-progress-list {width:calc(100% + 14px); margin-left:-12px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:last-child:not(:only-child) .ytp-progress-list {margin-right:-12px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container[style*='margin-right: 2px;'] .ytp-progress-list {width:calc(100% + 2px);} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls {padding-left:0; padding-right:0; margin-left:-12px; margin-right:-12px; height:27px; line-height:27px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-display {height:34px; margin-top:-3px; font-size:95%; line-height:34px;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chapter-container {font-size:100%; line-height:27px; color:#4d4d4d; transition: opacity 0.05s} .rsdPlayer #movie_player:not(.ytp-fullscreen):not(.paused-mode):not(:hover) .ytp-chrome-bottom .ytp-chapter-container {opacity:0; transition: opacity 0.2s 2s} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-separator, .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-duration {color:#666;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button, .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel {color:#4d4d4d; opacity:1; height:34px; margin-top:-3px; flex-shrink:0;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-slider {min-height:unset;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:before, .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle, .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:after {background-color:#4d4d4d;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:after {opacity:0.35;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button:hover {color:#3d3d3d;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button .ytp-svg-fill, .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button path[fill='#fff'] {fill:currentColor;} .rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button .ytp-svg-shadow {stroke:none;} html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-bottom {background-color:#1b1b1b; color:#fff; border-color:#1b1b1b;} html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chapter-container {color:#8E8E8E; } html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-separator, html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-duration {color:#999;} html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button, html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel {color:#8E8E8E; } html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:before, html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle, html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:after {background-color:#8E8E8E;} html[dark].rsdPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button:hover {color:#EBEBEB;} /* Smaller player size enabled */ .rsdAltSize ytd-watch-flexy[flexy_] { --ytd-watch-flexy-width-ratio: 16 !important; --ytd-watch-flexy-height-ratio: 9 !important; --ytd-watch-flexy-min-player-width: var(--ytd-watch-flexy-max-player-width); --ytd-watch-flexy-min-player-height: var(--ytd-watch-flexy-max-player-height); --ytd-watch-flexy-max-player-width: 640px; --ytd-watch-flexy-max-player-height: 360px; } @media screen and (max-width:656px) { .rsdAltSize ytd-watch-flexy[flexy_] { --ytd-watch-flexy-max-player-width: 426px; --ytd-watch-flexy-max-player-height: 240px ; } } @media screen and (min-width:1294px) and (min-height:630px) { .rsdAltSize ytd-watch-flexy[flexy_] { --ytd-watch-flexy-max-player-width: 854px; --ytd-watch-flexy-max-player-height: 480px ; } } @media screen and (min-width:1720px) and (min-height:980px) { .rsdAltSize ytd-watch-flexy[flexy_] { --ytd-watch-flexy-max-player-width: 1280px; --ytd-watch-flexy-max-player-height: 720px ; } } .rsdAltSize ytd-watch-flexy[theater] { --ytd-watch-flexy-max-player-width: 854px ; --ytd-watch-flexy-max-player-height: 480px ; } @media screen and (min-width:1320px) and (min-height:870px) { .rsdAltSize ytd-watch-flexy[theater] { --ytd-watch-flexy-max-player-width: 1280px; --ytd-watch-flexy-max-player-height: 720px; } } .rsdAltSize ytd-watch-flexy[theater]:not([fullscreen]) #player-theater-container { height: var(--ytd-watch-flexy-max-player-height) !important; } .rsdAltSize ytd-watch-flexy[theater]:not([fullscreen]) ytd-player > #container { width: var(--ytd-watch-flexy-max-player-width); margin-left:auto; margin-right:auto; } .rsdAltSize #movie_player.ytp-transparent { background-color: black; } .rsdAltSize ytd-watch-flexy[flexy_][is-two-columns_] #primary.ytd-watch-flexy { max-width: var(--ytd-watch-flexy-max-player-width) !important; min-width: var(--ytd-watch-flexy-min-player-width) !important; } .rsdAltSize ytd-watch-flexy[flexy_][is-vertical-video_] #player-container-inner.ytd-watch-flexy { position: relative; } .rsdAltSize ytd-watch-flexy[theater]:not([fullscreen])[flexy_][is-two-columns_] #primary.ytd-watch-flexy { max-width: calc(var(--ytd-watch-flexy-max-player-width) - 422px) !important; min-width: calc(var(--ytd-watch-flexy-min-player-width) - 422px) !important; }";
script.settingsCSS = "ytd-app:not([is-watch-page]) #bwp-retrostyle-toggle {display:none;} #bwp-retrostyle-toggle {filter:none;} #bwp-retrostyle-toggle img {transition:filter 0.05s linear, transform 0.05s linear;} ytd-masthead:not(:hover) #bwp-retrostyle-toggle:not(.open):not(:hover) img {filter:grayscale(1) contrast(0) brightness(0.8); transform:scale(0.75); } ytd-masthead[dark]:not(:hover) #bwp-retrostyle-toggle:not(.open):not(:hover) img {filter:grayscale(1) contrast(0) brightness(2);} #rsd-menu {position:absolute; position:fixed; top:55px; right:10px; width:500px; height:auto; max-height:calc(100vh - 60px); background:white; background:var(--yt-spec-brand-background-primary); color:black; color:var(--yt-spec-text-primary); border:1px black solid; border-color:var(--yt-spec-text-primary); z-index:2200; border-radius:2px; padding:12px; box-sizing: border-box; font-size:16px} #rsd-menu .arrow {position:absolute; width:15px; height:15px; border:black solid 1px; border-color:var(--yt-spec-text-primary); border-width:1px 1px 0 0; background:inherit; transform:rotate(-45deg); top:-9px; pointer-events:none;} #rsd-menu paper-toggle-button {padding:4px 8px;} #rsd-menu paper-toggle-button:not([disabled]):hover {cursor:pointer; background:var(--yt-spec-badge-chip-background);} #rsd-menu paper-toggle-button[disabled] {opacity:0.8;} #rsd-menu .toggle-label.paper-toggle-button {color:inherit;}";
// Legacy
script.mainCSSLegacy = "/* Always Enabled */ /* Title */ #watch-headline-title {margin-top:5px; margin-bottom:-5px;} #watch-headline-title .watch-title-container {width:auto; display: inline-block; vertical-align: middle;} #page.watch-stage-mode #watch-headline-title {margin-top:0px; margin-bottom:0px;} #watch-headline-title .long-title {font-size:inherit !important; letter-spacing:normal !important;} #watch-headline-additional {display:inline-block; margin-bottom:0; margin-left:8px; vertical-align: middle; } #watch-headline-additional:empty {display:none;} #watch-headline-additional > * {margin:3px; display:inline-block;} #watch-headline-additional > .standalone-collection-badge-renderer-text > a {margin-right:0;} /* Sidebar */ #bwp-sidebar-container {overflow:auto; margin-top:0; max-height:390px; } #watch7-user-header {padding-top:0;} #watch7-user-header .yt-user-photo {float:left;} #watch7-user-header .yt-user-info {max-width:calc(100% - 58px); margin-left:58px; line-height:1.5em ;} #watch7-user-header .yt-user-info a {font-weight:bold;} #watch-uploader-info {margin-left:58px; line-height:1.5em;} #watch-uploader-info strong {font-weight:normal;} #watch7-subscription-container {float:right;} #action-panel-details {clear:both;} #action-panel-details button.yt-uix-button-expander.yt-uix-expander-body {display:none;} .rsdMusicCollapse:not(:hover) > * {display:none !important;} .rsdMusicCollapse:not(:hover):before {content:'Hover to view'; opacity:0.7;} /* Below Video */ #watch-header {position:relative; min-height:auto;} #watch8-action-buttons, #watch8-ytcenter-buttons {border-top:none;} #watch-header > #watch7-views-info {height:100%; top:0 !important; bottom:0px !important; right:12px !important;} #watch7-views-info .watch-view-count {position:absolute; top:0; right:0;} #watch7-views-info .video-extras-sparkbars {position:absolute; bottom:3px; right:0; width:100%;} #watch8-sentiment-actions {z-index:5; position:relative;} /* Below Video - Youtube+ */ #advanced-options {left:0; right:initial !important; overflow:hidden;} #console-button {position:relative !important; float:left;} #player-console {right:0; top:0 !important; float:left !important; height:20px;} #player-console > div {margin-top:-4px; height:24px;} /* Retro Theme Enabled */ .bwpRetro body {background-color:white;} .bwpRetro body, .bwpRetro input, .bwpRetro textarea, .bwpRetro select {font-family:arial,sans-serif;} .bwpRetro .yt-card {box-shadow:none; border:1px solid #e2e2e2;} .bwpRetro #watch-headline-title h1 {font-size:19px; font-weight:bold;} .bwpRetro #bwp-sidebar-container {background:#EEEEEE; border:1px solid #CCCCCC; font-size:12px; padding:6px;} .bwpRetro #bwp-sidebar-container a, .bwpRetro #action-panel-details:hover a {color:#0033CC;} .bwpRetro #watch7-user-header {padding-bottom:5px;} .bwpRetro #watch7-user-header .yt-user-photo {border:1px solid #999999;} .bwpRetro #watch7-user-header .yt-user-photo > .video-thumb {border:1px solid white;} .bwpRetro #watch-description-text {line-height:15px;} .bwpRetro #watch-description-extras {border-top:1px solid #CCCCCC; padding-top:4px;} .bwpRetro #watch-description-extras .watch-meta-item:last-child .title, .bwpRetro #watch-description-extras .watch-meta-item:last-child .content {margin-bottom:0;} .bwpRetro #watch7-sidebar-offer {margin-right:-1px;} .bwpRetro #yt-masthead-container {border-bottom-color:#CCCCCC;} .bwpRetro #yt-masthead #logo-container:not(.doodle) {margin-top:-5px; margin-bottom:-5px;} .bwpRetro:not(.bwpDark) #yt-masthead #logo-container:not(.doodle) .logo:not(.doodle) {background:url(https://s.ytimg.com/yt/img/master.png) 0px -641px; height:40px; width:98px; } .bwpRetro #logo-container .content-region {display:none;} .bwpRetro.show-guide #appbar-guide-menu {box-shadow:none; border-color:#CCCCCC; border-style:solid; border-width:0px 1px 1px 0px;} .bwpRetro.bwpDark .yt-card {border-color:var(--card-border-color);} .bwpRetro.bwpDark #watch7-user-header .yt-user-photo {border-color:#1b1b1b;} .bwpRetro.bwpDark #watch7-user-header .yt-user-photo > .video-thumb {border-color:transparent;} .bwpRetro.bwpDark #watch-description-extras {border-top-color:#444444;} /*youtube umbra*/ .bwpRetro.bwpDark #bwp-sidebar-container { background-color: var(--card-bg-color); color: var(--main-text-color); border-color: var(--card-border-color) } .bwpRetro.bwpDark #bwp-sidebar-container a {color:var(--link-color);} /* Retro Player Enabled */ .bwpPlayer #player-api {padding-bottom:30px; overflow:hidden;} .bwpPlayer #movie_player:not(.ytp-fullscreen) {overflow:visible; contain: layout style size;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-player-content, .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-settings-menu {bottom:8px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-player-content.html5-endscreen {bottom:39px; top:28px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-bottom:not(.ytp-preview), .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-paid-content-overlay {bottom:14px; top:auto !important;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-preview {bottom:46px; top:auto !important;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .caption-window.ytp-caption-window-bottom {margin-bottom:0;} .bwpPlayer #movie_player:not(.ytp-fullscreen):not(.paused-mode):not(.ytp-cards-teaser-shown):not(.ytp-iv-drawer-open):not(:hover) .ytp-cards-button {opacity:0;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-gradient-bottom {display:none;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-bottom {background-color:#ccc; color:#000; text-shadow:none; border:0px solid #ccc; border-width: 0px 12px 0 12px; left:0 !important; opacity:1; bottom:-30px; height:27px;} html.part_cinema_mode .bwpPlayer #movie_player:not(.ytp-fullscreen):not(:hover) .ytp-chrome-bottom {opacity:0.13;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container {bottom:27px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-list {transform-origin:center bottom !important; background-color:#444;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) {margin-left:-12px;width:calc(100% + 24px)} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:only-child {width:100% !important;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:first-child:not(:only-child) {padding-left:12px} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:first-child:not(:only-child) .ytp-progress-list {width:calc(100% + 14px); margin-left:-12px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container:last-child:not(:only-child) .ytp-progress-list {margin-right:-12px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-progress-bar-container:not(:hover) .ytp-chapter-hover-container[style*='margin-right: 2px;'] .ytp-progress-list {width:calc(100% + 2px);} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls {padding-left:0; padding-right:0; margin-left:-12px; margin-right:-12px; height:27px; line-height:27px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-display {height:34px; margin-top:-3px; font-size:95%; line-height:34px;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chapter-container {font-size:100%; line-height:27px; color:#4d4d4d; transition: opacity 0.05s} .bwpPlayer #movie_player:not(.ytp-fullscreen):not(.paused-mode):not(:hover) .ytp-chrome-bottom .ytp-chapter-container {opacity:0; transition: opacity 0.2s 2s} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-separator, .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-time-duration {color:#666;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button, .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel {color:#4d4d4d; opacity:1; height:34px; margin-top:-3px; flex-shrink:0;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-slider {min-height:unset;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:before, .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle, .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:after {background-color:#4d4d4d;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:after {opacity:0.35;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button:hover {color:#3d3d3d;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button .ytp-svg-fill, .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button path[fill='#fff'] {fill:currentColor;} .bwpPlayer #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button .ytp-svg-shadow {stroke:none;} .bwpPlayer #page:not(.watch-wide) #watch7-content {margin-top:27px;} .bwpPlayer #page.watch-wide #watch7-container {margin-top:37px;} .bwpPlayer #page.watch-stage-mode #player-playlist .watch-playlist {margin-top:27px;} .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-bottom {background-color:#1b1b1b; color:#fff; border-color:#1b1b1b;} .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chapter-container {color:#8E8E8E;} .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-time-separator, .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-time-duration {color:#999;} .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button, .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel {color:#8E8E8E; } .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:before, .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle, .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-volume-panel .ytp-volume-slider-handle:after {background-color:#8E8E8E;} .bwpPlayer.bwpDark #movie_player:not(.ytp-fullscreen) .ytp-chrome-controls .ytp-button:hover {color:#EBEBEB;} ";
script.settingsCSSLegacy = "html:not(.bwpScript) #bwp-settings-button {display:none;} #bwp-settings-button {filter:none;} #bwp-settings-button button {padding:0; border-radius:0; box-shadow:none;} #bwp-settings-button img {transition:filter 0.05s linear, transform 0.05s linear; width:24px; height:24px;} #yt-masthead-container:not(:hover) #bwp-settings-button:not(.open):not(:hover) img {filter:grayscale(1) contrast(0) brightness(0.8); transform:scale(0.75); } .bwpRetroDark #yt-masthead-container:not(:hover) #bwp-settings-button:not(.open):not(:hover) img {filter:grayscale(1) contrast(0) brightness(2);} #bwp-menu {position:absolute; position:fixed; top:48px; right:10px; width:500px; height:auto; max-height:calc(100vh - 60px); z-index:2000000000; border-radius:2px; padding:12px; box-sizing: border-box; font-size:16px;} #bwp-menu .arrow {pointer-events:none;} #bwp-menu label {padding:4px 8px; display:block;} #bwp-menu label:not([disabled]):hover {cursor:pointer; background:rgba(0,0,0,0.1);} #bwp-menu label[disabled] {opacity:0.8;}";
// Defining dynamic script properties
script.cssMainLoaded = null;
script.forceControlsTimer = null; // shared with legacy
script.forceControlsListener = null; // shared with legacy
script.watchSetupDone = false;
// Legacy
script.cssMainLoadedLegacy = null;
// To move into main script once legacy script is gone
var musicrightsStrings = ["Licensed to YouTube by", "Licenced to YouTube by"];
// Newtube Script
function pageSetup() {
// Runs: Once, after the first page has loaded
// Purpose: Set up settings handling, and event hooks
console.log("pageFirstRun");
if ($("#rsd-menu").length > 0) {
console.warn(script.shortname + " - Another version of this script is already running, so this copy will not be loaded. Check your list of installed scripts.");
return;
}
// unsupported browser detection is used for additional code and warnings, not to disable the script.
var unsupportedBrowser = false;
if (typeof(window.customElements) != "object") {
unsupportedBrowser = true;
}
// Settings panel
$(document.createElement("div"))
.attr("id", "rsd-menu")
.attr("hidden","hidden")
.html("<style type='text/css'>"+script.settingsCSS+"</style><div class='arrow'></div><img style='float:right; margin-left:4px;' src='"+script.icon+"'><small style='float:right; margin-left:3px; text-align:right;'>Version "+script.version+"<br/><a style='color:var(--yt-spec-call-to-action)' href='"+script.website+"' target='_blank'>Updates & Help</a></small><h3>'"+script.name+"' Script Settings</h3><br><div class='settinglist'><paper-toggle-button noink checked disabled>Description on right [Always Enabled]</paper-toggle-button><paper-toggle-button id='rsd-menu-retrotheme' autocomplete='off' noink>Retro theme</paper-toggle-button><paper-toggle-button id='rsd-menu-retroplayer' autocomplete='off' noink>Retro player</paper-toggle-button><paper-toggle-button id='rsd-menu-titletop' autocomplete='off' noink>Title on top</paper-toggle-button><paper-toggle-button id='rsd-menu-altplayersize' autocomplete='off' noink>Smaller player size</paper-toggle-button></div><br/><small>Dark Mode is supported (toggle in Youtube Settings)</small>"+(unsupportedBrowser?"<br><br><small style='color:var(--error-color)'>Your browser may not be fully supported and may experience some issues. If you would like to report a bug, please include the name and version number of your browser.</small><script>window.customElements.upgrade(document.querySelector('#rsd-menu'))</script>":""))
.appendTo("body");
PrepSettings();
async function PrepSettings() {
if (await GM.getValue("retrotheme", true)) {
$("#rsd-menu-retrotheme").attr("checked", "");
}
if (await GM.getValue("retroplayer", true)) {
$("#rsd-menu-retroplayer").attr("checked", "");
}
if (await GM.getValue("titletop", true)) {
$("#rsd-menu-titletop").attr("checked", "");
}
if (await GM.getValue("altplayersize", false)) {
$("#rsd-menu-altplayersize").attr("checked", "");
}
}
$("#rsd-menu paper-toggle-button:not([disabled])").click(async function() {
var state = ($(this).attr("checked")?true:false);
if (this.id=="rsd-menu-retrotheme") {
await GM.setValue("retrotheme", state);
} else if (this.id=="rsd-menu-retroplayer") {
await GM.setValue("retroplayer", state);
} else if (this.id=="rsd-menu-titletop") {
await GM.setValue("titletop", state);
} else if (this.id=="rsd-menu-altplayersize") {
await GM.setValue("altplayersize", state);
}
watchApply(); // apply changed settings
});
// Settings button in header
$(document.createElement("div"))
.attr("id", "bwp-retrostyle-toggle")
.attr("class", "style-scope ytd-menu-renderer style-default")
.attr("is-icon-button", "")
.attr("button-renderer","")
.html("<a is='yt-endpoint' tabindex='-1' class='style-scope ytd-button-renderer'><paper-icon-button src='"+script.icon+"' title='\"Right Side Description\" Script Menu'></paper-icon-button><paper-tooltip>\"Right Side Description\" Script Menu</paper-tooltip></a>"+(unsupportedBrowser?"<script>window.customElements.upgrade(document.querySelector('#bwp-retrostyle-toggle'))</script>":""))
.click( function() {
if ($("#rsd-menu").attr("hidden") ) {
$("#rsd-menu").removeAttr("hidden");
$("#bwp-retrostyle-toggle").addClass("open");
$("#rsd-menu .arrow").css("right", (document.body.clientWidth - $("#bwp-retrostyle-toggle")[0].getBoundingClientRect().right) + "px");
} else {
$("#rsd-menu").attr("hidden","hidden");
$("#bwp-retrostyle-toggle").removeClass("open");
}
})
.prependTo("ytd-masthead #end");
// Inject a function to resize the player, based on user setting
var playerSizeInjector = function() {
var customPlayerSize = function(ogfuncname) {
if (document.querySelector("html").classList.contains("rsdAltSize") && document.querySelector("ytd-app").hasAttribute("is-watch-page")) { // check if this should run, based on user setting & only run on watch page
// Sizing logic to match 'old youtube' (non-polymer youtube)
var wWidth = window.innerWidth; var wHeight = window.innerHeight;
var width = 640; var height = 360;
if (document.querySelector("ytd-watch-flexy").hasAttribute("theater")) {
width = 854; height = 480;
if (wWidth >= 1320 && wHeight >= 870) {
width = 1280; height = 720;
}
} else {
if (wWidth >= 1720 && wHeight >= 980) {
width = 1280; height = 720;
} else if (wWidth >= 1294 && wHeight >= 630) {
width = 854; height = 480;
} else if (wWidth <= 656) {
width = 426; height = 240;
}
}
return {width:width, height:height};
} else { // call the original function
if (ogfuncname == "calculateNormalPlayerSize_") {
return document.querySelector("ytd-watch-flexy").calculateNormalPlayerSize_OG();
} else { // ogfuncname == "calculateCurrentPlayerSize_"
return document.querySelector("ytd-watch-flexy").calculateCurrentPlayerSize_OG();
}
}
}
// Save the original functions
document.querySelector("ytd-watch-flexy").calculateNormalPlayerSize_OG = document.querySelector("ytd-watch-flexy").calculateNormalPlayerSize_;
document.querySelector("ytd-watch-flexy").calculateCurrentPlayerSize_OG = document.querySelector("ytd-watch-flexy").calculateCurrentPlayerSize_;
// Override the original functions with custom
document.querySelector("ytd-watch-flexy").calculateNormalPlayerSize_ = function() {return customPlayerSize("calculateNormalPlayerSize_")};
document.querySelector("ytd-watch-flexy").calculateCurrentPlayerSize_ = function() {return customPlayerSize("calculateCurrentPlayerSize_")};
}
// Inject into page
injector = document.createElement("script");
injector.textContent = "var rsdInjectFunction = " + playerSizeInjector.toString() + "; rsdInjectFunction();";
document.documentElement.appendChild(injector);
typeChange();
$("ytd-app").on("yt-page-type-changed", typeChange);
}
function typeChange() {
// Runs: Every time the page type changes
console.log("typeChange");
setTimeout(function() { // delay only seems to be needed for miniplayer closing
console.log("typeChange - delayed section");
if ($("#page-manager ytd-watch-flexy:not([hidden]), #page-manager ytd-watch-flexy.loading").length > 0) {
if (!script.watchSetupDone) {
watchSetup();
}
watchApply();
} else {
if (script.watchSetupDone) {
watchCleanup();
}
}
}, 1);
}
function watchSetup() {
// Runs: First time a watch page has loaded
// Purpose: Single-time watch page modification and event hooks
console.log("watchSetup");
script.watchSetupDone = true;
$('<h1 id="rsd-title" class="title style-scope ytd-video-primary-info-renderer"></h1>').prependTo( $("ytd-watch-flexy #primary-inner") );
$('<div id="rsd-description-entry"></div>').prependTo("ytd-watch-flexy #related");
dataRun();
$("ytd-app").on("yt-update-title", dataRun);
//yt-page-data-updated ?
}
async function watchApply() {
// Changed TO a watch page, or a setting has changed
console.log("watchApply");
loadCSS();
applyRetroPlayer(await GM.getValue("retroplayer", true));
}
function watchCleanup() {
// Changed FROM a watch page (undo watchApply)
console.log("watchCleanup");
unloadCSS();
$("#bwp-retrostyle-toggle").removeClass("open");
$("#rsd-menu").attr("hidden","hidden");
applyRetroPlayer(false);
}
function dataRun() {
// Runs: Navigating from one video to another
// Purpose: Modify the page in ways that need to happen after every video change
console.log("dataRun");
setTimeout(function() { // These don't generate until after yt-update-title, need to find another event to listen to
console.log("dataRun - delayed section");
// Title above video
var title = $("ytd-video-primary-info-renderer > #container > h1 > yt-formatted-string").html();
$("#rsd-title").html(title);
// Description panel
var meta = $("ytd-watch-flexy #primary-inner > #meta").addClass("rsd-description");
$(meta).prependTo( $("#rsd-description-entry") );
// Expand description
$("#meta.rsd-description ytd-expander #more").click();
if ($("#meta.rsd-description ytd-expander[collapsed]").length > 0) {
console.log("Expand didn't work, manually expanding ");
$("#meta.rsd-description ytd-expander[collapsed]").removeAttr("collapsed");
}
// Upload date - move from below video to description panel
$("ytd-video-primary-info-renderer #info #date").insertAfter("ytd-video-owner-renderer #channel-name");
// Sub count
if ( $("#meta.rsd-description #subscribe-button").text() ) { // prevent picking up the skeleton
$("#owner-sub-count").appendTo("#meta.rsd-description ytd-video-secondary-info-renderer #subscribe-button");
}
// Collapse music rights info
$("#meta.rsd-description ytd-video-secondary-info-renderer ytd-metadata-row-renderer").each(function(){
var title = $("#title", this).text().trim();
if (musicrightsStrings.includes(title)) {
$("#content", this).addClass("rsdMusicCollapse"); // collapse handled by CSS
}
});
// Below video
// Viewcount
//$("ytd-video-primary-info-renderer #info #count").prependTo("ytd-video-primary-info-renderer #info #menu-container");
// New container for shifted buttons, move them into it (all except like/dislike)
/* $("#menu-container-left-rsd").remove(); // remove old copies
$("<div id='menu-container-left-rsd'></div>").prependTo("ytd-video-primary-info-renderer #info");
$("ytd-video-primary-info-renderer #info #menu-container #top-level-buttons > *").each(function() {
if (this.nodeName != "YTD-TOGGLE-BUTTON-RENDERER") {
$(this).appendTo("#menu-container-left-rsd");
}
});
$("ytd-video-primary-info-renderer #info #menu-container #top-level-buttons + *").insertAfter("#menu-container-left-rsd");*/
}, 1);
}
// Initiate script
if ($("ytd-watch-flexy").length > 0) {
console.log("Page already loaded, initiate setup");
pageSetup();
} else {
console.log("Page not ready or otherwise not a video page, wait for ready");
$(document).one("yt-navigate-finish", pageSetup);
}
// possible script points [old test notes]
// yt-update-title on ytd-app - seems to run when data changes?
// yt-page-type-changed on ytd-app - for detecting if they've move away from video or back
// yt-page-data-updated on body - may run after all data changed?
// yt-navigate-finish on document - same as above?
async function loadCSS() {
if (!script.cssMainLoaded) {
script.cssMainLoaded = GM_addStyle(script.mainCSS);
}
$("html").addClass("rsdLoaded");
if (await GM.getValue("retrotheme", true)) {
$("html").addClass("rsdRetro");
} else {
$("html").removeClass("rsdRetro");
}
if (await GM.getValue("retroplayer", true)) {
$("html").addClass("rsdPlayer");
applyRetroPlayer(true);
} else {
$("html").removeClass("rsdPlayer");
applyRetroPlayer(false);
}
if (await GM.getValue("titletop", true)) {
$("html").addClass("rsdTitle");
} else {
$("html").removeClass("rsdTitle");
}
if (await GM.getValue("altplayersize", false)) {
$("html").addClass("rsdAltSize");
window.dispatchEvent(new Event('resize')); // Triggers player size resizing, if the setting has been applied or changed
} else {
$("html").removeClass("rsdAltSize");
window.dispatchEvent(new Event('resize')); // Triggers player size resizing, if the setting has changed
}
}
function unloadCSS() {
if (script.cssMainLoaded) {
$(script.cssMainLoaded).remove();
script.cssMainLoaded = null;
}
applyRetroPlayer(false);
$("html").removeClass("rsdLoaded");
$("html").removeClass("rsdRetro");
$("html").removeClass("rsdPlayer");
$("html").removeClass("rsdTitle");
$("html").removeClass("rsdAltSize");
window.dispatchEvent(new Event('resize')); // Triggers player size resizing, so miniplayer works
}
function applyRetroPlayer(activate) { // Also used by legacy script
if (activate) {
if (!script.forceControlsTimer) {
var mouseMoveEvent = new Event('mousemove');
script.forceControlsTimer = setInterval(function() {
if (!document.hidden) {
$("#movie_player.playing-mode:not(.ytp-fullscreen)")[0].dispatchEvent(mouseMoveEvent);
}
}, 1000);
}
if (!script.forceControlsListener) {
script.forceControlsListener = function() {
if (!document.hidden) {
var mouseMoveEvent = new Event('mousemove');
$("#movie_player.playing-mode:not(.ytp-fullscreen)")[0].dispatchEvent(mouseMoveEvent);
}
};
$(document).on("visibilitychange", script.forceControlsListener);
}
} else {
if (script.forceControlsTimer) {
clearInterval(script.forceControlsTimer);
script.forceControlsTimer = null;
}
if (script.forceControlsListener) {
$(document).off("visibilitychange", script.forceControlsListener);
script.forceControlsListener = null;
}
}
}
// Legacy Script
async function mainScriptLegacy() {
// Don't run on New Youtube
if ($("body > ytd-app").length > 0) {
console.log("RSD - Aborting legacy script. Modern script should handle this page.");
return;
}
// Don't run in Youtube+ Popups
if ($("html").hasClass("part_popout")) return;
// Abort and clean up on non-video pages.
if (!$("#page").hasClass("watch")) {
$("#page > #watch7-headline").remove();
$("#bwp-menu").attr("hidden","hidden");
$("#bwp-settings-button").removeClass("open");
unloadCSSLegacy();
return;
}
if (!($("#bwp-menu").length > 0)) {
firstTimeLoad();
}
// Insert CSS
loadCSSLegacy();
// Add listen event to player state to apply retro style (based on setting) when other scripts prevent autoplay
async function postloadRetroApply() {
loadCSSLegacy();
$("#player-api").off("click", "#movie_player.unstarted-mode", postloadRetroApply);
}
$("#player-api").on("click", "#movie_player.unstarted-mode", postloadRetroApply);
// Add button to toggle retro style
$(document.createElement("li"))
.attr("id", "bwp-retrostyle-toggle")
.appendTo("#action-panel-overflow-menu");
$(document.createElement("button"))
.attr("class", "yt-ui-menu-item has-icon")
.html("<span class='yt-ui-menu-item-icon' style='margin-right:6px;margin-left:-14px;margin-bottom:-6px;vertical-align:top;opacity:1;'><img width='24' src='"+script.icon+"' style='margin-bottom:-8px;'/></span> <span class='yt-ui-menu-item-label'>Toggle 'Retro Style'</span>")
.click(async function() {
alert("Retro Style toggle has moved to the new Settings Menu - the menu will open now. You can close it again by clicking the icon.");
$("#bwp-settings-button").click();
})
.appendTo("#bwp-retrostyle-toggle");
// Remove VEVO branding
$("#watch7-container")
.removeClass("watch-branded")
.removeClass("watch-branded-banner");
$("#player")
.attr("style", "")
.removeClass("watch-branded-banner");
$("#watch7-branded-banner").remove();
// Move description & channel details to the right-side column
$(document.createElement("div"))
.attr("id","bwp-sidebar-container")
.attr("class", "yt-card yt-card-has-padding")
.insertBefore("#watch7-sidebar-contents");
$("#watch7-user-header").appendTo("#bwp-sidebar-container");
$("#action-panel-details")
.removeClass("yt-uix-expander-collapsed")
.removeClass("yt-card")
.removeClass("yt-card-has-padding")
.appendTo("#bwp-sidebar-container");
// Move Upload time into user info
$("#watch-uploader-info").appendTo("#watch7-user-header");
$("#watch-uploader-info strong").text(function() { return $(this).text().replace("Published on ",""); });
// Collapse music rights info in description
$("#bwp-sidebar-container #watch-description-extras .watch-meta-item").each(function(){
var title = $(".title", this).text().trim();
if (musicrightsStrings.includes(title)) {
$(".watch-info-tag-list", this).addClass("rsdMusicCollapse"); // collapse handled by CSS
}
});
// Relocate views for correct styling
$("#watch7-views-info").appendTo("#watch-header");
// Move title above video
$("#page > #watch7-headline").remove(); // Remove any existing
$("#watch-header #watch7-headline").insertBefore("#player").addClass("content-alignment");
$(document.createElement("div")) // Container for non-title content such as Youtube Red
.attr("id", "watch-headline-additional")
.attr("class", "yt-card")
.appendTo("#watch-headline-title");
$("#watch7-headline > *:not(#watch-headline-title):not(#watch-headline-additional)").prependTo("#watch-headline-additional");
}
mainScriptLegacy();
$(document).on("spfdone", mainScriptLegacy);
async function loadCSSLegacy() {
if (!script.cssMainLoadedLegacy) {
script.cssMainLoadedLegacy = GM_addStyle(script.mainCSSLegacy);
}
$("html").addClass("bwpScript");
if (await GM.getValue("retrotheme", true)) {
$("html").addClass("bwpRetro");
} else {
$("html").removeClass("bwpRetro");
}
if (await GM.getValue("retroplayer", true)) {
$("html").addClass("bwpPlayer");
applyRetroPlayer(true);
} else {
$("html").removeClass("bwpPlayer");
applyRetroPlayer(false);
}
if (isDark($("body").css("background-color"))) {
$("html").addClass("bwpDark");
} else {
$("html").removeClass("bwpDark");
}
}
function unloadCSSLegacy() {
if (script.cssMainLoadedLegacy) {
$(script.cssMainLoadedLegacy).remove();
script.cssMainLoadedLegacy = null;
}
applyRetroPlayer(false);
$("html").removeClass("bwpScript");
$("html").removeClass("bwpRetro");
$("html").removeClass("bwpPlayer");
$("html").removeClass("bwpDark");
}
function isDark(rgb) {
var re = /rgb\([ ]*(\d+),[ ]*(\d+),[ ]*(\d+)[ ]*\)/;
var match = rgb.match(re);
if (match == null) {
return false;
}
var luma = 0.2126 * match[1] + 0.7152 * match[2] + 0.0722 * match[3];
if (luma < 40) {
return true;
}
return false;
}
function firstTimeLoad() {
$(document.createElement("div"))
.attr("id", "bwp-menu")
.attr("class", "yt-uix-clickcard-card yt-uix-clickcard-card-reverse yt-uix-clickcard-card-border")
.attr("hidden","hidden")
.html("<style type='text/css'>"+script.settingsCSSLegacy+"</style><div class='arrow yt-uix-card-border-arrow yt-uix-card-border-arrow-vertical'></div><div class='arrow yt-uix-card-body-arrow yt-uix-card-body-arrow-vertical'></div><img style='float:right; margin-left:4px;' src='"+script.icon+"'><small style='float:right; margin-left:3px; text-align:right; font-size:13px;'>Version "+script.version+"<br/><a style='' href='"+script.website+"' target='_blank'>Updates & Help</a></small><h1>'"+script.name+"' Script Settings</h1><br><h2 style='margin-bottom:4px;'>'Old Youtube' Settings</h2><div class='settinglist'><label disabled><input type='checkbox' disabled checked> Description on right [Always Enabled]</label><label><input type='checkbox' id='rsd-menu-retrotheme' autocomplete='off'> Retro theme</label><label><input type='checkbox' id='rsd-menu-retroplayer' autocomplete='off'> Retro player</label></div><br/><small style='font-size:13px'>Some settings are only available on 'New Youtube' and are not displayed here.</small><br/><br/><small style='font-size:13px; color:black; background:yellow; display:block'>Support for 'Old Youtube' will be removed from this script soon as Old Youtube does not seem to be available, yet you're here! <a href='https://greasyfork.org/en/scripts/976-/discussions/70069' target='_blank' style='color:blue; text-decoration:underline'>Please post</a> what method you are using to access Old Youtube so the script creator can access it again and keep support for Old Youtube.</small>")
.appendTo("body");
PrepSettings();
async function PrepSettings() {
if (await GM.getValue("retrotheme", true)) {
$("#rsd-menu-retrotheme").prop("checked", true);
}
if (await GM.getValue("retroplayer", true)) {
$("#rsd-menu-retroplayer").prop("checked", true);
}
}
$("#bwp-menu input:not([disabled])").click(async function() {
var state = ($(this).prop("checked")?true:false);
if (this.id=="rsd-menu-retrotheme") {
await GM.setValue("retrotheme", state);
} else if (this.id=="rsd-menu-retroplayer") {
await GM.setValue("retroplayer", state);
}
loadCSSLegacy(); // apply changed settings
});
$(document.createElement("span"))
.attr("id", "bwp-settings-button")
.attr("class", "")
.html("<button class='yt-uix-button'><img src='"+script.icon+"' title='\"Right Side Description\" Script Menu'></button>")
.click( function() {
if ($("#bwp-menu").attr("hidden") ) {
$("#bwp-menu").removeAttr("hidden");
$("#bwp-settings-button").addClass("open");
$("#bwp-menu .arrow").css("right", (document.body.clientWidth - $("#bwp-settings-button")[0].getBoundingClientRect().right - 9) + "px");
} else {
$("#bwp-menu").attr("hidden","hidden");
$("#bwp-settings-button").removeClass("open");
}
})
.prependTo("#yt-masthead-user, #yt-masthead-signin");
}
})();