您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Move "More from YouTube" apps to the top navigation and remove from the right tab.
// ==UserScript== // @name YouTube Menu Apps Organizer // @namespace http://tampermonkey.net/ // @version 1.0 // @description Move "More from YouTube" apps to the top navigation and remove from the right tab. // @author YourName // @match *://www.youtube.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function moveYouTubeApps() { // Select the right-side menu where YouTube apps are currently placed let rightMenu = document.querySelector("#sections"); // Adjust based on actual HTML let topNav = document.querySelector("#top-level-buttons"); // Adjust based on actual HTML if (!rightMenu || !topNav) return; // Look for app links inside the right menu let appLinks = rightMenu.querySelectorAll("ytd-rich-grid-media"); // Adjust based on actual HTML element appLinks.forEach(app => { let clonedApp = app.cloneNode(true); topNav.appendChild(clonedApp); }); // Optionally, remove the original apps from the right menu rightMenu.remove(); } function waitForMenu() { let checkExist = setInterval(() => { if (document.querySelector("#sections") && document.querySelector("#top-level-buttons")) { clearInterval(checkExist); moveYouTubeApps(); } }, 1000); } waitForMenu(); })();