OldYoutubeDescriptionFix

returns "show more" and "show less" buttons into the old Youtube video description

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 OldYoutubeDescriptionFix
// @description returns "show more" and "show less" buttons into the old Youtube video description 
// @include        *://*.youtube.com/*
// @include        *://youtube.com/*
// @version 0.0.1.20200605201833
// @namespace https://greasyfork.org/users/581294
// ==/UserScript==

var showButton = document.createElement ('div');
showButton.innerHTML = '<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-expander yt-uix-expander-head yt-uix-expander-collapsed-body yt-uix-gen204" type="button" onclick=";return false;" data-gen204="feature=watch-show-more-metadata"><span class="yt-uix-button-content">Show more</span></button>';
var hideButton = document.createElement ('div');
hideButton.innerHTML = '<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-expander yt-uix-expander-head yt-uix-expander-body" type="button" onclick=";return false;"><span class="yt-uix-button-content">Show less</span></button>';
var descriptionDiv = document.getElementById('action-panel-details');
var needsFix = descriptionDiv.querySelector(".yt-uix-button") == null;
if (needsFix) {
  descriptionDiv.appendChild(showButton);
  descriptionDiv.appendChild(hideButton);
}