Youtube Scrollable Right Side Description

Youtube description is moved on the right, expanded and scrollable

2025-04-14 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name            Youtube Scrollable Right Side Description
// @description     Youtube description is moved on the right, expanded and scrollable
// @version         2.1.6
// @author          SH3LL
// @license         MIT
// @match           *://*.youtube.com/*
// @include         *://*.youtube.com/watch*
// @grant           none
// @run-at          document-end
// @noframes
// @namespace https://greasyfork.org/users/762057
// ==/UserScript==

(function(){
    'use strict';

     window.addEventListener('yt-page-data-updated', function () {
          let player = document.querySelector("#player");
          //let player_height = parseFloat(document.querySelector(".ytp-iv-video-content").style.getPropertyValue("height"));
          let my_height = 600;

          // move elements
          document.querySelector('#related').prepend(document.getElementById('bottom-row'));  // move description on the right
          document.querySelector('#related').prepend(document.getElementById('owner'));       // move channel name on the right
          document.querySelector('#below').prepend(document.getElementById('info-container'));// move views and date below the video
          document.querySelector('#info-container').setAttribute("style", "color:white; font-size: 12px");     // color views white

          // remove padding from channel name
          let channel_name = document.getElementById('owner');
          channel_name.setAttribute("style", "margin:0");

          // make the description scrollable
          let description = document.getElementById('description-inline-expander');
          description.setAttribute("style", "margin-left: 0; overflow: auto; max-width: 100%; font-size: 1.3rem;line-height: normal; max-height:"+my_height+"px;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;");
          document.getElementById('description').setAttribute("style", "margin: 0;");
          document.getElementById('description-inner').setAttribute("style", "margin: 0;");
          // expand description
          description.setAttribute("is-expanded","");
          document.getElementById('ytd-watch-info-text').remove();//hide separation line under channel name
          document.getElementById('expand').remove();//hide expand label
          document.getElementById('collapse').remove();//hide collapse label
          document.getElementById('snippet').remove();//hide dots at the end of the comments

        }, 1000);

    })()