您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Youtube description is moved on the right, expanded and scrollable
当前为
- // ==UserScript==
- // @name Youtube Scrollable Right Side Description
- // @description Youtube description is moved on the right, expanded and scrollable
- // @version 1.1
- // @author SH3LL
- // @license GPLv2
- // @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 () {
- document.querySelector('#secondary-inner').prepend(document.getElementById('meta-contents'));
- let description = document.getElementById('meta-contents');
- description.children[0].children[0].children[1].setAttribute("style", "--ytd-expander-collapsed-height:auto !important; margin-left: 0; overflow: auto; max-width: 100%; font-size: 1.3rem;line-height: normal;max-width: 100%; max-height: 650px;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;");
- description.children[0].children[0].children[0].setAttribute("style", "padding-top:0px");
- }, 500);
- })()