您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Restores the "Show More" button on old youtube
// ==UserScript== // @name YouTube Restore "Show More" Button // @description Restores the "Show More" button on old youtube // @namespace http://www.youtube.com/ // @include http://www.youtube.com/* // @include https://www.youtube.com/* // @version 1.6 // @grant none // ==/UserScript== //I'm not a coder/scripter. I'm sure there's a much better way of doing this, but I couldn't figure it out. function restoreDetailButtons() { var showMoreButton = ('<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 showLessButton = ('<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>'); if(document.getElementsByClassName('yt-uix-button-expander').length == 0) document.getElementById("action-panel-details").insertAdjacentHTML('beforeend', showMoreButton + showLessButton); } //This will restore the buttons if you load into a video page directly if(document.getElementById("action-panel-details") != null) restoreDetailButtons(); //This will restore the buttons if you started from https://www.youtube.com/ and then clicked into a video from there window.addEventListener("spfdone", restoreDetailButtons);