Auto expand channel list and Open channel showing video view

Auto expand the channel list after 3 seconds and change to channel video tab after entering a channel

当前为 2023-10-18 提交的版本,查看 最新版本

作者
Shurtmato
评分
0 0 0
版本
0.2
创建于
2023-10-03
更新于
2023-10-18
大小
934 字节
许可证
MIT
适用于

// ==UserScript==
// @name Auto expand channel list and Open channel showing video view
// @namespace https://greasyfork.org/en/users/254603-shurtmato
// @version 0.3
// @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(6).click();
$(".ytd-guide-collapsible-entry-renderer").eq(4).click();
$(".ytd-guide-collapsible-entry-renderer").eq(5).click();
$('a').click(function( event ){
setTimeout( function(){
$("#expander-item").click();
$( "tp-yt-paper-tab" )[1].click();
} , 1000 );
});
} , 3000 );
});