您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide the related videos sidebar on Youtube videos
// ==UserScript== // @author Judd West // @name Hide Youtube Related Videos // @namespace hide-youtube-related-videos // @include http://www.youtube.com/watch* // @include http://youtube.com/watch* // @include https://www.youtube.com/watch* // @include https://youtube.com/watch* // @description Hide the related videos sidebar on Youtube videos // @license MIT // @require https://code.jquery.com/jquery-3.3.1.slim.min.js // @version 1.1 // @grant none // ==/UserScript== (function() { 'use strict'; function hideRecommended(){ if(jQuery('#playlist').is(":hidden")) { jQuery('#secondary').hide(); } else { jQuery('#related').hide(); } } window.setTimeout(hideRecommended, 1000) })();