您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
returns "show more" and "show less" buttons into the old Youtube video description
// ==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://gf.qytechs.cn/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); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址