您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the YouTube Shorts button from the guide menu
// ==UserScript== // @name Remove YouTube Shorts button // @namespace http://tampermonkey.net/ // @version 1.0 // @description Removes the YouTube Shorts button from the guide menu // @author RandomPerson189 // @license MIT // @match https://www.youtube.com/* // @require https://greasyfork.runtimutd.eu.org/scripts/383527-wait-for-key-elements/code/Wait_for_key_elements.js // @require https://code.jquery.com/jquery-3.5.1.min.js // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== function removeGuideButton() { // Delete the Shorts guide element $('#endpoint.ytd-guide-entry-renderer.style-scope[title="Shorts"]').parent().remove(); } // Call the function multiple times by waiting for elements with the id "endpoint" just so it doesn't fail the first time waitForKeyElements ( "#endpoint", removeGuideButton );