Auto expand the channel list after 3 seconds and change to channel video tab after entering a channel
当前为
// ==UserScript==
// @name Auto expand channel list and Open channel showing video view
// @namespace https://greasyfork.org/en/users/254603-shurtmato
// @version 0.3.5
// @description Auto expand the channel list after 3 seconds and change to channel video tab after entering a channel
// @author Shurtmato
// @match https://www.youtube.com/*
// @require https://code.jquery.com/jquery-3.7.0.min.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// @license MIT
// ==/UserScript==
/* global $ */
/* global jQuery */
$( document ).ready(function() {
setTimeout( function(){
$("#expander-item").click();
//$(".ytd-guide-collapsible-entry-renderer").eq(0).click();
$('#sections a').click(function( event ){
setTimeout( function(){
$(".ytd-guide-collapsible-entry-renderer").eq(0).click();
$( "#tabsContent" ).children().eq(1).children().eq(0).children().eq(1).click();
} , 1000 );
});
} , 3000 );
});