您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Description on the right side with avatar and channel name
// ==UserScript== // @name Youtube - description on the right side above related videos // @description Description on the right side with avatar and channel name // @namespace https://greasyfork.runtimutd.eu.org/en/users/758587-barn852 // @author barn852 // @license MIT // @version 1.3 // @match *://*.youtube.com/* // @include *://*.youtube.com/watch* // @grant none // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js // @run-at document-end // @noframes // ==/UserScript== (function(){ 'use strict'; const insert_right = () => document.querySelector('#secondary-inner').insertBefore(document.getElementById('meta-contents'),document.getElementById('related')); const observer = new MutationObserver(function(mutations){ mutations.forEach(function(mutation){ if (mutation.type === 'childList'){ mutation.addedNodes.forEach(function(node){ if (document.querySelector("#secondary-inner > #meta-contents")) { return } else { insert_right() }; }); } }); }); observer.observe(document.body, {'childList': true, 'subtree' : true}); /* // auto expand description window.addEventListener('yt-page-data-updated', function () { var checkExist = setInterval(function() { var ytMeta = document.querySelector('#secondary-inner #more .more-button.ytd-video-secondary-info-renderer'); if(ytMeta){ (ytMeta).click(); clearInterval(checkExist); } }, 500); }); */ })()