the most efficient script to bring back youtube full description

this is a scrip restore the ability to show youtube full description if. because youtube try to force us to use the new layout by breaking the old layout. there are two other scripts that do the same thing but this scrip is the most efficient. because other scrips use 2 or 3 variables but this script use only one variable and it is the shortest one

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        the most efficient script to bring back youtube full description
// @version     1
// @match        *://www.youtube.com/*
// @grant       GM_addStyle
 
// @namespace https://greasyfork.org/users/587153
// @description this is a scrip restore the ability to show youtube full description if. because youtube try to force us to use the new layout by breaking the old layout. there are two other scripts that do the same thing but this scrip is the most efficient. because other scrips use 2 or 3 variables but this script use only one variable and it is the shortest one
// ==/UserScript==
if (document.querySelector('button[data-gen204="feature=watch-show-more-metadata"]') == null) {
function GM_addStyle(text)
{
  var newHTML = document.createElement("div");
  newHTML.innerHTML = text;
  document.getElementById("action-panel-details").appendChild(newHTML);
}
GM_addStyle("<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>")
GM_addStyle("<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>")
} else {}